/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-hover: rgba(255, 255, 255, 0.15);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navigace */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo svg {
    opacity: 0.9;
}

/* Přepínač jazyků */
.language-switcher {
    display: flex;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: white;
    color: var(--text-primary);
}

/* Hero sekce */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video pozadí */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Hlavní obsah */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
}

/* AI Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.ai-badge svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Nadpisy */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Chat panel */
.chat-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.chat-panel.active {
    transform: scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    outline: none;
    transition: all 0.2s ease;
    background: white;
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.send-button {
    padding: 0 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.send-button:active {
    transform: translateY(0);
}

/* Oblast zpráv */
.chat-messages {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.chat-messages.active {
    max-height: 400px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    text-align: right;
}

.message-content {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    max-width: 80%;
    text-align: left;
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
}

.message.bot .message-content {
    background: #f3f4f6;
    color: var(--text-primary);
}

.bot-thinking {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* CTA odkazy */
.cta-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cta-link {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cta-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Rychlé návrhy */
.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.suggestion-chip {
    padding: 0.75rem 1.25rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

/* Indikátory důvěry */
.trust-indicators {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.trust-badge svg {
    opacity: 0.8;
}

/* Responzivita */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .chat-panel {
        padding: 1.5rem;
    }

    .chat-input-wrapper {
        flex-direction: column;
    }

    .send-button {
        padding: 1rem;
        width: 100%;
    }

    .quick-suggestions {
        gap: 0.5rem;
    }

    .suggestion-chip {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 0.75rem;
    }

    .message-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo span {
        display: none;
    }

    .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Overlay efekt při aktivním chatu */
.hero.chat-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    transition: all 0.3s ease;
}

/* Ai chat */

/* Voiceflow Widget Customization */

/* Skrytí Voiceflow bubliny/tlačítka */
#voiceflow-chat-frame {
    display: none !important;
}

/* Vlastní trigger tlačítko */
.vf-trigger-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 50%;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.vf-trigger-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.4);
}

.vf-trigger-button svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Úprava Voiceflow chat okna když je otevřené */
.vfrc-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.vfrc-widget .vfrc-chat {
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.vfrc-widget .vfrc-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    border-radius: 24px 24px 0 0 !important;
}

.vfrc-widget .vfrc-message--bot {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
}

.vfrc-widget .vfrc-message--user {
    background-color: #2563eb !important;
}

.vfrc-widget .vfrc-input {
    border-radius: 12px !important;
    border: 2px solid #e5e7eb !important;
    font-size: 16px !important;
}

.vfrc-widget .vfrc-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Skrytí Powered by Voiceflow */
.vfrc-widget .vfrc-footer {
    display: none !important;
}

/* Kompletní skrytí Voiceflow widgetu */
#voiceflow-chat,
.vfrc-launcher,
.vfrc-widget,
[id*="voiceflow"],
[class*="voiceflow"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Zajistit, že váš chat panel zůstane viditelný */
.chat-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Přidat loading stav pro zprávy */
.message.loading {
    opacity: 0.6;
}

/* Vylepšit animaci pro bot odpovědi */
.message.bot {
    animation: fadeInLeft 0.3s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
