/* --- RESET & VARIABLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --yakun-brown: #4A3228;
    --yakun-red: #A83232;
    --cream-bg: #F9F5EA;
    --gold-accent: #C5A065;
    --text-dark: #333333;
    --white: #ffffff;
}

body {
    font-family: 'Georgia', 'Segoe UI', serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
nav {
    background-color: var(--yakun-brown);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--gold-accent);
    text-transform: uppercase;
}

.nav-links { display: flex; gap: 20px; }

.nav-btn {
    text-decoration: none;
    color: var(--white);
    font-family: sans-serif;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
}

.nav-btn:hover { color: var(--gold-accent); }

.login-btn {
    background-color: var(--yakun-red);
    border: 1px solid var(--yakun-red);
}

.login-btn:hover { background-color: darkred; color: white; }

/* User icon in navbar */
.user-link { display: inline-flex; align-items: center; margin-left: 10px; }
.user-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold-accent); color: var(--yakun-brown);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* --- HERO CAROUSEL --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px; /* Fixed height for banner */
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1; /* Images stay at level 1 */
}

.slide.active { opacity: 1; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darkened more to make text readable */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10; /* Text sits at level 10 (above images) */
    width: 80%; /* Prevents text from hitting the edges */
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: 1.2rem;
    font-family: sans-serif;
}

/* --- SECTIONS --- */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    color: var(--yakun-brown);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--gold-accent);
    display: inline-block;
    padding-bottom: 10px;
}

.section-header { text-align: center; margin-bottom: 40px; }

/* --- ABOUT GAME (UPDATED) --- */
.about-grid {
    display: grid;
    /* Give text more space (1.2) and logo less space (0.8) */
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 50px;
    align-items: center;
}

.about-text p { margin-bottom: 15px; font-size: 1.1rem; }

/* Logo */
.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Style for the circular logo class */
.heritage-badge {
    width: 100%;
    max-width: 280px; /* Controls the size of the circle */
    height: auto;
    object-fit: contain;
    
    /* Adds a shadow that follows the circle shape */
    filter: drop-shadow(0 10px 15px rgba(74, 50, 40, 0.3)); 
    
    /* Smooth bounce effect on hover */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.heritage-badge:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stack vertically on phone */
        text-align: center;
    }
    
    .about-image-container {
        margin-top: 30px;
        order: -1; /* Puts logo ABOVE text on mobile */
    }
    
    .heritage-badge {
        max-width: 200px; /* Smaller logo on mobile */
    }
}

/* --- HISTORY --- */
.history-section {
    background-color: #fff;
    width: 100%;
}

.history-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.history-card {
    background-color: var(--cream-bg);
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-top: 20px;
    border-radius: 8px;
    position: relative;
}

.history-card::before {
    content: "“";
    font-size: 5rem;
    color: var(--yakun-brown);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 20px;
}

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background-color: white;
    padding: 40px;
    width: 350px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    border-top: 5px solid var(--yakun-brown);
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.modal-box h3 { color: var(--yakun-brown); margin-bottom: 20px; }
.input-group { margin-bottom: 15px; }
.input-group input {
    width: 100%; padding: 10px;
    border: 1px solid #ccc; border-radius: 4px;
}
.submit-btn {
    background-color: var(--yakun-brown);
    color: white;
    padding: 10px 20px;
    border: none; border-radius: 4px;
    width: 100%; font-size: 1rem; cursor: pointer;
}
.submit-btn:hover { background-color: #3e2a21; }

/* FOOTER */
footer {
    background-color: var(--yakun-brown);
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}