/* =========================================
   1. IMPORT FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors (z gabrielkozik.com) */
    --primary-color: #0f172a;   /* Dark Slate */
    --secondary-color: #0ea5e9; /* Sky Blue */
    --accent-color: #6366f1;    /* Indigo */
    --text-color: #334155;      /* Slate 700 */
    --light-gray: #f8fafc;      /* Slate 50 */
    --white: #ffffff;
    
    /* Status Colors */
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    --border-radius: 12px;
    --section-spacing: 80px;
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: 70px; /* Offset pro fixní menu */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-top: 0;
}

p { margin-bottom: 1.5rem; }

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover { color: var(--accent-color); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-spacing) 20px;
    scroll-margin-top: 80px;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.main-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover { color: var(--secondary-color); }

.nav-cta-button {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem !important;
    transition: transform 0.2s;
}

.nav-cta-button:hover {
    transform: translateY(-2px);
    background: var(--text-color);
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8)), url('uvodni-obrazek.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
}

.hero.hero-small {
    min-height: 50vh;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85em;
    color: var(--secondary-color);
}

.hero h1 {
    font-size: clamp(2.5em, 5vw, 4em);
    margin: 0 0 25px 0;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3em;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.workshop-details-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertikální centrování */
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 900px;
    margin-left: auto; /* Zajištění horizontálního centrování boxu */
    margin-right: auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1em;
}

.detail-item svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

/* =========================================
   5. COMPONENTS (Titles, Buttons, Cards)
   ========================================= */
.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-subtitle {
    font-size: 1.25em;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: none;
    text-transform: uppercase;
    font-size: 1em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: var(--white);
}
.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}
.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}
.cta-button-small {
    display: inline-block;
    padding: 8px 20px;
    background: var(--light-gray);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s;
    /* Změna: margin-top: auto zajistí, že tlačítko bude vždy na dně flex kontejneru */
    margin-top: auto; 
}
.cta-button-small:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Cards */
.card-grid, .grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card, .program-card, .bonus-card {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%; /* Zajistí stejnou výšku */
    display: flex;
    flex-direction: column;
}
.feature-card::before, .program-card::before, .bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}
.feature-card:hover, .program-card:hover, .bonus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
    border-color: var(--secondary-color);
}
.feature-tag {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}
.feature-card h3, .program-card h3, .bonus-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}
/* Změna: Flex-grow zajistí, že text zabere volné místo a odtlačí tlačítko dolů */
.feature-card p, .bonus-card p {
    flex-grow: 1;
}

.module-number {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    background: #f0f9ff;
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 15px;
}

/* =========================================
   6. TABLES & COMPARISONS (Subpages)
   ========================================= */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.comparison-table th {
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover { background-color: #f8fafc; }

.text-ok { color: var(--success-color); font-weight: 600; }
.text-danger { color: var(--danger-color); font-weight: 600; }
.icon-check { color: var(--success-color); font-weight: bold; }
.icon-cross { color: var(--danger-color); font-weight: bold; }

/* =========================================
   7. ACCORDION (Licence guide)
   ========================================= */
.accordion-item {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.accordion-item:hover { border-color: var(--secondary-color); }

.accordion-button {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-button:hover { background-color: var(--light-gray); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

/* =========================================
   8. MISC SECTIONS
   ========================================= */
.instructor-wrapper {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.instructor-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.instructor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff1f2;
    color: #e11d48;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 10px;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    margin-top: 40px;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.cta-section-content { text-align: center; background: var(--light-gray); padding: 60px; border-radius: 24px; }
.cta-grid { display: flex; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.back-link-section { text-align: center; margin-top: 40px; }

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 20px 40px;
    text-align: center;
}
.footer-content h4 { color: var(--white); margin-bottom: 5px; }
.footer-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a { color: #94a3b8; font-size: 0.95em; }
.footer-links a:hover { color: var(--secondary-color); }
.social-icons-container { margin-top: 30px; display: flex; justify-content: center; gap: 15px; }
.social-icon img { width: 28px; height: 28px; display: block; transition: transform 0.3s ease; }
.social-icon:hover img { transform: scale(1.2); }
.copyright { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #64748b; font-size: 0.85em; }

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 120px 20px 60px; }
    .hero h1 { font-size: 2.5em; }
    .workshop-details-box { flex-direction: column; align-items: flex-start; gap: 20px; }
    .instructor-wrapper { flex-direction: column; text-align: center; padding: 30px; }
    .cta-grid { flex-direction: column; }
    .cta-button { width: 100%; }
}