/* -------------------------------------------------------------
   451 200 ÚDOLNÍ NÁDRŽ ROZKOŠ - CLEANED SECTION SEPARATORS & CONTAINER MAP
   ------------------------------------------------------------- */

/* DUAL WATER BASIN COLORS (Malá nádrž Emerald Teal & Velká nádrž Ocean Cyan) */
:root, [data-theme="dark"] {
    --bg-main: #0a1618;            /* Hluboký tyrkysově břidlicový podklad */
    --bg-surface: #112225;
    --bg-surface-elevated: #183035;
    --bg-glass: rgba(17, 34, 37, 0.92);
    
    /* Dvě barvy vody podle dvou částí Rozkoše z faviconu */
    --water-small-basin: #5eead4;  /* Severní "Malá" nádrž - zářivá tyrkysově smaragdová */
    --water-main-basin: #06b6d4;   /* Hlavní "Velká" nádrž - sytá oceánská azurová */
    
    --primary: #5eead4;            /* Hlavní akcent */
    --primary-gradient: linear-gradient(135deg, #5eead4 0%, #06b6d4 100%);
    --primary-hover: #2dd4bf;
    --primary-glow: rgba(94, 234, 212, 0.3);
    
    --accent-gold: #fbbf24;
    --accent-gold-glow: rgba(251, 191, 36, 0.15);
    
    --text-main: #ffffff;          /* Čistá zářivá bílá pro ÚDOLNÍ NÁDRŽ ROZKOŠ */
    --text-body: #ccfbf1;
    --text-muted: #99f6e4;
    
    --border: rgba(94, 234, 212, 0.15); /* Zjemněné ohraničení karet */
    --border-hover: rgba(94, 234, 212, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

/* LIGHT MODE (Šedo-žlutý podklad + Dvoubarevná voda z předlohy) */
[data-theme="light"] {
    --bg-main: #f2f0e6;            /* Šedo-žlutý podklad vody zakalené jílem */
    --bg-surface: #faf8f2;         /* Jílovitě krémová karta */
    --bg-surface-elevated: #e6e3d5;/* Šedožlutý prvek */
    --bg-glass: rgba(242, 240, 230, 0.94);
    
    --water-small-basin: #14b8a6;  /* Severní "Malá" nádrž */
    --water-main-basin: #1e8c91;   /* Hlavní "Velká" nádrž z předlohy */
    
    --primary: #1e8c91;
    --primary-gradient: linear-gradient(135deg, #14b8a6 0%, #1e8c91 100%);
    --primary-hover: #0d9488;
    --primary-glow: rgba(30, 140, 145, 0.2);
    
    --accent-gold: #d97706;
    --accent-gold-glow: rgba(217, 119, 6, 0.15);
    
    --text-main: #1c1917;          /* Tmavá břidlice pro text v Light Mode */
    --text-body: #44403c;
    --text-muted: #78716c;
    
    --border: #d6d1c4;             /* Jemný šedožlutý okraj */
    --border-hover: #1e8c91;
    
    --shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.08);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--water-small-basin);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--water-main-basin);
}

h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* UNIFIED SVG ICONS STYLING */
.icon-nav {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.icon-inline {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.rule-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--water-small-basin);
    transition: all 0.2s ease;
}

.rule-icon-box svg {
    width: 22px;
    height: 22px;
}

.link-icon-small {
    width: 36px !important;
    height: 36px !important;
}

.link-icon-small svg {
    width: 18px !important;
    height: 18px !important;
}

.rule-card:hover .rule-icon-box {
    border-color: var(--primary);
    background: rgba(94, 234, 212, 0.18);
    transform: scale(1.04);
}

.rule-icon-danger {
    color: #ef4444 !important;
}

.alert-card:hover .rule-icon-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.icon-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(94, 234, 212, 0.18);
    border: 1px solid var(--border);
    color: var(--water-small-basin);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-badge svg {
    width: 20px;
    height: 20px;
}

.icon-badge-warning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Header & BRAND STYLING (Čistý bez rušivé čáry pod ním) */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
}

/* BRAND LOGO V HLAVIČCE BEZ POZADÍ */
.brand-logo {
    width: auto;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(93, 201, 215, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.06);
    filter: drop-shadow(0 0 15px rgba(93, 201, 215, 0.6));
}

