/* Import prémiových fontů: Cormorant Garamond pro eleganci, Plus Jakarta pro čitelnost */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-soft: #fbfaf7;
    /* Extra jemný, organický podklad */
    --text-main: #111111;
    /* Hluboká černá pro lepší kontrast */
    --text-muted: #706e6b;
    /* Teplejší tón šedé */
    --accent: #6c3483;
    /* Hluboká, smyslná fialová (jako ostružiny) */
    --accent-light: #f5eef8;
    /* Jemný fialový nádech na pozadí */
    --border: #f0ede8;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --shadow-premium: 0 20px 40px rgba(17, 17, 17, 0.03);
    /* Ultra jemný, neviditelný stín */
    --max-width: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Vychytávka: Stylové označení textu myší */
::selection {
    background-color: var(--accent-light);
    color: var(--accent);
}

/* HLAVIČKA (Zrcadlově čistý skleněný efekt) */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(240, 237, 232, 0.6);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    /* Tenká, elegantní linie */
    background-color: var(--text-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* HERO SEKCE (Asymetrický, luxusní layout) */
.hero-section {
    background-color: var(--bg-soft);
    padding: 120px 20px;
    position: relative;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 80px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

/* První písmeno v textu jako v časopise */
.hero-text p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 45px;
    max-width: 540px;
    font-weight: 400;
}

.text-link {
    display: inline-block;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 6px;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transform: translateX(4px);
    /* Jemný posun doprava namísto poskaku nahoru */
}

.hero-image {
    width: 100%;
    height: 520px;
    border-radius: 4px;
    /* Ostré, čisté linie s minimálním zaoblením působí luxusněji */
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.15, 1, 0.3, 1);
}

.hero-image:hover img {
    transform: scale(1.04);
}

/* SEKCE A EDITORIAL GRID RECEPTŮ */
.main-content {
    max-width: var(--max-width);
    margin: 120px auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    /* Větší mezery = vzdušnější a čistší design */
}

.recipe-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-img {
    width: 100%;
    height: 360px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: var(--bg-soft);
    position: relative;
}

/* Jemné ztmavení obrázku na pozadí pro prémiový detail */
.recipe-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.02);
    transition: background 0.3s;
}

.recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-card:hover .recipe-img img {
    transform: scale(1.03);
}

.recipe-card:hover .recipe-img::after {
    background: rgba(17, 17, 17, 0);
}

.recipe-card h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.2;
}

.recipe-card p {
    color: var(--text-muted);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Oříznutí textu po 3 řádcích, aby byly karty dokonale zarovnané */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FILTRAČNÍ PILULKY (Minimalistické) */
.recipe-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px 28px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

/* STRÁNKA O MNĚ */
.about-page-container {
    max-width: 960px;
    margin: 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-profile-img {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.about-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

/* STRÁNKA MAPA A GASTRO BUTTONS */
.map-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.map-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.map-btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 12px 35px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.map-btn:hover {
    background-color: var(--text-main);
    color: #fff;
}

.map-view-box {
    width: 100%;
    height: 580px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

/* BLOG STRÁNKA */
.articles-list {
    max-width: 700px;
    margin: 0 auto;
}

.article-item {
    margin-bottom: 80px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 50px;
}

.article-meta {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.article-item h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-soft);
    margin-top: 140px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* SCROLL REVEAL ANIMACE (Plynulé načítání) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVITA */
@media (max-width: 768px) {

    .hero-container,
    .about-page-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-image,
    .about-profile-img {
        height: 380px;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .about-text h2 {
        font-size: 38px;
    }

    .nav-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-links {
        gap: 20px;
    }
}

/* STYLY PRO DETAIL RECEPTU */
.recipe-detail-header {
    max-width: 800px;
    margin: 60px auto 40px auto;
    text-align: center;
    padding: 0 20px;
}

.recipe-detail-header h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 25px;
}

/* Informační štítky (Čas, Náročnost...) */
.recipe-meta-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    margin-top: 30px;
}

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

.meta-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.meta-item strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.recipe-large-img {
    max-width: var(--max-width);
    height: 550px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.recipe-large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-premium);
}

/* Rozvržení ingrediencí a postupu */
.recipe-body-grid {
    max-width: var(--max-width);
    margin: 0 auto 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    /* Menší sloupec vlevo, větší vpravo */
    gap: 80px;
}

.ingredients-sidebar {
    background-color: var(--bg-soft);
    padding: 40px;
    border-radius: 4px;
    height: fit-content;
}

.ingredients-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 400;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 15px;
    color: var(--text-main);
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.instructions-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Elegantní číslovaný seznam pro postup */
.instructions-steps {
    list-style: none;
    counter-reset: step-counter;
}

.instructions-steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 35px;
    font-size: 16px;
    color: var(--text-muted);
}

.instructions-steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: -5px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
}

.instructions-steps li strong {
    color: var(--text-main);
    display: block;
    font-size: 17px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .recipe-body-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .recipe-large-img {
        height: 320px;
    }

    .recipe-detail-header h1 {
        font-size: 36px;
    }

    .recipe-meta-box {
        gap: 20px;
    }
}

/* Luxusní tlačítko zpět */
.back-nav-container {
    max-width: 1100px;
    /* Zarovná se s obsahem tvého webu */
    margin: 40px auto 0 auto;
    padding: 0 30px;
}

.lux-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
    /* Elegantní tmavě šedá místo tvrdé černé */
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* Luxusní uppercase vzhled */
    padding: 10px 20px;
    border-radius: 50px;
    /* Kompletně kulaté pilulkové tlačítko */
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Velmi jemný, prémiový stín */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ultra plynulý přechod */
}

.lux-back-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efekty při najetí myší (Hover) */
.lux-back-btn:hover {
    color: #000000;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    /* Stín při hoveru lehce ztmavne */
    transform: translateY(-1px);
    /* Tlačítko se jakoby lehce vznese */
}

.lux-back-btn:hover svg {
    transform: translateX(-5px);
    /* Šipka popojede elegantně doleva */
}