/* === 🌌 VESMÍRNÝ WEB – ZÁKLAD === */
html,
body {
    margin: 0;
    padding: 0;
    background: #0b1220;
    color: #e2e8f0;
    font-family: "Inter", system-ui, sans-serif;
    scroll-behavior: smooth;
}

/* === 💫 HERO SEKCE === */
.hero {
    background: radial-gradient(circle at 50% 20%, #1e293b, #0b1220 80%);
    text-align: center;
    padding: 8rem 1rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.25), transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin: 1rem 0 2rem;
}

.cta-btn {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.cta-btn:hover {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* === 🌌 GALAXIE SEKCE === */
#galaxy {
    background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.08), transparent 80%);
    color: #e2e8f0;
    padding: 5rem 1rem;
    position: relative;
}

#galaxy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(59, 130, 246, 0.05), transparent 70%);
    z-index: 0;
}

#galaxy h2 {
    text-align: center;
    font-size: 2.4rem;
    background: linear-gradient(90deg, #93c5fd, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
    position: relative;
    z-index: 1;
}

.galaxy-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.75;
    font-size: 1.05rem;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

.galaxy-text b {
    color: #f1f5f9;
}

.ai-divider {
    border: 0;
    border-top: 1px solid rgba(96, 165, 250, 0.25);
    margin: 2rem 0 1.5rem;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* === ⚙️ SEKCÍ PRINCIPY === */
#galaxy h3 {
    color: #93c5fd;
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* === 🚀 FEATURES === */
#features {
    padding: 5rem 1rem;
    background: #0f172a;
    text-align: center;
}

#features h2 {
    font-size: 2rem;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(147, 197, 253, 0.6);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
}

.feature h3 {
    margin-bottom: 1rem;
    color: #93c5fd;
}

/* === 💎 CENÍK === */
#pricing {
    background: #0b1220;
    padding: 5rem 1rem;
    text-align: center;
}

#pricing h2 {
    font-size: 2rem;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 800px;
    margin: 0 auto;
}

.price-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: rgba(147, 197, 253, 0.5);
    transform: translateY(-6px);
}

.price-card.highlight {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.2);
}

.price {
    font-size: 1.8rem;
    margin: 0.5rem 0 1rem;
    color: #93c5fd;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-card li {
    margin: 0.6rem 0;
    color: #cbd5e1;
}

/* === 📞 KONTAKT === */
#contact {
    background: #0f172a;
    text-align: center;
    padding: 4rem 1rem;
    color: #cbd5e1;
}

#contact h2 {
    font-size: 2rem;
    background: linear-gradient(90deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

#contact a {
    color: #93c5fd;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* === 🧠 FOOTER === */
footer {
    background: #0b1220;
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === 📱 RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    #galaxy h2 {
        font-size: 1.9rem;
    }

    .galaxy-text {
        font-size: 1rem;
    }
}

/* === 💬 CHAT PANEL (Vesmírný styl) === */
#chat-ai {
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15), transparent 70%),
        linear-gradient(180deg, #0b1220 0%, #101c35 100%);
    padding: 6rem 1rem 5rem;
}

#chat-ai h2 {
    text-align: left;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

#chat-ai p {
    text-align: justify;
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

#chat-ai #chat-log {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

#chat-ai #chat-log:hover {
    box-shadow: 0 0 35px rgba(147, 197, 253, 0.25);
}

#chat-ai input[type="text"] {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    padding: 0.8rem 1rem;
}

#chat-ai button {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border: none;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

#chat-ai button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* === 🎬 MEDIOTÉKA === */
#medioteka {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 1) 100%);
    padding: 5rem 1rem;
    text-align: center;
    color: #e2e8f0;
}

#medioteka h2 {
    font-size: 2.4rem;
    background: linear-gradient(90deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
}

#medioteka p {
    max-width: 700px;
    margin: 0.75rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* === 💬 ZEPTEJTE SE CHYTRÉHO JÁ – FINAL CLEAN === */
#faq-chat {
    background: #0b1220;
    color: #e2e8f0;
    padding: 5rem 1rem;
    text-align: center;
}

#faq-chat h2 {
    font-size: 2.4rem;
    color: #93c5fd;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
    margin-bottom: 1rem;
}

#faq-chat p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    text-align: justify;
}

/* === 📦 CHAT BOX === */
.chat-box {
    background: #101c35;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    padding: 1.2rem 1rem;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* === 💭 ZPRÁVY === */
.chat-messages {
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
    margin-bottom: 1rem;
}

/* 🤖 Chytré já (vlevo) */
.chat-message.ai {
    background: rgba(59, 130, 246, 0.15);
    color: #e2e8f0;
    align-self: flex-start;
    border-radius: 10px;
    border-bottom-left-radius: 4px;
    text-align: left;
    margin-left: 0.25rem;
    margin-right: auto;
    padding: 0.8rem 1rem;
    max-width: 85%;
}

/* 🧑 Uživatel (vpravo) */
.chat-message.user {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    align-self: flex-end;
    border-radius: 10px;
    border-bottom-right-radius: 4px;
    text-align: right;
    margin-right: 0.25rem;
    margin-left: auto;
    margin-bottom: 0.1rem;
    padding: 0.8rem 1rem;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-message.user:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* === 🧩 INPUT A TLAČÍTKO === */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0.25rem;
}

.chat-input-row input {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #e2e8f0;
    font-size: 1rem;
    margin-top: 0.2rem;
    /* srovnání se spodní hranou bublin */
}

.chat-input-row input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* ✈️ Odesílací tlačítko */
.chat-input-row button {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.chat-input-row button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* === 🎯 ZAROVNÁNÍ BUBLIN S INPUTEM === */
.chat-messages,
.chat-input-row {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.chat-message.ai,
.chat-message.user {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* === 🌌 HLAVIČKA – zarovnání a mezery === */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1.5rem;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
    font-family: "Inter", sans-serif;
    z-index: 1000;
}

#appTitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.3px;
    cursor: default;
    transition: transform 0.6s ease;
}

/* 🌌 jemná animace při přejetí */
#appTitle:hover {
    transform: rotate(5deg) scale(1.05);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* sjednocený vzhled obou comboboxů */
.header-controls select {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.header-controls select:hover {
    background: #334155;
}

/* === 🌌 HLAVIČKA – univerzální styl === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    font-family: "Inter", sans-serif;
    color: #e2e8f0;
    z-index: 1000;
}

#appTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #93c5fd;
}

#appTitle i {
    color: #60a5fa;
    font-size: 1.2rem;
}

/* === 📱 Mobilní úprava hlavičky === */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 0.6rem 1rem;
        gap: 6px;
    }

    .header-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .header-controls select {
        flex: 1;
        margin-right: 6px;
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    #appTitle {
        font-size: 1rem;
    }
}

body.user .app-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid #1e293b;
}

body.user #roleSelect,
body.user #modelSelector {
    display: none;
}

body.user #roleSelect,
body.user #modelSelector {
    display: none;
}

body.user .app-header {
    background: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 1px solid #1e293b;
}