/* =========================================
   ARTICLE READER - PREMIUM READING EXPERIENCE
   ========================================= */

:root {
    --article-bg: #0f1115;
    --article-text: #e0e6ed;
    --article-text-muted: #9ba1a6;
    --article-heading: #ffffff;
    --article-accent: #f0f0f0;
    --article-studio-bg: #0c1930;
    --article-studio-accent: #00d4ff;
    --article-font: 'Kufam', sans-serif;
    --reading-width: 1200px;
}

body.article-page {
    background-color: var(--article-bg);
    color: var(--article-text);
    min-height: 100vh;
    font-family: var(--article-font);
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}

body.article-page[data-type="studio"] {
    background-color: var(--article-studio-bg);
}

/* Header Navbar */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.btn-back-article {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
}

.btn-back-article:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-5px);
}

/* Article Hero Banner */
.article-banner {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.article-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(15, 17, 21, 0.8) 70%,
            rgba(15, 17, 21, 1) 100%);
}

body.article-page[data-type="studio"] .article-banner-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(12, 25, 48, 0.8) 70%,
            rgba(12, 25, 48, 1) 100%);
}

.article-banner-content {
    position: relative;
    z-index: 10;
    max-width: var(--reading-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 5% 40px;
    text-align: left;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--article-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-tag {
    color: var(--article-accent);
}

body.article-page[data-type="studio"] .article-tag {
    color: var(--article-studio-accent);
}

.article-time {
    color: var(--article-text-muted);
}

.article-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--article-heading);
    line-height: 1;
    font-weight: 800;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

/* Article Body */
.article-body {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 40px 5% 100px;
    font-size: 1.25rem;
    line-height: 1.8;
}

.article-intro {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--article-text-muted);
    margin-bottom: 50px;
    font-weight: 500;
}

/* Steam Wishlist in Article */
.article-wishlist {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 40px auto 60px auto !important;
    animation: none !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    height: auto !important;
}

.article-wishlist:hover {
    transform: translateY(-5px) !important;
}

/* Scaling internal elements for Article view */
.article-wishlist .steam-details {
    padding: 1.5rem 2rem !important;
    gap: 1rem !important;
}

.article-wishlist .steam-game-name {
    font-size: 1.5rem !important;
}

.article-wishlist .steam-status {
    font-size: 0.8rem !important;
}

.article-wishlist .coming-soon {
    font-size: 0.9rem !important;
    padding: 5px 15px !important;
}

.article-wishlist .btn-steam-wishlist {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
}

.article-wishlist .steam-icon {
    width: 24px !important;
    height: 24px !important;
}

@media (max-width: 768px) {
    .article-wishlist {
        max-width: 100% !important;
    }

    .article-wishlist .steam-game-name {
        font-size: 1.1rem !important;
    }
}

/* Rich Text Content applied to injected HTML */
.article-content {
    color: var(--article-text);
}

.article-content p {
    margin-bottom: 30px;
}

.article-content h3 {
    font-size: 2rem;
    color: var(--article-heading);
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content strong {
    color: var(--article-heading);
    font-weight: 700;
}

.article-content em {
    color: var(--article-text-muted);
    font-style: italic;
}

body.article-page[data-type="studio"] .article-content strong {
    color: var(--article-studio-accent);
}

/* Author / Footer Block */
.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--article-text-muted);
}

.article-footer strong {
    color: var(--article-heading);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }

    .article-body {
        font-size: 1.1rem;
    }

    .article-intro {
        font-size: 1.2rem;
    }

    .article-banner {
        height: 50vh;
    }
}