/* 1. Základní nastavení a Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f0f2f5;
    padding: 40px 0 0 0;
    font-family: 'Inter', 'Calibri', sans-serif;
    transition: background-color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1400px;
    min-width: 320px;
    margin: 0 auto 0 auto;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 60px 60px 40px 60px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #a3927e33;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* NADPIS */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #a3927e;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 40px auto;
    max-width: 300px;
}

.header-divider::before,
.header-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #a3927e88, transparent);
}

.header-divider span {
    font-size: 16px;
    color: #a3927e;
    opacity: 0.7;
    padding: 0 14px;
    line-height: 1;
}

h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
}

p, ul {
    color: rgb(80, 80, 80);
    line-height: 1.8;
    margin-bottom: 10px;
}

ul { margin-left: 25px; }

a {
    color: #a3927e;
    transition: color 0.3s;
}

a:hover {
    color: #7a6a5a;
}

/* TMAVÝ REŽIM TOGGLE */
#dark-mode-toggle {
    display: block;
    margin: 0 auto 50px auto;
    padding: 9px 24px;
    cursor: pointer;
    border-radius: 50px;
    border: 1px solid #a3927e55;
    background-color: transparent;
    color: #a3927e;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

#dark-mode-toggle:hover {
    background-color: #a3927e;
    color: #fff;
    border-color: #a3927e;
}

/* ÚVOD */
.uvod {
    max-width: 680px;
    margin: 0 auto 10px auto;
    text-align: center;
    padding: 0;
    background: none;
    border: none;
}

.uvod p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: #666;
}

/* SECTION DIVIDER */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 35px auto;
    max-width: 500px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #a3927e44, transparent);
}

.section-divider span {
    font-size: 14px;
    color: #a3927e;
    opacity: 0.5;
    padding: 0 14px;
    line-height: 1;
}

