/* ========================================
   ARTICLE PAGE STYLES - QuickSpark Electrician
   ======================================== */

/* ========== ARTICLE HERO ========== */
.art-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.art-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 184, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.art-hero__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.art-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.art-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.art-hero__breadcrumb a:hover {
    color: #ffb800;
}

.art-hero__breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.art-hero__breadcrumb span:last-child {
    color: #ffb800;
}

/* ========== ARTICLE MAIN ========== */
.art-main {
    padding: 60px 0 80px;
    background: #fafafa;
}

.art-main__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ARTICLE POST ========== */
.art-post {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Article Header */
.art-post__header {
    padding: 40px 40px 32px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.art-post__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 184, 0, 0.1);
    color: #d49700;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.art-post__category img {
    width: 16px;
    height: 16px;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
}

.art-post__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 24px;
}

.art-post__meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.art-post__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.art-post__meta-item img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

/* Featured Image */
.art-post__image {
    margin: 0;
    position: relative;
}

.art-post__image img {
    width: 100%;
    height: auto;
    display: block;
}

.art-post__caption {
    padding: 12px 40px;
    background: #f8f8f8;
    font-size: 13px;
    color: #888;
    text-align: center;
    font-style: italic;
}

/* Introduction */
.art-post__intro {
    padding: 40px 40px 0;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.art-post__intro p {
    margin: 0;
}

/* Main Content */
.art-post__content {
    padding: 32px 40px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.art-post__content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffb800;
}

.art-post__content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 32px 0 16px;
}

.art-post__content p {
    margin: 0 0 20px;
}

.art-post__content ul,
.art-post__content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.art-post__content li {
    margin-bottom: 10px;
}

.art-post__content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(255, 140, 0, 0.05) 100%);
    border-left: 4px solid #ffb800;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.art-post__content blockquote p {
    margin: 0;
}

.art-post__content a {
    color: #ffb800;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.art-post__content a:hover {
    border-bottom-color: #ffb800;
}

.art-post__content strong {
    color: #1a1a2e;
}

.art-post__content code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #d49700;
}

.art-post__content pre {
    background: #1a1a2e;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

.art-post__content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

/* Conclusion */
.art-post__conclusion {
    padding: 0 40px 40px;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
    padding-top: 32px;
}

.art-post__conclusion h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.art-post__conclusion p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.art-post__conclusion a {
    color: #ffb800;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.art-post__conclusion a:hover {
    opacity: 0.8;
}

/* Tags */
.art-post__tags {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    background: #f8f8f8;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.art-post__tags img {
    width: 16px;
    height: 16px;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
}

/* ========== CTA BANNER ========== */
.art-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 40px;
}

.art-cta__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.art-cta__icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.art-cta__content {
    flex: 1;
}

.art-cta__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: block;
}

.art-cta__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.art-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    color: #1a1a2e;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.art-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 184, 0, 0.3);
}

.art-cta__btn img {
    width: 18px;
    height: 18px;
}

/* ========== RELATED ARTICLES ========== */
.art-related {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.art-related__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.art-related__title img {
    width: 24px;
    height: 24px;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
}

.art-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.art-related__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #fafafa;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.art-related__card:hover {
    background: #fff;
    border-color: #ffb800;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.15);
}

.art-related__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.art-related__card:hover .art-related__icon {
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
}

.art-related__icon img {
    width: 28px;
    height: 28px;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
    transition: filter 0.3s ease;
}

.art-related__card:hover .art-related__icon img {
    filter: brightness(0) invert(1);
}

