/* VARIABLES & RESET */
:root {
    --primary: #d63384; /* A nice romantic pink/red */
    --bg-color: #333;
    --glass: rgba(255, 255, 255, 0.8);
    --text: #eee;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    text-align: center;
}

/* UTILITY CLASSES */
.hidden { display: none !important; }

/* LOGIN OVERLAY */
#login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: #555;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

input {
    background: #333;
    color: #eee;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover { transform: scale(1.05); }

/* HEADER & NAV */
header {
    padding: 20px;
    background: #222;
}

nav button {
    margin: 5px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

nav button:hover {
    background: var(--primary);
    color: white;
}

/* SECTIONS */
.content-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

/* POEMS SECTION (Accordion Style) */
.poem-container {
    max-width: 600px; /* The "Paper Stack" width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.poem-card {
    background: #222;
    border-radius: 10px;
    border: 1px solid #444;
    overflow: hidden; /* Ensures content doesn't spill out */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* The Clickable Title Area */
.poem-header {
    padding: 20px;
    background: #2a2a2a;
    cursor: pointer; /* Shows the little hand icon */
    display: flex;
    justify-content: space-between; /* Pushes arrow to the right */
    align-items: center;
    transition: background 0.2s;
}

.poem-header:hover {
    background: #333; /* Slightly lighter on hover */
}

.poem-header h4 {
    margin: 0;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* The Arrow Icon */
.arrow {
    font-size: 1.2rem;
    color: #888;
    transition: transform 0.3s ease;
}

/* The Hidden Poem Text */
.poem-body {
    display: none; /* HIDDEN BY DEFAULT */
    padding: 30px;
    border-top: 1px solid #444;
    background: #222;
    text-align: left;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

/* STATE: OPEN (We will add this class via Javascript) */
.poem-card.open .poem-body {
    display: block; /* Shows text when open */
    animation: slideDown 0.3s ease-out;
}

.poem-card.open .arrow {
    transform: rotate(180deg); /* Flips the arrow up */
    color: var(--primary);
}

/* Simple fade in for the text opening */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MAP & WHEEL */
#km-count { font-size: 2.5rem; color: var(--primary); }
#wheel-result {
    font-size: 1.5rem;
    margin: 20px;
    font-weight: bold;
    min-height: 50px;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.placeholder-img {
    background: #222;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
img {
    width: 100%;
    border-radius: 10px;
}

/* ANIMATION */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HOME SECTION SPECIAL STYLES */
#home {
    text-align: center;
    padding-top: 50px;
}

.hero-welcome h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto 30px auto;
}


/* MAP STYLES */
#map-container {
    height: 400px; /* Essential: The map won't show without height */
    width: 100%;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1; /* Ensures map stays below other overlay elements */
}


/* HEART SECTION STYLES */

/* Video Container */
.video-container {
    margin: 20px auto;
    max-width: 100%;
    border-radius: 15px;
    overflow: hidden; /* Clips the video corners to matches border-radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid #444;
}

video {
    width: 100%; /* Makes video responsive */
    display: block;
}

/* Math Container */
.math-container {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: justify;
    font-size: 1.1rem;
}

/* Code Container */
.code-container {
    margin-top: 30px;
    text-align: left; /* Code looks better left-aligned */
}

/* Override Prism default slightly to match your theme */
pre[class*="language-"] {
    border-radius: 10px;
    border: 1px solid #444;
    background: #1e1e1e !important; /* VS Code dark background */
}