/* KARTY */
.card-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.card {
    flex: 1;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.html-card { background-color: #fadeaf; }
.css-card  { background-color: #aadffa; }
.js-card   { background-color: #fafaaa; }

.logo {
    height: 90px;
    width: 90px;
    border-radius: 12%;
    display: block;
    margin: 0 auto 15px auto;
    background-color: white;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* POZNÁMKY */
.notes-wrapper {
    max-width: 680px;
    margin: 0 auto 20px auto;
}

.notes {
    background: none;
    border: none;
    padding: 0;
    text-align: center;
}

.notes h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #a3927e;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.notes ul {
    list-style: none;
    margin-left: 0;
    display: inline-block;
    text-align: left;
}

.notes ul li {
    font-size: 16px;
    color: #777;
    font-weight: 300;
    line-height: 1.9;
    padding-left: 18px;
    position: relative;
}

.notes ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    font-size: 8px;
    color: #a3927e;
    top: 6px;
}

/* Animace fade-in */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

/* VLNOVÝ PŘECHOD */
.wave-separator {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    line-height: 0;
    overflow: hidden;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-path {
    fill: #fff;
    transition: fill 0.3s ease;
}

body.dark-mode .wave-path {
    fill: #2d2d2e;
}

/* PROMO CONTAINER */
.promo-container {
    width: 90%;
    max-width: 1400px;
    min-width: 320px;
    margin: 0 auto 60px auto;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* PROMO SEKCE */
.promo-wrapper {
    width: 100%;
}

.promo-section {
    display: flex;
    align-items: stretch;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.promo-section.reverse {
    flex-direction: row-reverse;
}

.content-side {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px;
}

.text-wrapper {
    max-width: 450px;
    width: 100%;
    padding-top: 40px;
}

.promo-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    color: #a3927e;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-align: left;
}

.promo-description {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-discover {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid #a3927e;
    color: #a3927e;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    border-radius: 50px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-discover:hover {
    background-color: #a3927e;
    color: #fff;
}

.image-side {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    min-height: 500px;
}

.img-html { background-image: url('images/html_bg.png'); }
.img-css  { background-image: url('images/css_bg.png'); }
.img-js   { background-image: url('images/js_bg.png'); }

/* DIVIDER mezi promo sekcemi */
.promo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.promo-divider::before,
.promo-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #a3927e55, transparent);
    margin: 0 20px;
}

.promo-divider span {
    font-size: 18px;
    color: #a3927e;
    opacity: 0.6;
    padding: 20px 0;
    line-height: 1;
}

/* AKORDEON */
.accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.accordion.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 30px;
}

.accordion-inner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #a3927e;
    margin-bottom: 15px;
}

.accordion-inner p,
.accordion-inner ul {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.accordion-inner ul {
    margin-left: 20px;
}

/* SITEMAP */
.sitemap-container {
    width: 90%;
    max-width: 1400px;
    min-width: 320px;
    margin: 0 auto 60px auto;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 60px;
    transition: background-color 0.3s ease;
}

.sitemap-wrapper {
    display: flex;
    gap: 60px;
}

.sitemap-column {
    flex: 1;
}

.sitemap-heading {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #a3927e;
    margin-bottom: 30px;
    text-align: left;
}

.sitemap-column ul {
    list-style: none;
    margin-left: 0;
}

.sitemap-column ul li {
    margin-bottom: 16px;
}

.sitemap-column ul li a {
    font-size: 15px;
    font-weight: 300;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap-column ul li a:hover {
    color: #a3927e;
}

/* SITEMAP - TMAVÝ REŽIM */
body.dark-mode .sitemap-container {
    background-color: #2d2d2e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark-mode .sitemap-heading {
    color: #c9b8a8;
}

body.dark-mode .sitemap-column ul li a {
    color: #aaa;
}

body.dark-mode .sitemap-column ul li a:hover {
    color: #c9b8a8;
}

/* SITEMAP - RESPONZIVNÍ */
@media (max-width: 900px) {
    .sitemap-container {
        padding: 40px 20px;
    }
    .sitemap-wrapper {
        flex-direction: column;
        gap: 40px;
    }
}

/* TMAVÝ REŽIM */
body.dark-mode {
    background-color: #1a1a1b;
}

body.dark-mode .container,
body.dark-mode .promo-container {
    background-color: #2d2d2e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark-mode .container {
    border-bottom-color: #c9b8a833;
}

body.dark-mode h1 { color: #c9b8a8; }

body.dark-mode h2,
body.dark-mode p,
body.dark-mode ul,
body.dark-mode li,
body.dark-mode .promo-description {
    color: #e0e0e0;
}

body.dark-mode .uvod p,
body.dark-mode .notes ul li {
    color: #aaa;
}

body.dark-mode .promo-title  { color: #c9b8a8; }
body.dark-mode .notes h2     { color: #c9b8a8; }

body.dark-mode .notes ul li::before  { color: #c9b8a8; }

body.dark-mode .header-divider span,
body.dark-mode .section-divider span { color: #c9b8a8; }

body.dark-mode #dark-mode-toggle {
    border-color: #c9b8a855;
    color: #c9b8a8;
}

body.dark-mode #dark-mode-toggle:hover {
    background-color: #c9b8a8;
    color: #1a1a1b;
    border-color: #c9b8a8;
}

body.dark-mode .html-card { background-color: #855d14; }
body.dark-mode .css-card  { background-color: #1a5e7a; }
body.dark-mode .js-card   { background-color: #7a7a1a; }

body.dark-mode a { color: #c9b8a8; }

body.dark-mode .promo-divider::before,
body.dark-mode .promo-divider::after {
    background: linear-gradient(to right, transparent, #c9b8a855, transparent);
}

body.dark-mode .promo-divider span  { color: #c9b8a8; }
body.dark-mode .accordion-inner h3  { color: #c9b8a8; }

body.dark-mode .accordion-inner p,
body.dark-mode .accordion-inner ul  { color: #e0e0e0; }

/* RESPONZIVNÍ DESIGN */
@media (max-width: 900px) {
    .container {
        padding: 40px 20px 30px 20px;
    }
    .card-wrapper {
        flex-direction: column;
    }
    .promo-section,
    .promo-section.reverse {
        flex-direction: column-reverse;
    }
    .image-side {
        height: 300px;
        width: 100%;
        min-height: unset;
    }
    .content-side {
        padding: 40px 20px;
        align-items: flex-start;
    }
    .text-wrapper {
        padding-top: 20px;
    }
}