.art-related__card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-related__arrow {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.art-related__card:hover .art-related__arrow {
    background: #ffb800;
}

.art-related__arrow img {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.art-related__card:hover .art-related__arrow img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .art-hero {
        padding: 110px 0 32px;
    }

    .art-post__header {
        padding: 32px 32px 28px;
    }

    .art-post__intro {
        padding: 32px 32px 0;
    }

    .art-post__content {
        padding: 28px 32px 32px;
    }

    .art-post__conclusion {
        padding: 0 32px 32px;
        padding-top: 28px;
    }

    .art-post__tags {
        padding: 18px 32px;
    }

    .art-post__caption {
        padding: 12px 32px;
    }

    .art-related__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .art-related__card {
        flex-direction: row;
        text-align: left;
        padding: 16px 20px;
    }

    .art-related__icon {
        width: 48px;
        height: 48px;
    }

    .art-related__icon img {
        width: 24px;
        height: 24px;
    }

    .art-related__card-title {
        flex: 1;
    }

    .art-related__arrow {
        margin-top: 0;
        width: 32px;
        height: 32px;
    }

    .art-related__arrow img {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .art-hero {
        padding: 100px 0 28px;
    }

    .art-post__header {
        padding: 28px 24px 24px;
    }

    .art-post__title {
        font-size: 1.5rem;
    }

    .art-post__meta {
        gap: 12px;
    }

    .art-post__meta-item {
        background: #f5f5f5;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 13px;
    }

    .art-post__intro {
        padding: 28px 24px 0;
        font-size: 16px;
    }

    .art-post__content {
        padding: 24px;
        font-size: 15px;
    }

    .art-post__content h2 {
        font-size: 20px;
    }

    .art-post__content h3 {
        font-size: 18px;
    }

    .art-post__content blockquote {
        padding: 20px 24px;
        margin: 24px 0;
    }

    .art-post__conclusion {
        padding: 0 24px 28px;
        padding-top: 24px;
    }

    .art-post__tags {
        padding: 16px 24px;
    }

    .art-post__caption {
        padding: 10px 24px;
    }

    .art-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .art-cta__btn {
        width: 100%;
        justify-content: center;
    }

    .art-related {
        padding: 24px;
    }

    .art-related__title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .art-hero {
        padding: 90px 0 24px;
    }

    .art-hero__breadcrumb {
        font-size: 13px;
        gap: 8px;
    }

    .art-main {
        padding: 40px 0 60px;
    }

    .art-post {
        border-radius: 16px;
    }

    .art-post__header {
        padding: 24px 20px 20px;
    }

    .art-post__category {
        padding: 6px 12px;
        font-size: 12px;
    }

    .art-post__title {
        font-size: 1.35rem;
    }

    .art-post__meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .art-post__meta-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    .art-post__meta-item img {
        width: 14px;
        height: 14px;
    }

    .art-post__intro {
        padding: 24px 20px 0;
    }

    .art-post__content {
        padding: 20px;
    }

    .art-post__content h2 {
        font-size: 18px;
        margin: 32px 0 16px;
    }

    .art-post__content h3 {
        font-size: 16px;
    }

    .art-post__content blockquote {
        padding: 16px 20px;
    }

    .art-post__conclusion {
        padding: 0 20px 24px;
        padding-top: 20px;
    }

    .art-post__conclusion h2 {
        font-size: 18px;
    }

    .art-post__tags {
        padding: 14px 20px;
        font-size: 13px;
    }

    .art-post__caption {
        padding: 10px 20px;
        font-size: 12px;
    }

    .art-cta {
        padding: 20px;
        border-radius: 14px;
    }

    .art-cta__icon {
        width: 56px;
        height: 56px;
    }

    .art-cta__icon img {
        width: 28px;
        height: 28px;
    }

    .art-cta__title {
        font-size: 18px;
    }

    .art-cta__text {
        font-size: 13px;
    }

    .art-cta__btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .art-related {
        padding: 20px;
        border-radius: 14px;
    }

    .art-related__title {
        font-size: 16px;
        gap: 10px;
        margin-bottom: 20px;
    }

    .art-related__title img {
        width: 20px;
        height: 20px;
    }

    .art-related__card {
        padding: 14px 16px;
    }

    .art-related__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .art-related__icon img {
        width: 22px;
        height: 22px;
    }

    .art-related__card-title {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .art-hero__container,
    .art-main__container {
        padding: 0 16px;
    }

    .art-post__header {
        padding: 20px 16px;
    }

    .art-post__title {
        font-size: 1.25rem;
    }

    .art-post__meta {
        gap: 6px;
    }

    .art-post__meta-item {
        padding: 5px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .art-post__meta-item img {
        width: 12px;
        height: 12px;
    }

    .art-post__intro {
        padding: 20px 16px 0;
    }

    .art-post__content {
        padding: 16px;
    }

    .art-post__conclusion {
        padding: 0 16px 20px;
        padding-top: 16px;
    }

    .art-post__tags {
        padding: 12px 16px;
    }

    .art-post__caption {
        padding: 8px 16px;
    }

    .art-cta {
        padding: 16px;
        gap: 16px;
    }

    .art-related {
        padding: 16px;
    }

    .art-related__card {
        padding: 12px 14px;
        gap: 10px;
    }
}