/* BRAND TITLE WRAPPER: UNIFORM STYLING + DUAL WATER ACCENT */
.brand-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-family: var(--font);
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.brand-word-udolni,
.brand-word-rozkos {
    color: var(--text-main);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.brand-word-number {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav a {
    display: flex;
    align-items: center;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav a:hover {
    color: var(--text-main);
    background: rgba(94, 234, 212, 0.12);
}

.nav-btn {
    background: var(--primary-gradient);
    color: #042f2e !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Theme Toggle Button (Light / Dark) */
.theme-toggle {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.55rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.icon-theme {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Hero Intro Card */
.hero-intro {
    padding: 2.5rem 0 1.5rem;
}

.hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.badge-tag {
    display: inline-block;
    background: rgba(94, 234, 212, 0.15);
    border: 1px solid var(--border);
    color: var(--water-small-basin);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.main-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.main-description {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 900px;
}

/* MAPA ZAROVNANÁ V KONTEJNERU S OSTATNÍMI PRVKY WEBU */
.map-card-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease;
}

.map-card-box:hover {
    border-color: var(--border-hover);
}

.map-toolbar {
    background: var(--bg-surface-elevated);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.btn-external {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    color: #ffffff !important;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: #0f172a;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-footer-info {
    background: var(--bg-surface-elevated);
    padding: 1.25rem 1.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Sections General (ČISTÉ BEZ RUŠIVÝCH HRANATÝCH ČAR) */
.section {
    padding: 3rem 0;
    border: none; /* Odstraněna rušivá spodní čára */
}

.section-alt {
    background: rgba(17, 34, 37, 0.3);
    border: none;
}

[data-theme="light"] .section-alt {
    background: rgba(230, 227, 213, 0.4);
    border: none;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--water-small-basin);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Rules Grid */
.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rule-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.alert-card {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-surface) 100%);
}

.rule-summary {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    cursor: pointer;
    user-select: none;
}

.rule-summary-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rule-summary-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.rule-body {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-body);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Badges */
.rule-badge {
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-info { background: rgba(94, 234, 212, 0.15); color: var(--water-small-basin); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; }

/* COMPACT 3-COLUMN HORIZONTAL GRID LAYOUT */
.grid-3 {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.card-box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.flex-box {
    height: 100%;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.card-title-row h2 {
    font-size: 1.45rem;
    font-weight: 800;
}

/* Compact Links List with Dual Water Palette */
.compact-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.compact-link-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    color: var(--text-body);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.compact-link-item:hover {
    border-color: var(--water-small-basin);
    transform: translateX(4px);
    background: rgba(94, 234, 212, 0.08);
}

.compact-link-item.static:hover {
    transform: none;
    border-color: var(--border);
    background: var(--bg-surface-elevated);
}

.compact-link-item strong {
    font-size: 0.95rem;
    color: var(--water-small-basin);
    display: block;
    margin-bottom: 0.15rem;
    transition: color 0.2s ease;
}

.compact-link-item:hover strong {
    color: var(--water-main-basin);
}

.compact-link-item.static strong {
    color: var(--text-main);
}

.compact-link-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.signature {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sexy Form */
.sexy-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--water-small-basin);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: #042f2e;
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* ELEGANT COMPACT REVISION ACCORDION BAR (BEZ HRANATÉ ČÁRY) */
.changelog-bar-wrap {
    background: transparent;
    padding: 1.25rem 0 2rem;
    border: none;
}

.changelog-details {
    font-size: 0.9rem;
}

.changelog-summary-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    color: var(--text-body);
}

.changelog-summary-btn:hover {
    border-color: var(--water-small-basin);
    color: var(--text-main);
}

.changelog-summary-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--water-small-basin);
}

.changelog-last-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.changelog-body-compact {
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.changelog-list-compact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.changelog-list-compact li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.88rem;
}

@media (max-width: 640px) {
    .changelog-list-compact li {
        flex-direction: column;
        gap: 0.25rem;
    }
}

.rev-date {
    font-weight: 800;
    color: var(--water-small-basin);
    min-width: 90px;
    flex-shrink: 0;
}

.rev-text {
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer (Čistý bez horní ostrou čáry) */
.footer {
    padding: 2rem 0;
    background: #050914;
    border: none;
    font-size: 0.9rem;
    color: #5dc9d7;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* FAVICON OBRÁZEK V PATIČCE ČISTĚ BEZ KROUŽKU */
.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-logo {
        width: auto;
        height: 40px;
    }

    .brand-title-wrap {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .map-wrapper {
        height: 440px;
    }
}

/* Toast Notification pro Formular */
.form-msg {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--card-bg);
    color: var(--text);
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--water-small-basin);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
}

.form-msg.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Theme Logo Toggling */
[data-theme='dark'] .logo-light-theme { display: none; }
[data-theme='light'] .logo-dark-theme { display: none; }
