/*
 * STYLY PRO WEB KARLA DUŠKA
 * * Obsah:
 * 1. Základní styly & Layout (Platí pro všechny stránky)
 * 2. Hlavička & Navigace (Globální)
 * 3. Hlavní obsah (Standardní)
 * 4. Patička (Standardní)
 * 5. Stránka: Galerie (gallery.html)
 * 6. Stránka: O mně (about.html)
 * 7. Stránka: Titulní (page-centric)
 * 8. Responzivita (Titulní stránka)
 * 9. Animace (Titulní stránka)
 * 10. Komponenta: Lightbox (Modal)
 * 11. Pomocné třídy & Utility
*/

/* === 1. ZÁKLADNÍ STYLY & LAYOUT === */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: #fdfaf6;
    color: #333333;
    margin: 0;
    padding: 0;
}

/* Omezení šířky a centrování pro standardní podstránky */
/* Pozn: Hlavička má vlastní omezení níže */
main, 
footer {
    max-width: 950px;
    margin: 0 auto;
    padding: 45px;
}

/* === 2. HLAVIČKA & NAVIGACE (Globální) === */
/* Tyto styly nyní platí pro VŠECHNY stránky */

header {
    max-width: 600px; /* Užší design pro hlavičku */
    width: 100%;      
    margin: 0 auto;    /* Centrování hlavičky */
    font-size: 1.1rem;
    border-bottom: none; /* Bez spodní linky */
    margin-bottom: 0;
    /* Na podstránkách bude padding platit, na page-centric ho přebije 'main' */
    padding: 45px 45px 0 45px; 
    box-sizing: border-box; /* Zahrne padding do šířky */
    text-align: center;
    transition: all 0.3s ease; 
}

header h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 3.8em; /* Větší písmo */
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0;
    transition: font-size 0.3s ease;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header p {
    /* Podtitul "Umělec" */
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.1em;
    color: #777;
    margin-top: 5px;
}

nav {
    text-align: center;
    margin-top: 20px;
}

nav h2 {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1em;
    color: #999;
    margin-bottom: 15px;
}

nav ul {
    padding: 0;
    list-style: none;
}

nav li {
    display: inline-block;
    margin: 0 12px;
}

nav a {
    text-decoration: none;
    color: #444;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.25em;  /* Větší písmo */
    padding: 10px 8px; 
    display: inline-block;
}

nav a:hover {
    color: #00796B; 
    border-bottom: 2px solid #00796B;
}

/* Zvýraznění aktivní stránky v navigaci (pro 'nav' I 'about-link') */
nav a.active-link,
header p.about-link a.active-link {
    color: #00796B; 
    border-bottom: 2px solid #00796B;
}

nav a.active-link:hover,
header p.about-link a.active-link:hover {
    cursor: default; /* Zabrání hover efektu na aktivním odkazu */
}

/* --- Styl pro odkaz "O mně" (Globální) --- */
header p.about-link {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size: 1em;
    color: #333;
    margin-top: 20px; 
    margin-bottom: 0;
}

header p.about-link a {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999; 
    font-size: 1.1em; 
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px 8px; 
    display: inline-block;
}

header p.about-link a:hover {
    color: #00796B;
    border-bottom: 2px solid #00796B;
}

/* === 3. HLAVNÍ OBSAH (Standardní) === */

main {
    background: none;
    box-shadow: none;
    border: none;
    /* Padding byl přesunut do globálního 'main' v sekci 1 */
    /* Zde nastavíme padding-top na 0, protože hlavička už má padding-bottom */
    /* nebo vlastně header je mimo main, takže padding main je OK */
    padding-top: 45px; /* Zachováme odsazení shora */
}

/* Tento styl platí pro podstránky, NE pro page-centric */
body:not(.page-centric) main {
     padding-top: 45px;
}


main h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1.8em;
    border-bottom: none;
    margin-bottom: 10px;
}

/* --- Kontakty (na hlavní stránce) --- */
#kontakt {
    text-align: center;
    padding-bottom: 20px; 
}

.kontakt-intro {
    max-width: 500px;
    margin: 0 auto 35px auto; 
    font-size: 1.1em;
    color: #555;
}

