/* ═══════════════════════════════════════
   NYE LENS — Elegant Dark Photography Theme
   ═══════════════════════════════════════ */

:root {
    --bg-deep: #0a0a0c;
    --bg-surface: #141418;
    --bg-elevated: #1c1c22;
    --gold: #d4a853;
    --gold-light: #e8c97a;
    --gold-dim: #a07830;
    --champagne: #f2e0c8;
    --text-primary: #e8e4e0;
    --text-secondary: #9a9690;
    --text-muted: #5e5a56;
    --border: rgba(255,255,255,0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--champagne);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

em { font-style: italic; color: var(--gold); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* Reveal Animation */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #0a0a0c;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(212,168,83,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,168,83,0.4);
    color: #0a0a0c;
}

/* ═══ HEADER ═══ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,12,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 600; color: var(--champagne);
    letter-spacing: 0.02em;
}
.logo-text em { font-style: italic; color: var(--gold); }
.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 400;
    letter-spacing: 0.03em; text-transform: uppercase; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--gold); transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
}
.mobile-toggle span {
    width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px;
}

/* ═══ HERO ═══ */
.hero {
    position: relative; min-height: 90vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(135deg, #0d0b08 0%, #1a1410 30%, #0a0a0c 70%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,168,83,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(232,201,122,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(160,120,48,0.06) 0%, transparent 50%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='0.4' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; max-width: 750px; padding: 2rem; }
.hero-title { margin-bottom: 1.2rem; color: var(--champagne); }
.hero-title em { color: var(--gold); display: block; font-size: 0.85em; }
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 2.2rem; max-width: 580px; margin-left: auto; margin-right: auto;
}

/* ═══ SECTIONS ═══ */
.posts-section { padding: 5rem 0; }
.section-title {
    text-align: center; margin-bottom: 3rem;
    position: relative; padding-bottom: 1rem;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 2px; background: var(--gold);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* ═══ POST CARD ═══ */
.post-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-color: rgba(212,168,83,0.2);
}
.post-card-link { display: block; color: inherit; }
.post-card-image {
    height: 220px; background-size: cover; background-position: center; position: relative;
}
.post-card-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(transparent, var(--bg-surface));
}
.post-card-image.placeholder {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.post-card-body { padding: 1.5rem; }
.post-category {
    display: inline-block; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--gold); font-weight: 500; margin-bottom: 0.6rem;
}
.post-card-title {
    margin-bottom: 0.5rem; color: var(--text-primary); font-size: 1.3rem;
    transition: color var(--transition);
}
.post-card:hover .post-card-title { color: var(--gold-light); }
.post-card-excerpt {
    color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem;
}
.post-card-date { font-size: 0.78rem; color: var(--text-muted); }

/* ═══ PAGE HEADER ═══ */
.page-header {
    padding: 7rem 0 3rem; text-align: center;
    background: var(--bg-surface); border-bottom: 1px solid var(--border);
}
.page-title { margin-bottom: 0.5rem; }
.page-desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ═══ SINGLE POST ═══ */
.post-hero {
    position: relative; min-height: 50vh; display: flex; align-items: flex-end;
    background: linear-gradient(135deg, #0d0b08, #1a1410);
    margin-bottom: 3rem;
}
.post-hero-image {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0.35;
}
.post-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 30%, var(--bg-deep) 100%);
}
.post-hero-content { position: relative; z-index: 1; padding: 4rem 1.5rem 3rem; }
.post-category-badge {
    display: inline-block; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: #0a0a0c; font-weight: 600;
    background: var(--gold); padding: 0.3rem 0.9rem; border-radius: 50px; margin-bottom: 1rem;
}
.post-title { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 800px; }
.post-meta {
    display: flex; gap: 1.5rem; color: var(--text-secondary);
    font-size: 0.9rem; margin-top: 1rem;
}
.post-body-wrapper { max-width: 780px; padding-bottom: 4rem; }

.post-content { font-size: 1.08rem; line-height: 1.85; color: var(--text-primary); }
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.8rem; padding-top: 1rem; }
.post-content h3 { margin: 2rem 0 0.8rem; font-size: 1.35rem; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
    border-left: 3px solid var(--gold); padding: 1rem 1.5rem; margin: 2rem 0;
    background: var(--bg-surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--text-secondary);
}
.post-content img { max-width: 100%; border-radius: var(--radius); margin: 2rem 0; }
.post-content code {
    background: var(--bg-elevated); padding: 0.15rem 0.4rem;
    border-radius: 4px; font-size: 0.88em;
}
.post-content a { border-bottom: 1px solid transparent; }
.post-content a:hover { border-bottom-color: var(--gold); }

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(212,168,83,0.03));
    border: 1px solid rgba(212,168,83,0.2); border-radius: var(--radius);
    padding: 1.5rem 1.8rem; margin: 2rem 0; position: relative;
}
.tip-box::before {
    content: '💡 Pro Tip'; font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold);
    display: block; margin-bottom: 0.6rem;
}
.tip-box p:last-child { margin-bottom: 0; }

/* ═══ AUTHOR CARD ═══ */
.author-card {
    display: flex; gap: 1.2rem; align-items: center;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; margin: 3rem 0;
}
.author-avatar {
    font-size: 2.5rem; width: 56px; height: 56px; display: flex;
    align-items: center; justify-content: center;
    background: var(--bg-elevated); border-radius: 50%; flex-shrink: 0;
}
.author-info h4 { color: var(--champagne); margin-bottom: 0.3rem; }
.author-info p { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }

/* ═══ RELATED ═══ */
.related-posts { margin: 4rem 0; }
.related-posts h3 { text-align: center; margin-bottom: 2rem; color: var(--champagne); }
.related-posts .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem;
}

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--bg-surface); border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.footer-brand { margin-bottom: 2.5rem; }
.footer-brand .logo-text { font-size: 1.3rem; }
.footer-brand p {
    color: var(--text-secondary); font-size: 0.9rem;
    max-width: 480px; margin-top: 0.5rem;
}
.footer-links { margin-bottom: 2.5rem; }
.footer-links h4 {
    color: var(--text-primary); text-transform: uppercase; font-size: 0.75rem;
    letter-spacing: 0.08em; margin-bottom: 0.8rem;
    font-family: var(--font-body); font-weight: 500;
}
.footer-links a {
    display: inline-block; color: var(--text-secondary);
    font-size: 0.88rem; margin-right: 1.2rem; margin-bottom: 0.4rem;
}
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .main-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg-surface); flex-direction: column; padding: 1.5rem;
        border-bottom: 1px solid var(--border); gap: 1rem;
    }
    .main-nav.open { display: flex; }
    .mobile-toggle { display: flex; }
    .posts-grid { grid-template-columns: 1fr; }
    .hero { min-height: 70vh; }
    .post-hero { min-height: 35vh; }
    .author-card { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
}