@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-surface: #121212;
    --gold: #dfb858;
    --gold-hover: #f3ce73;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--bg-main); color: var(--text-main); font-family: var(--font-sans); 
    min-height: 100vh; display: flex; flex-direction: column; 
    animation: pageFadeIn 0.8s ease-out;
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Topbar */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-bottom: 1px solid #1f1f1f; background: var(--bg-main); position: sticky; top: 0; z-index: 100; }
.logo-top { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.5rem; font-weight: 600; letter-spacing: 1px; text-decoration: none; transition: transform 0.3s;}
.logo-top:hover { transform: scale(1.05); }
.top-nav { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-left: auto; margin-right: auto;}
.top-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s, transform 0.3s; display: inline-block;}
.top-nav a:hover, .top-nav a.active { color: var(--gold); transform: translateY(-2px); }

/* Main Content */
.main-content { flex: 1; padding: 50px 40px; max-width: 1200px; margin: 0 auto; width: 100%; }

/* --- HERO SLIDER --- */
.hero-slider { position: relative; height: 500px; border-radius: 12px; overflow: hidden; margin-bottom: 60px; border: 1px solid #222; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 50px; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out, transform 4s ease-out; transform: scale(1.05); z-index: 1; }
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.2) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 600px; transform: translateY(20px); opacity: 0; transition: all 0.6s ease 0.3s; }
.hero-slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.1); color: var(--text-muted); padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px);}
.hero-title { font-family: var(--font-serif); font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.hero-desc { color: #ccc; margin-bottom: 30px; font-size: 1rem; line-height: 1.6; font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

/* Slider Navigation */
.slider-nav { position: absolute; bottom: 30px; right: 50px; display: flex; gap: 12px; z-index: 3; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; border: 1px solid rgba(0,0,0,0.5); }
.slider-dot:hover { background: rgba(255,255,255,0.6); }
.slider-dot.active { background: var(--gold); transform: scale(1.3); border-color: #000; box-shadow: 0 0 10px rgba(223, 184, 88, 0.5);}

/* Buttons */
.btn-primary { background-color: var(--gold); color: #000; border: none; padding: 15px 35px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: 4px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; display: inline-block; position: relative; overflow: hidden;}
.btn-primary:hover { background-color: var(--gold-hover); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(223, 184, 88, 0.3); }
.btn-primary:active { transform: scale(0.95); }

/* Section Titles */
.section-title { font-family: var(--font-serif); font-size: 1.8rem; font-style: italic; margin-bottom: 30px; padding-bottom: 10px; border-bottom: 1px solid #222; display: inline-block; color: #fff;}

/* Horizontal Cards */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.archive-card { position: relative; height: 200px; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; border: 1px solid #222; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: block; text-decoration: none; }
.archive-card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--gold); box-shadow: 0 15px 30px rgba(223, 184, 88, 0.15); z-index: 5;}
.archive-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 70%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.archive-info { position: absolute; bottom: 20px; left: 20px; z-index: 2; transition: transform 0.3s;}
.archive-card:hover .archive-info { transform: translateX(5px); }
.archive-title { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; margin-bottom: 5px; }
.archive-meta { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Vertical Posters */
.sanctuary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; margin-bottom: 60px; }
.poster-card { display: flex; flex-direction: column; text-decoration: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.poster-card:hover { transform: translateY(-10px); }
.poster-card:hover .poster-img { border-color: var(--gold); box-shadow: 0 15px 30px rgba(223, 184, 88, 0.15); transform: scale(1.03);}
.poster-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 15px; border: 1px solid #222; transition: all 0.4s ease; background: #1a1a1a; }
.poster-title { font-family: var(--font-serif); font-size: 1.2rem; color: #fff; margin-bottom: 5px; transition: color 0.3s;}
.poster-card:hover .poster-title { color: var(--gold); }
.poster-meta { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Quiz Interface */
.quiz-container { background: var(--bg-surface); padding: 50px; border-radius: 12px; border: 1px solid #1f1f1f; max-width: 800px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,0.8); transition: height 0.3s ease; }
.quiz-title-main { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 15px; text-align: center; }
.quiz-desc-main { color: var(--text-muted); text-align: center; margin-bottom: 40px; font-weight: 300; line-height: 1.6; font-size: 1rem;}
.answers-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.answer-btn { background: #161616; color: var(--text-main); border: 1px solid #222; padding: 20px; font-size: 1rem; text-align: left; border-radius: 8px; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-family: var(--font-sans); }
.answer-btn:hover { background: #1f1f1f; border-color: var(--gold); transform: translateX(10px); box-shadow: -5px 5px 15px rgba(0,0,0,0.5); }
.answer-btn:active { transform: scale(0.98) translateX(5px); }
.question-text { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 20px; text-align: center; }

/* Smooth Quiz Transitions */
.fade-anim { animation: fadeEnter 0.4s ease-out forwards; }
@keyframes fadeEnter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Social Share Buttons */
.share-container { display: flex; justify-content: center; gap: 15px; margin-top: 15px; margin-bottom: 30px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: #1a1a1a; color: #fff; text-decoration: none; border: 1px solid #333; font-weight: bold; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-size: 1.2rem; }
.share-btn:hover { transform: translateY(-5px) scale(1.15); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.share-fb:hover { background: #1877F2; border-color: #1877F2; }
.share-tw:hover { background: #1DA1F2; border-color: #1DA1F2; }
.share-tg:hover { background: #0088cc; border-color: #0088cc; }

/* Footer */
footer { border-top: 1px solid #1f1f1f; padding: 40px; text-align: center; background: var(--bg-surface); }
.footer-logo { color: var(--gold); font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 20px; }
.footer-copy { color: #555; font-size: 0.7rem; letter-spacing: 1px; }

/* Admin Base Styles (Hidden details to keep code neat, you already have full admin styles anyway) */
.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-main); }
.login-box { background: var(--bg-surface); padding: 50px; border-radius: 12px; border: 1px solid #1f1f1f; text-align: center; width: 100%; max-width: 450px; box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
.login-box input { background: #0a0a0a; color: #fff; border: 1px solid #222; padding: 15px; width: 100%; margin: 20px 0; border-radius: 6px; text-align: center; font-size: 1.2rem; letter-spacing: 2px; transition: 0.3s;}
.login-box input:focus { border-color: var(--gold); outline: none; }
.error { color: #ff6b6b; margin-bottom: 15px; font-size: 0.9rem; }
.admin-container { background: var(--bg-surface); padding: 40px; border-radius: 12px; border: 1px solid #1f1f1f; width: 100%; }
.admin-form { display: flex; flex-direction: column; gap: 20px; }
.admin-form input, .admin-form textarea { background: #0a0a0a; color: #fff; border: 1px solid #222; padding: 15px; border-radius: 6px; width: 100%; font-family: var(--font-sans); transition: 0.3s;}
.admin-form input:focus, .admin-form textarea:focus { border-color: var(--gold); outline: none; }
.admin-form label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: -10px; font-weight: 600;}
.msg { padding: 15px; background: #161616; border-left: 4px solid var(--gold); margin-bottom: 20px; border-radius: 0 6px 6px 0;}
.tabs { display: flex; gap: 30px; margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 0; }
.tab-btn { background: none; border: none; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; padding-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; transition: 0.3s; }
.tab-btn.active { color: var(--gold); border-bottom: 2px solid var(--gold); margin-bottom: -1px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.stats-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: var(--font-sans); }
.stats-table th { text-align: left; padding: 15px; border-bottom: 2px solid #333; color: var(--gold); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.stats-table td { padding: 15px; border-bottom: 1px solid #1f1f1f; color: var(--text-main); font-size: 0.95rem; }
.stats-table tr:hover td { background: #1a1a1a; }