/**
 * MTapeten Wien - Article Page Styles
 * Dark Theme with Gold Accents
 */

/* ==========================================================================
   Header Override for Article Page
   ========================================================================== */

/* Make header solid on article page */
.page-article .hdr {
    position: fixed !important;
    background: var(--clr-dark-card) !important;
    border-bottom: 1px solid var(--clr-dark-elevated) !important;
}

.page-article .hdr__topbar {
    background: var(--clr-dark) !important;
}

.page-article .hdr__main {
    background: var(--clr-dark-card) !important;
}

.page-article .hdr .hdr__nav-link {
    color: var(--clr-text-light) !important;
}

.page-article .hdr .hdr__nav-link:hover {
    color: var(--clr-gold) !important;
}

.page-article .hdr .hdr__logo-name {
    color: var(--clr-text-light) !important;
}

.page-article .hdr__logo-tag {
    color: var(--clr-gold) !important;
}

.page-article .hdr__topbar-item {
    color: var(--clr-text-muted-light) !important;
}

.page-article .hdr__phone-label {
    color: var(--clr-text-muted-light) !important;
}

.page-article .hdr__phone-num {
    color: var(--clr-text-light) !important;
}

.page-article .hdr__burger-line {
    background: var(--clr-text-light) !important;
}

/* Scrolled state - high specificity */
body.page-article .hdr.hdr--scrolled {
    background: var(--clr-dark-card) !important;
    border-bottom: 1px solid var(--clr-dark-elevated) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__topbar {
    display: none !important;
}

body.page-article .hdr.hdr--scrolled .hdr__main {
    background: var(--clr-dark-card) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__logo-name,
body.page-article .hdr.hdr--scrolled .hdr__nav-link {
    color: var(--clr-text-light) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__nav-link:hover {
    color: var(--clr-gold) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__nav-link img {
    filter: brightness(0) invert(1) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__phone-label {
    color: var(--clr-text-muted-light) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__phone-num {
    color: var(--clr-text-light) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__burger-line {
    background: var(--clr-text-light) !important;
}

body.page-article .hdr.hdr--scrolled .hdr__topbar-item img {
    filter: brightness(0) invert(1) !important;
}

/* ==========================================================================
   Article Hero Section
   ========================================================================== */

.art-hero {
    background: linear-gradient(135deg, var(--clr-dark) 0%, #1a1a1f 100%);
    padding: 120px 0 40px;
    position: relative;
    overflow: hidden;
}

.art-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(223, 185, 117, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(223, 185, 117, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

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

/* Breadcrumb */
.art-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--clr-text-muted-light);
}

.art-hero__breadcrumb a {
    color: var(--clr-text-muted-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.art-hero__breadcrumb a:hover {
    color: var(--clr-gold);
}

.art-hero__breadcrumb-sep {
    opacity: 0.5;
}

/* ==========================================================================
   Article Main Content
   ========================================================================== */

.art-main {
    background: var(--clr-dark);
    padding: 48px 0 80px;
}

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

/* ==========================================================================
   Article Styles
   ========================================================================== */

.art {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Article Header */
.art__header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.art__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(223, 185, 117, 0.15);
    color: #b8860b;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.art__category img {
    filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(500%) hue-rotate(20deg) brightness(90%) contrast(90%);
}

.art__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0 0 20px;
}

.art__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.art__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
}

.art__meta-item img {
    opacity: 0.5;
    filter: brightness(0);
}

/* Article Image */
.art__image {
    margin: 0;
    position: relative;
}

.art__image img {
    width: 100%;
    height: auto;
    display: block;
}

.art__image-caption {
    padding: 12px 32px;
    font-size: 0.8125rem;
    color: #666;
    background: #f8f8f8;
    font-style: italic;
}

/* Article Intro */
.art__intro {
    padding: 32px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
}

.art__intro p {
    margin: 0;
}

/* Article Content */
.art__content {
    padding: 32px;
    color: #444;
    line-height: 1.8;
}

.art__content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 32px 0 16px;
}

.art__content h2:first-child {
    margin-top: 0;
}

.art__content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 24px 0 12px;
}

.art__content p {
    margin: 0 0 16px;
}

.art__content ul,
.art__content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.art__content li {
    margin-bottom: 8px;
}

.art__content strong {
    color: #1a1a1a;
}

.art__content a {
    color: #b8860b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.art__content a:hover {
    color: #8b6508;
    text-decoration: underline;
}

.art__content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f8f8f8;
    border-left: 4px solid var(--clr-gold);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #333;
}

.art__content blockquote p {
    margin: 0;
}

/* Article Conclusion */
.art__conclusion {
    padding: 32px;
    background: linear-gradient(135deg, #f8f8f8 0%, rgba(223, 185, 117, 0.1) 100%);
    border-top: 1px solid #e5e5e5;
}

.art__conclusion-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #b8860b;
    margin: 0 0 16px;
}

.art__conclusion p {
    margin: 0;
    color: #444;
    line-height: 1.8;
}

.art__conclusion a {
    color: #b8860b;
    text-decoration: none;
}

.art__conclusion a:hover {
    text-decoration: underline;
}

/* Article Tags */
.art__tags {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.875rem;
    color: #666;
}

.art__tags img {
    filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(500%) hue-rotate(20deg) brightness(90%) contrast(90%);
}

/* Article CTA */
.art__cta {
    margin: 0;
    padding: 32px;
    background: var(--clr-dark);
    border-top: none;
    border-radius: 0 0 16px 16px;
    text-align: center;
}

.art__cta-content {
    margin-bottom: 24px;
}

.art__cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.art__cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.art__cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.art__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.art__cta-btn--primary {
    background: var(--clr-gold);
    color: var(--clr-dark);
}

.art__cta-btn--primary:hover {
    background: var(--clr-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(223, 185, 117, 0.3);
}

.art__cta-btn--primary img {
    filter: brightness(0);
}

.art__cta-btn--secondary {
    background: transparent;
    border: 2px solid var(--clr-gold);
    color: var(--clr-gold);
}

.art__cta-btn--secondary:hover {
    background: var(--clr-gold);
    color: var(--clr-dark);
}

.art__cta-btn--secondary img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(34%) saturate(463%) hue-rotate(358deg) brightness(93%) contrast(89%);
    transition: filter 0.3s ease;
}

.art__cta-btn--secondary:hover img {
    filter: brightness(0);
}

/* ==========================================================================
   Related Articles
   ========================================================================== */

.art-related {
    margin-top: 48px;
}

.art-related__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-light);
    margin: 0 0 24px;
    text-align: center;
}

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

.art-related__card {
    background: var(--clr-dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--clr-dark-elevated);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.art-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(223, 185, 117, 0.3);
}

.art-related__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.art-related__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--clr-dark);
}

.art-related__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-related__card:hover .art-related__img img {
    transform: scale(1.08);
}

.art-related__body {
    padding: 16px;
}

.art-related__card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-light);
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.art-related__card:hover .art-related__card-title {
    color: var(--clr-gold);
}

