/* public/style.css - VERSION 53 (MOBILE FINAL FIX) */

:root {
    --bg: #101010;
    --card: #1A1A1A;
    --text: #FFFFFF;
    --text-muted: #AAAAAA;
    --primary: #D4AF37; /* Kulta */
    --primary-hover: #b5952f;
    --border: #333333;
    --input-bg: #252525;
}

* { box-sizing: border-box; }

body {
    font-family: 'Readex Pro', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    display: block; 
}

/* --- YLÄPALKKI (Aina päällimmäisenä) --- */
#navbar-placeholder {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #000;
    border-bottom: 1px solid var(--border);
    z-index: 99999;
}

.header-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px; /* TIIVIS PADDING MOBIILISSA */
    height: 100%;
    width: 100%;
}

.hamburger {
    font-size: 1.8rem;
    color: var(--primary);
    background: none; border: 1px solid #333;
    border-radius: 5px; padding: 5px 12px;
    cursor: pointer;
}

#langSel {
    background-color: #000; color: var(--primary);
    border: 1px solid var(--primary); padding: 5px;
    border-radius: 5px; font-size: 0.9rem;
}

/* --- SIVUVALIKKO --- */
.drawer {
    position: fixed; top: 0; right: 0; width: 280px; height: 100%;
    background-color: #000; z-index: 100000;
    border-left: 1px solid var(--primary);
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
}

.drawer.open { transform: translateX(0); }

.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 99998; display: none;
}
.overlay.show { display: block; }
.drawer-header { text-align: center; margin-bottom: 20px; }
.drawer-header img { width: 80px; border-radius: 50%; border: 2px solid var(--primary); }
.drawer a { padding: 15px 20px; font-size: 1.1rem; border-bottom: 1px solid #222; display: block; color: var(--text); }


/* --- PÄÄSIVUN ASETTELU --- */
.container, .main-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px; /* TIIVIS PADDING */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Cards (Yleinen) */
.card {
    background-color: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 15px; /* TIIVIS KORTTIPADDING */
    width: 100%;
    margin-bottom: 0;
}

/* --- PC-NÄKYMÄ (YLI 1024px) --- */
@media (min-width: 1024px) {
    .container, .main-wrapper {
        max-width: 1200px;
        margin: 40px auto;
        padding: 40px 20px;
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .grid-layout {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 30px;
        align-items: start;
    }
    
    .right-column { position: sticky; top: 80px; }
    .main-logo { max-width: 150px !important; }
}

/* --- YLEISET KOMPONENTIT --- */

.main-logo { width: 100px; height: auto; border-radius: 50%; margin: 0 auto 15px auto; display: block; }
.site-footer { text-align: center; padding: 30px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; background-color: #000; width: 100%; }

/* Napit ja kentät */
.btn-gold { padding: 12px; border-radius: 8px; width: 100%; font-size: 1rem; background-color: var(--primary); color: #000; font-weight: bold; }
.btn-secondary { background: #333; color: #fff; border: 1px solid #555; }
input, textarea, select { background-color: var(--input-bg); border: 1px solid #444; color: var(--text); border-radius: 8px; padding: 10px; width: 100%; margin-bottom: 10px; font-size: 0.95rem; }

/* Muut tyylit */
.announcement-box { border-right: 4px solid var(--primary); background: #222; border-radius: 8px; padding: 15px; margin-bottom: 15px; text-align: right; }
.info-card { border: 1px solid #333; background: #1A1A1A; border-radius: 10px; padding: 15px; text-align: right; margin-bottom: 15px; }
.map-container { border-radius: 10px; overflow: hidden; border: 1px solid #444; height: 250px; width: 100%; }
.calendar-container { display: none; }