.kontakt-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-kontakt {
    display: inline-block;
    padding: 14px 28px; 
    font-size: 1.15em; 
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif; 
    text-decoration: none;
    background-color: #f9f9f9; 
    color: #00796B; 
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-kontakt:hover {
    background-color: #00796B; 
    color: #ffffff; 
    border-color: #00796B;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* === 4. PATIČKA (Standardní) === */

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    font-size: 0.9em;
    color: #888;
    border-top: 2px solid #9e9898;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: #00796B;
}

/* ... stávající 'footer' a 'footer a' styly ... */

.footer-kontakt {
    margin-bottom: 10px; /* Mezera mezi kontakty a copyrightem */
    font-size: 1.5em; /* Mírně větší písmo pro kontakty */
    
}

.footer-kontakt span {
    color: #aaa; /* Jemnější barva pro oddělovač */
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Cílíme na oba odkazy (email i telefon) */
.footer-kontakt a {
    font-family: Georgia, 'Times New Roman', Times, serif;
    letter-spacing: 1px; /* Lehké prostrkání */
    font-weight: 400;  /* Normální váha pro serif */
}

.footer-copy {
    margin: 0; 
}

/* === 5. STRÁNKA: GALERIE (gallery.html) === */

.gallery-intro {
    text-align: center;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.artwork-item {
    display: flex;
    flex-direction: column; 
    margin-bottom: 30px; 
    /* background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    border-radius: 4px; */
    overflow: hidden; 
    padding: 40px;
    box-sizing: border-box;
}

.artwork-image img {
    width: 70%;
    margin: 0 auto; /* Přidáno pro centrování */
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease-out;
    border: none;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0; 
}

.artwork-image img:hover {
    transform: scale(1.02);
}

.artwork-description {
    width: 100%;
    text-align: center;
    padding: 0;
    padding-top: 15px;
    box-sizing: border-box; 
}

.artwork-description h3 {
    font-family: Georgia, serif;
    font-size: 1.7em;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 3px;
}

.artwork-description p {
    font-size: 1em;
    line-height: 1.7;
}

.artwork-description small {
    font-style: italic;
    color: #777;
    font-size: 1.1em;
}






/* === 6. STRÁNKA: O MNĚ (about.html) === */

/* --- Hlavní nadpis vycentrujeme nad sloupce --- */
.about-title {
    text-align: center;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 2.4em;
    margin-bottom: 50px; /* Větší odstup od obsahu */
    margin-top: 0;
    color: #333;
}

/* --- Kontejner držící fotku a text --- */
.about-container {
    width: 100%;
    display: flex;
    flex-direction: column; /* MOBIL: Pod sebou */
    gap: 30px;              /* Mezera mezi fotkou a textem */
    align-items: center;
}

/* --- Společná třída pro sloupce (aby se chovaly stejně) --- */
.about-col {
    width: 100%;
}


/* --- Styl fotky --- */
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);

    /* --- NOVÉ ŘÁDKY --- */
    cursor: zoom-in;               /* 1. Změní kurzor myši na lupu s pluskem */
    transition: transform 0.3s ease; /* 2. Zajistí, aby zvětšení bylo plynulé */
}

/* --- NOVÝ BLOK PRO HOVER EFEKT --- */
.about-image img:hover {
    transform: scale(1.03);        /* 3. Při najetí myší se fotka zvětší o 2 % */
}

/* --- Styl textu --- */
.about-text p {
    text-align: justify; /* Zarovnání do bloku pro čistý vzhled */
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 1.2em;
    margin-top: 0;
    color: #444;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* === RESPONZIVITA (Tablet a Počítač) === */
@media (min-width: 900px) {
    .about-container {
        flex-direction: row;    /* POČÍTAČ: Vedle sebe */
        align-items: center;    /* Zarovnat svisle na střed */
        gap: 60px;              /* Velkorysá mezera mezi sloupci */
    }

    /* Tady je to kouzlo pro vyvážení 50:50 */
    .about-col {
        flex: 1;        /* Oba sloupce dostanou stejnou prioritu */
        width: 50%;     /* Rozdělí se přesně napůl */
    }

    /* Pokud chcete fotku vpravo, odkomentujte následující řádek: */
    /* .about-image { order: 2; } */
}



/* === 7. STRÁNKA: TITULNÍ (page-centric) === */
/* Tyto styly platí POUZE pro index.html */

body.page-centric {
    display: flex;
    flex-direction: column; 
    min-height: 100vh;     
    margin: 0;
}

body.page-centric main {
    flex-grow: 1; 
    display: flex;
    align-items: center;     
    justify-content: center; 
    padding: 20px; /* Menší padding pro centrování */
    background: none;
    box-shadow: none;
    border: none;
}
        
/* Styly pro header, nav atd. byly přesunuty do sekce 2 */

/* Zde zůstává jen animace pro "O mně" */
body.page-centric header p.about-link {
    opacity: 0;
    animation-name: fadeInUp;
    animation-duration: 1.4s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0.8s; 
}

body.page-centric footer {
    flex-shrink: 0; 
    max-width: none; 
    width: 100%;
    margin: 0; 
    transition: all 0.3s ease;
}

/* === 8. RESPONZIVITA (Titulní stránka) === */

@media (max-width: 768px) {
    /* Tyto styly ovlivní globální hlavičku na mobilu */
    header {
        font-size: 1rem;
    }
    header h1 {
        font-size: 2.8em;
        line-height: 1.2;
    }
    header p {
        font-size: 1em;
    }
    nav h2 {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
    nav li {
        display: block; /* Odkazy pod sebou na mobilu */
        margin: 10px 0;
    }
    nav a {
        font-size: 1.2em; 
        padding: 8px 0;
    }
    
    /* Tyto styly platí jen pro patičku na titulní stránce */
    body.page-centric footer {
        max-width: 950px;
        margin: 0 auto;
        padding: 45px;
        margin-top: 30px;
    }
}

/* === 9. ANIMACE (Titulní stránka) === */

/* 1. Definice animace (zespodu nahoru + zviditelnění) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Přiřazení animace prvkům (POUZE na page-centric) */
body.page-centric header h1,
body.page-centric header p, /* Cílí na "Umělec" */
body.page-centric nav h2,
body.page-centric nav ul {
    opacity: 0; 
    animation-name: fadeInUp;
    animation-duration: 1.4s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* 3. Postupné spuštění (staggering) */
body.page-centric header h1 {
    animation-delay: 0.3s;
}

body.page-centric header p { /* "Umělec" */
    animation-delay: 0.4s;
}

body.page-centric nav h2 {
    animation-delay: 0.7s;
}

/* p.about-link má delay 0.8s (viz sekce 7) */

body.page-centric nav ul {
    animation-delay: 0.9s;
}


/* === 10. KOMPONENTA: LIGHTBOX (Modal) === */

body.no-scroll {
    overflow: hidden;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
    transition: transform 0.2s ease-out;
    z-index: 10;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #bbb;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}

/* === 11. POMOCNÉ TŘÍDY & UTILITY === */

hr {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 40px 0;
}

hr.gallery-divider {
    margin-top: 10px; 
}

.text-center {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    color: #00796B;
    border: 2px solid #00796B;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background-color: #00796B;
    color: #ffffff;
}





/* === Specifické styly pro text "O autorovi" === */

.about-content {
    text-align: center; /* Zarovná veškerý text uvnitř na střed */
    padding-top: 0;     /* Odstraní horní odsazení, jak bylo v HTML */
    max-width: 800px;   /* Doporučení: omezí šířku textu, aby se lépe četl */
    margin: 0 auto;     /* Vycentruje samotný blok textu na stránce */
}

.about-content h2 {
    text-align: center;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 2.4em;
    margin-bottom: 20px;
}

/* Pojistka pro odstavce, aby byly určitě na střed */
.about-content p {
    text-align: center;
    font-size: 1.1em;
}


/* === ÚPRAVA GALERIE PRO MOBILY === */
@media (max-width: 768px) {
    
    /* Roztáhne obrázek na plnou šířku kontejneru */
    .artwork-image img {
        width: 100%;
    }

    /* Zmenší vnitřní odsazení rámečku kolem obrazu (původně 40px), 
       aby měl obrázek ještě více prostoru a nebyl tak zmáčknutý */
    .artwork-item {
        padding: 20px; 
    }

    .about-item {
        padding: 20px; 
    }
}


.about-item {
    display: flex;
    flex-direction: column; 
    margin-bottom: 30px; 
    overflow:visible; 
    padding: 0px;
    padding-bottom: 50px;
    box-sizing: border-box;
}