.art-related__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-gold);
}

.art-related__more img {
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(79%) sepia(34%) saturate(463%) hue-rotate(358deg) brightness(93%) contrast(89%);
}

.art-related__card:hover .art-related__more img {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive - 1200px
   ========================================================================== */

@media (max-width: 1200px) {
    .art-related__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ==========================================================================
   Responsive - 1024px
   ========================================================================== */

@media (max-width: 1024px) {
    .art-hero {
        padding: 140px 0 32px;
    }

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

    .art-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Responsive - 768px
   ========================================================================== */

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

    .art-hero__container {
        padding: 0 16px;
    }

    .art-main {
        padding: 24px 0 48px;
    }

    .art-main__container {
        padding: 0 16px;
    }

    .art {
        border-radius: 12px;
        margin-bottom: 32px;
    }

    .art__header {
        padding: 24px 20px 20px;
    }

    .art__title {
        font-size: 1.5rem;
    }

    .art__meta {
        gap: 16px;
    }

    .art__image-caption {
        padding: 10px 20px;
    }

    .art__intro {
        padding: 24px 20px;
        font-size: 1rem;
    }

    .art__content {
        padding: 24px 20px;
    }

    .art__content h2 {
        font-size: 1.25rem;
    }

    .art__content h3 {
        font-size: 1.125rem;
    }

    .art__conclusion {
        padding: 24px 20px;
    }

    .art__tags {
        padding: 16px 20px;
    }

    .art__cta {
        padding: 24px 20px;
    }

    .art__cta-actions {
        flex-direction: column;
    }

    .art__cta-btn {
        width: 100%;
        justify-content: center;
    }

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

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

/* ==========================================================================
   Responsive - 480px
   ========================================================================== */

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

    .art__header {
        padding: 20px 16px 16px;
    }

    .art__category {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .art__title {
        font-size: 1.25rem;
    }

    .art__meta {
        gap: 12px 16px;
    }

    .art__meta-item {
        font-size: 0.8125rem;
    }

    .art__intro {
        padding: 20px 16px;
        font-size: 0.9375rem;
    }

    .art__content {
        padding: 20px 16px;
        font-size: 0.9375rem;
    }

    .art__conclusion {
        padding: 20px 16px;
    }

    .art__conclusion-title {
        font-size: 1.125rem;
    }

    .art__tags {
        padding: 14px 16px;
        font-size: 0.8125rem;
    }

    .art__cta {
        padding: 20px 16px;
    }

    .art__cta-title {
        font-size: 1.25rem;
    }

    .art__cta-text {
        font-size: 0.9375rem;
    }

    .art__cta-btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .art-related__body {
        padding: 12px;
    }

    .art-related__card-title {
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   Responsive - 375px
   ========================================================================== */

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

    .art__header,
    .art__intro,
    .art__content,
    .art__conclusion,
    .art__tags,
    .art__cta {
        padding-left: 12px;
        padding-right: 12px;
    }

    .art__image-caption {
        padding: 8px 12px;
    }

    .art-related__grid {
        gap: 12px;
    }
}
