
:root { 
    --primary: #FFD700; 
    --accent: #FFC000; 
    --bg-dark: #0A0A0A; 
    --bg-card: #141414; 
    --text-main: #FFFFFF; 
    --text-head: #FFD700; 
    --text-sec: #E0E0E0; /* Lightened for Accessibility/Contrast */
    --font-body: 'Georgia', serif;
    --font-head: 'Cinzel', serif;
}

/* Base Reset */
* { box-sizing: border-box; }

body { 
    font-family: var(--font-body); 
    line-height: 1.8; 
    color: var(--text-main); 
    margin: 0; 
    padding: 0; 
    background: var(--bg-dark); 
    -webkit-font-smoothing: antialiased;
}

/* Accessibility: Skip to Content (Best Practice) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: black;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* Typography */
h1, h2, h3 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

p { margin-bottom: 25px; }

/* Header & Logo Section */
header { 
    background: var(--bg-dark); 
    padding: 20px 0; 
    border-bottom: 2px solid var(--primary);
    text-align: center;
}

.header-logo {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    transform: scale(1.05);
}

/* Navigation */
nav { 
    background: var(--bg-card); 
    text-align: center; 
    border-bottom: 1px solid #333;
    position: sticky; /* Keeps nav visible for better UX */
    top: 0;
    z-index: 50;
}

nav a { 
    display: inline-block; 
    padding: 15px 20px; 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    font-family: var(--font-head);
    transition: color 0.3s;
}

nav a:hover, nav a:focus { color: var(--accent); outline: none; }

/* Main Content & Containers */
main { display: block; } /* Fixes IE/Edge rendering */

.container { 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 25px; 
}

/* Grid System for Library */
.diet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.diet-item {
    background: var(--bg-card);
    border: 1px solid #222;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    overflow: hidden;
}

.diet-item:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15);
}

.diet-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #222;
}

.diet-info { padding: 25px; }
.diet-info h3 { color: var(--text-head); margin: 0 0 12px 0; font-size: 1.4rem; }
.diet-info p { color: var(--text-sec); font-size: 1rem; margin: 0; line-height: 1.6; }

/* Article Specific Elements */
.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 45px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.article-content {
    font-size: 1.2rem;
    color: var(--text-sec);
    max-width: 750px;
    margin: 0 auto;
}

/* Video CTA Section */
.video-cta {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 60px 0;
}

.btn-video {
    display: inline-block;
    background: #1877F2;
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: sans-serif;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-video:hover { background: #1565c0; transform: scale(1.05); }

/* Footer */
footer { 
    text-align: center; 
    padding: 60px 20px; 
    font-size: 0.85rem; 
    color: #888; 
    border-top: 1px solid #222;
    margin-top: 80px;
}

footer a { 
    color: #aaa; 
    text-decoration: none; 
    margin: 0 12px; 
    transition: color 0.3s;
}

footer a:hover { color: var(--primary); }

/* Utility: Hidden Main Landmark for SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
