/* ==========================================================================
   InDyne News Article Details Page Stylesheet
   ========================================================================== */

:root {
    /* Main Page Background (Seamless blend with home page News theme) */
    --article-page-bg: linear-gradient(135deg, #0a1120 0%, #121b2d 100%);
    /* Card Component Panels (Subtle transparency layers over background) */
    --article-bg-card: linear-gradient(135deg, rgba(18, 27, 45, 0.95), rgba(24, 36, 58, 0.85));
    --article-panel-border: rgba(0, 212, 255, 0.15);
    /* Typography & Core Accents */
    --accent: #00d4ff; /* Glowing Electric Cyan */
    --words: #ffffff; /* Crisp Main Title Text */
    --words-secondary: #94a3b8; /* Muted Slate Grey Text */
}

/* --- Core Page Layout Wrappers --- */
.article-section {
    background: var(--article-page-bg);
    color: var(--words-secondary);
    font-family: "Barlow", sans-serif;
    min-height: 100vh;
    padding: 6rem 0 4rem 0; /* Pushes content down safely under your fixed navbar */
}

/* Content Container Grid Boundaries */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Article Main Card Container --- */
.article-card {
    background: var(--article-bg-card);
    border: 1px solid var(--article-panel-border);
    backdrop-filter: blur(12px); /* Seamless dashboard depth look */
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    padding: 3rem;
}

/* --- Header & Typography --- */
.article-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--words);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.article-meta {
    font-size: 0.9rem;
    color: #64748b; /* Sharper readable grey for metadata line details */
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

    .article-meta .featured {
        color: var(--accent);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* Markdown and Plaintext Body Content Area */
.article-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--words-secondary);
}

    /* Ensures custom formatting blocks like links inside articles match style rules */
    .article-body a {
        color: var(--accent);
        text-decoration: none;
        border-bottom: 1px dashed rgba(0, 212, 255, 0.4);
        transition: all 0.2s ease;
    }

        .article-body a:hover {
            color: #ffffff;
            border-bottom-style: solid;
        }

    /* Lists and paragraphs spacing fixes inside articles */
    .article-body p,
    .article-body ul,
    .article-body ol {
        margin-bottom: 1.5rem;
    }

/* --- Structural Media Elements --- */
.article-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 1rem 0 2.5rem 0;
    display: block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

/* --- Back Action Navigation Button --- */
.article-footer {
    margin-top: 3.5rem;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.btn-back {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Soft, subtle border */
    color: var(--words-secondary); /* Matches readable grey body text */
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease-in-out;
}

    .btn-back:hover {
        border-color: var(--accent); /* Lights up on user focus */
        color: var(--accent);
        background: rgba(0, 212, 255, 0.04); /* Very faint tech glow inside */
    }
