/* --- Základní proměnné --- */
:root {
    --barva-pozadi: #000000; /* Čistá černá */
    --barva-sekce: #141414; /* Tmavě šedá pro boxy, aby vystoupily */
    --barva-textu: #e0e0e0;
    --barva-akcentu: #d81b21;
    --font-nadpisy: 'Oswald', sans-serif;
    --font-text: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--barva-pozadi);
    color: var(--barva-textu);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* --- Typografie --- */
h1, h2, h3 { font-family: var(--font-nadpisy); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
h2 { border-bottom: 3px solid var(--barva-akcentu); display: inline-block; padding-bottom: 10px; margin-bottom: 25px; }

/* --- Navigace (Desktop) --- */
header { background-color: #000; border-bottom: 2px solid var(--barva-akcentu); padding: 0.5rem 0; position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.logo-img { height: 60px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: #fff; text-decoration: none; font-weight: bold; font-family: var(--font-nadpisy); text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--barva-akcentu); }

/* --- Hamburger Menu (Mobil) --- */
.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger span { width: 30px; height: 3px; background: var(--barva-akcentu); border-radius: 2px; }

/* --- Sekce a obsah --- */
section { padding: 4rem 2rem; max-width: 1000px; margin: 0 auto; }
.hero-sekce { text-align: center; padding: 6rem 2rem; }
.hero-logo { width: 100%; max-width: 400px; margin-bottom: 2rem; }
.hero-tlacitka { display: flex; gap: 1rem; justify-content: center; }

/* --- Tlačítka --- */
.tlacitko { 
    padding: 1rem 2rem; 
    background: var(--barva-akcentu) !important; 
    color: #fff !important; /* Toto !important zachrání bílý text */
    text-decoration: none !important; 
    font-family: var(--font-nadpisy); 
    text-transform: uppercase; 
    border-radius: 3px; 
    transition: 0.3s;
}

.tlacitko:hover {
    background: #fff !important;
    color: var(--barva-akcentu) !important;
}

.tlacitko-sekundarni { 
    background: transparent !important; 
    border: 2px solid var(--barva-akcentu) !important; 
    color: var(--barva-akcentu) !important; /* Druhé tlačítko bude mít červený text */
}

.tlacitko-sekundarni:hover {
    background: var(--barva-akcentu) !important;
    color: #fff !important;
}

/* --- Odkazy v běžném textu (např. odkaz na Facebook) --- */
.intro-text a, section a {
    color: var(--barva-akcentu) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.intro-text a:hover, section a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* --- Členové kapely --- */
.sestava-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    margin-top: 2rem; 
}
.clen { 
    padding: 2rem; 
    border-radius: 5px; 
    border-left: 4px solid var(--barva-akcentu); 
    background-color: var(--barva-sekce);
}

/* --- Aktivní položky v menu --- */
.nav-links a.aktivni {
    color: var(--barva-akcentu) !important;
    border-bottom: 2px solid var(--barva-akcentu) !important;
    padding-bottom: 3px !important;
}

/* --- Galerie (Desktop) --- */
details { background: #141414; margin-bottom: 20px; padding: 15px; border-left: 4px solid var(--barva-akcentu); }
summary { cursor: pointer; font-family: 'Oswald'; font-size: 1.2em; margin-bottom: 10px; color: #fff; }
.galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.galerie-item img { width: 100%; height: 150px; object-fit: cover; display: block; cursor: pointer; }

/* --- Hudba a Diskografie --- */
.diskografie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.album-box {
    background-color: var(--barva-sekce);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 3px solid var(--barva-akcentu);
}
.album-box img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}
.info-list li {
    margin-bottom: 5px;
    border-bottom: 1px dashed #444;
    padding-bottom: 5px;
}
.btn-texty {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    background-color: var(--barva-akcentu);
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* --- Videa --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.video-card a {
    display: block;
    background: var(--barva-sekce);
    padding: 15px;
    color: #fff;
    text-decoration: none;
    border-left: 4px solid var(--barva-akcentu);
}

/* --- Tabulka koncertů --- */
.koncerty-tabulka {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: transparent;
}
.koncerty-tabulka td {
    padding: 10px 0;
    border-bottom: none;
    color: #a9cce3;
}
.datum-sloupec {
    font-weight: bold;
    color: var(--barva-akcentu) !important;
    width: 35%;
}

/* --- Kontakt --- */
.kontakt-grid {
    display: grid;
    /* Zmenšili jsme minimum z 280px na 200px, ať má na malých mobilech prostor */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.kontakt-box {
    background: var(--barva-sekce);
    padding: 20px; /* Trochu jsme ubrali vnitřní prostor, ať se neplýtvá místem */
    border-radius: 5px;
    border-left: 4px solid var(--barva-akcentu);
    word-break: break-word; /* Tohle kouzlo donutí e-maily a dlouhá slova poslušně se zalomit na další řádek */
}
.kontakt-box h3 { text-align: left; margin-bottom: 15px; color: #fff; font-family: var(--font-nadpisy); }
.kontakt-box p { margin-bottom: 10px; font-size: 1.1em; }
.kontakt-box a { color: var(--barva-akcentu); text-decoration: none; font-weight: bold; transition: 0.3s; }
.kontakt-box a:hover { color: #fff; text-decoration: underline; }

/* --- Texty písní --- */
.texty-obalka { max-width: 800px; margin: 0 auto 50px 0; }
.texty-obalka h3 { margin-top: 40px; margin-bottom: 20px; color: #fff; font-family: var(--font-nadpisy); font-size: 1.5em; }
.texty-obalka details { background: var(--barva-sekce); margin-bottom: 10px; border-radius: 5px; border-left: 4px solid var(--barva-akcentu); overflow: hidden; }
.texty-obalka summary { padding: 15px 20px; font-weight: bold; font-size: 1.1em; cursor: pointer; list-style: none; position: relative; }
.texty-obalka summary::-webkit-details-marker { display: none; }
.texty-obalka summary::after { content: '+'; position: absolute; right: 20px; font-size: 1.5em; color: var(--barva-akcentu); top: 50%; transform: translateY(-50%); }
.texty-obalka details[open] summary::after { content: '−'; }
.text-pisne { padding: 0 20px 20px 20px; color: #ddd; line-height: 1.8; white-space: pre-line; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 10px; padding-top: 15px; }
.zpet-btn { display: inline-block; margin-bottom: 30px; color: #fff; text-decoration: none; font-weight: bold; font-size: 0.9em; }
.zpet-btn:hover { color: var(--barva-akcentu); }

/* --- Patička --- */
footer { background: #000; text-align: center; padding: 3rem; border-top: 1px solid #333; }
.socialni-site a { color: #fff; margin: 0 10px; text-decoration: none; font-weight: bold; }
footer a { color: #fff !important; text-decoration: none; }
footer a:hover { color: var(--barva-akcentu) !important; }


/* ==========================================================================
   --- UKLIZENÁ MOBILNÍ OPTIMALIZACE (Sjednoceno pod max-width: 768px) ---
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Užší Hlavička a kompaktní navigace */
    header { padding: 5px 15px !important; }
    nav { padding: 0 !important; }
    .logo-img { height: 40px !important; }
    
    /* Hamburger menu tlačítko */
    .hamburger { display: flex !important; padding: 5px !important; }
    .hamburger span { margin: 4px 0 !important; height: 2px !important; }
    
    /* 2. Elegantní a KOMPAKTNÍ plovoucí panel pro menu */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 52px !important; /* Těsně pod zúženou lištou */
        left: 5% !important;
        width: 90% !important;
        border-radius: 8px;
        background: #0b0b0b !important;
        border: 1px solid var(--barva-akcentu) !important;
        padding: 10px 0 !important; /* Mnohem menší okraje bloku */
        z-index: 1000;
        box-shadow: 0px 5px 15px rgba(0,0,0,0.5);
    }
    .nav-links.zobrazit { display: flex !important; }
    
    /* Extrémní dieta pro položky menu (zrušení obřích mezer) */
    .nav-links li { text-align: center; padding: 0 !important; margin: 0 !important; }
    .nav-links a { 
        display: block; 
        padding: 10px 0 !important; /* Jen tak akorát na kliknutí prstem */
        font-size: 0.9em !important; /* O kousíček menší písmo */
        margin: 0 !important;
    }

    /* 3. Úprava sekcí pro úzké displeje */
    section { padding: 2rem 1rem !important; }
    h1 { font-size: 1.7em; }
    h2 { font-size: 1.4em; }

    /* 4. Mobilní mřížka pro Galerii (Vždy 2 vedle sebe) */
    .galerie-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 6px !important; 
    }
    .galerie-grid img { height: 120px !important; }

    /* 5. Mobilní řazení Diskografie (Alba pod sebou) */
    .diskografie-grid { 
        grid-template-columns: 1fr !important; 
        gap: 25px !important; 
    }
    .album-box h3 { font-size: 1.2em !important; }

    /* 6. Pohodlná velká tlačítka na klikání palcem */
    .texty-obalka { width: 100% !important; margin-right: 0 !important; }
    .btn-texty { 
        display: block !important; 
        width: 100% !important; 
        margin: 10px 0 !important; 
        text-align: center; 
    }

    /* 7. Hero sekce (Úvodní obrazovka) */
    .hero-sekce { padding: 3rem 1rem !important; }
    .hero-logo { max-width: 85% !important; }
    .hero-tlacitka { flex-direction: column !important; gap: 12px !important; }
    .hero-tlacitka .tlacitko { width: 100%; text-align: center; }

    /* 8. Responzivní tabulka koncertů */
    .datum-sloupec { width: 100% !important; display: block !important; margin-bottom: 3px; }
    .koncerty-tabulka td:not(.datum-sloupec) { display: block !important; padding-top: 0; padding-bottom: 12px; }
    
    /* 9. Kontakt na celou šířku */
    .kontakt-box { max-width: 100% !important; }
    
    /* 10. Kompaktní patička na mobilu */
    footer {
        padding: 2rem 1rem !important; 
    }
    .socialni-site {
        display: flex;
        flex-wrap: wrap; /* Zabrání dlouhé "nudli", skládá odkazy vedle sebe do řádků */
        justify-content: center;
        gap: 15px; 
        margin-top: 15px;
    }
    .socialni-site a {
        display: inline-block;
        padding: 8px 12px; 
        margin: 0 !important; 
        font-size: 0.9em;
    }
}
