/* The Mammoth Steppes Website Styles */

:root {
    /* Color Palette - Ice Blue and Warm Gold */
    --ice-blue: #4A90E2;
    --ice-blue-dark: #2E5A8C;
    --ice-blue-light: #7AB3F5;
    --warm-gold: #D4AF37;
    --warm-gold-dark: #B8941F;
    --warm-gold-light: #E8C968;
    
    /* Neutral Colors */
    --parchment: #F5F1E8;
    --dark-text: #2C2C2C;
    --medium-text: #555555;
    --light-bg: #FAFAF8;
    --white: #FFFFFF;
    
    /* Fonts */
    --heading-font: 'Cinzel', serif;
    --body-font: 'Lora', serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--dark-text);
    background-color: var(--parchment);
    line-height: 1.8;
    font-size: 18px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--ice-blue-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-top: 2rem;
    border-bottom: 2px solid var(--warm-gold);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.6rem;
    color: var(--ice-blue);
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--ice-blue-dark) 0%, var(--ice-blue) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .site-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--warm-gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    font-family: var(--heading-font);
}

nav a:hover {
    color: var(--warm-gold-light);
}

nav a.active {
    color: var(--warm-gold);
    border-bottom: 2px solid var(--warm-gold);
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, var(--ice-blue-light) 0%, var(--parchment) 100%);
    margin-bottom: 3rem;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    color: var(--ice-blue-dark);
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-style: italic;
    color: var(--medium-text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Content Cards */
.card {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--warm-gold);
}

.card h2 {
    color: var(--ice-blue-dark);
    margin-top: 0;
}

/* Grid Layout for Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card-grid .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Dynamically loaded card images */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hide card images when src is empty (before loading) */
.card-image[src=""] {
    display: none;
}
/* Section Dividers */
.section {
    margin: 3rem 0;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, var(--ice-blue) 0%, var(--warm-gold) 50%, var(--ice-blue) 100%);
    margin: 3rem 0;
}

/* Links */
a {
    color: var(--ice-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--warm-gold);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--warm-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--medium-text);
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 4px;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--ice-blue-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    margin-top: 0.75rem;
}

.contact-link {
    color: var(--warm-gold);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--warm-gold-light);
    text-decoration: underline;
}

/* Hamburger Menu Button - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Each line of the hamburger icon */
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--warm-gold);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate hamburger into an X when menu is open */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show the hamburger button on mobile */
    .hamburger {
        display: flex;
    }

    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Hide the nav links by default on mobile */
    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        text-align: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--ice-blue-dark) 0%, var(--ice-blue) 100%);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        padding: 0.5rem 0;
        z-index: 999;
    }

    /* Show the nav links when the menu is open */
    nav ul.menu-open {
        display: flex;
    }

    /* Each nav link gets its own row with padding */
    nav ul li {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Remove the border on the last item */
    nav ul li:last-child {
        border-bottom: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Special Elements */
.highlight {
    background: linear-gradient(120deg, var(--warm-gold-light) 0%, var(--warm-gold-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 85%;
    padding: 0 0.2rem;
}

.emphasis {
    color: var(--ice-blue-dark);
    font-weight: 600;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Images in story content */
#story-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
