/* 
   DDL GROUP - Modern Article Design System
   Refined Agency Aesthetic
*/

:root {
    --art-primary: #ff0000;
    --art-dark: #1a1a1b;
    --art-text: #2d2e2f;
    --art-muted: #5a5f68;
    --art-bg: #f8fafc;
    --art-card-bg: #ffffff;
    --art-border: rgba(0, 0, 0, 0.06);
    --art-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --art-radius: 20px;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

.article-page {
    background-color: var(--art-bg);
    min-height: 100vh;
    padding-bottom: 100px;
    font-family: var(--font-sans);
}

/* Reset container padding for article page to fix large gaps */
.article-page .container {
    padding: 20px 5%;
    max-width: 1200px;
}

/* --- Hero Section --- */
.article-hero-section {
    padding: 30px 0 20px;
    background: #fff;
    border-bottom: 1px solid var(--art-border);
    text-align: center;
}

.article-breadcrumb { margin-bottom: 15px; }
.back-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--art-bg);
    color: var(--art-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid var(--art-border);
}
.back-pill:hover { background: #eee; transform: translateX(-5px); }

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--art-dark);
    line-height: 1.1;
    max-width: 1000px;
    margin: 0 auto 20px;
    letter-spacing: -1px;
    opacity: 1 !important; /* Force visibility - style.css sets it to 0 */
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--art-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-item i { color: var(--art-primary); }

/* --- Layout Grid --- */
.article-main-container { padding-top: 60px; }
.article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Sidebar --- */
.article-sidebar { position: relative; }
.sticky-top { position: sticky; top: 120px; }

.toc-container {
    background: #fff;
    padding: 24px;
    border-radius: var(--art-radius);
    border: 1px solid var(--art-border);
    margin-bottom: 30px;
}
.toc-container h3 { font-size: 1.1rem; margin-bottom: 15px; border-bottom: 2px solid var(--art-primary); display: inline-block; }
.toc-container ul { list-style: none; padding: 0; }
.toc-container li { margin-bottom: 10px; font-size: 0.9rem; }
.toc-container a { color: var(--art-text); text-decoration: none; transition: color 0.2s; display: block; }
.toc-container a:hover { color: var(--art-primary); }
.toc-level-3 { padding-left: 15px; opacity: 0.8; }

.sidebar-share h4 { font-size: 0.9rem; text-transform: uppercase; margin-bottom: 12px; color: var(--art-muted); }
.share-pills { display: flex; gap: 10px; }
.share-pill {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; transition: opacity 0.3s;
}
.share-pill.fb { background: #1877F2; }
.share-pill.wa { background: #25D366; }
.share-pill.tw { background: #000; }
.share-pill:hover { opacity: 0.8; }

/* --- Article Content --- */
.article-content {
    background: #fff;
    padding: 60px;
    border-radius: var(--art-radius);
    border: 1px solid var(--art-border);
    box-shadow: var(--art-shadow);
}

.featured-image { margin-bottom: 40px; border-radius: 12px; overflow: hidden; }
.featured-image img { width: 100%; height: auto; display: block; }

.content-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--art-text);
}
.content-body h2 { font-family: var(--font-serif); font-size: 2rem; margin: 40px 0 20px; color: var(--art-dark); }
.content-body p { margin-bottom: 25px; }

.social-share-bottom {
    margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--art-border);
    display: flex; align-items: center; justify-content: space-between;
}
.share-links { display: flex; gap: 20px; }
.share-links a { font-size: 1.2rem; color: var(--art-muted); transition: color 0.3s; }
.share-links a:hover { color: var(--art-primary); }

/* --- Article Navigation --- */
.article-nav-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px;
}
.nav-card {
    padding: 30px; background: var(--art-bg); border-radius: 16px; text-decoration: none; transition: all 0.3s;
    border: 1px solid var(--art-border);
}
.nav-card:hover { border-color: var(--art-primary); transform: translateY(-5px); }
.nav-card .nav-label { font-size: 0.75rem; text-transform: uppercase; color: var(--art-primary); font-weight: 800; margin-bottom: 10px; }
.nav-card .nav-title { font-weight: 700; color: var(--art-dark); font-size: 1.1rem; line-height: 1.3; }
.nav-card.next { text-align: right; }

/* --- Related Articles --- */
.related-articles-section { margin-top: 100px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 800; }
.section-header h2 span { color: var(--art-primary); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.related-card {
    background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--art-border);
    transition: all 0.4s; text-decoration: none; color: inherit; display: block;
}
.related-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.rel-thumb { height: 200px; overflow: hidden; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.related-card:hover .rel-thumb img { transform: scale(1.1); }

.rel-info { padding: 25px; }
.rel-date { font-size: 0.75rem; font-weight: 700; color: var(--art-primary); text-transform: uppercase; margin-bottom: 12px; }
.rel-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--art-dark); margin-bottom: 15px; line-height: 1.3; }
.read-more { font-size: 0.9rem; font-weight: 600; color: var(--art-primary); display: flex; align-items: center; gap: 8px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
    .article-content { padding: 40px 20px; }
    .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .article-nav-row { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
}

