/* Explain: Styles for various UI components like cards, chat, and forms. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.62));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.82), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

/* Chat */
.chat-scroll {
    scroll-behavior: smooth;
}

.chat-bubble {
    width: fit-content;
    max-width: 88%;
    border-radius: 1.25rem;
    padding: 0.8rem 1.05rem;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble-user {
    margin-left: auto;
    border-bottom-right-radius: 0.4rem;
    background: var(--primary-color);
    color: #ffffff;
}

.chat-bubble-ai {
    margin-right: auto;
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 0.4rem;
    background: var(--surface-color);
    color: var(--text-color);
}

.chat-bubble-error {
    margin-right: auto;
    border: 1px solid #e6c3bb;
    border-bottom-left-radius: 0.4rem;
    background: #f7e6e2;
    color: #9b4a3d;
}

.chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-typing span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--sage-dark);
    animation: chatPulse 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.18s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes chatPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-0.18rem);
    }
}

.chat-suggestion {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.7);
    padding: 0.45rem 0.9rem;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 300ms ease;
}

.chat-suggestion:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

/* Cards */
.step-card,
.method-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 1.6rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.step-card:hover,
.method-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: 0 26px 70px rgba(31, 46, 35, 0.1);
    transform: translateY(-6px);
}

.step-icon,
.method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.15rem;
}

.step-number {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.25rem;
}

.contact-note i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.booking-form {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

.auth-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large {
        height: 460px;
        min-height: 0;
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 420px);
    }
}

/* Reporty */
.report-paste {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.55);
    padding: clamp(1.5rem, 4vw, 2.5rem) 1.5rem;
    text-align: center;
    transition: border-color 300ms ease, background 300ms ease;
}

.report-paste:hover,
.report-paste:focus-visible,
.report-paste.is-active {
    border-color: var(--accent-color);
    background: var(--surface-color);
    outline: none;
}

.report-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 1.4rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.report-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: 0 26px 70px rgba(31, 46, 35, 0.1);
    transform: translateY(-4px);
}

.report-preview {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.report-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    align-items: flex-start;
    justify-content: center;
    background: rgba(31, 46, 35, 0.45);
    padding: 1.25rem;
    overflow-y: auto;
}

.report-modal.is-open {
    display: flex;
}

.report-modal-card {
    width: min(100%, 48rem);
    margin: 3rem auto;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.report-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Upozornění na kredity */
.credit-alert {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: none;
    align-items: flex-start;
    gap: 0.9rem;
    width: min(calc(100vw - 2rem), 26rem);
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
}

.credit-alert.is-open {
    display: flex;
}

.credit-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    border-radius: 0.9rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1rem;
}

.credit-alert--high .credit-alert-icon {
    background: rgba(155, 74, 61, 0.14);
    color: #9B4A3D;
}

.credit-alert-text {
    flex: 1;
    min-width: 0;
}

.credit-alert-title {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.credit-alert-msg {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.credit-alert-cta {
    align-self: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--button-color);
    padding: 0.5rem 0.9rem;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 300ms ease;
}

.credit-alert-cta:hover {
    background: var(--primary-hover);
}

.credit-alert-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1;
}

.credit-alert-close:hover {
    background: var(--surface-color);
    color: var(--text-color);
}

@media (max-width: 520px) {
    .credit-alert {
        left: 1rem;
        right: 1rem;
        width: auto;
        flex-wrap: wrap;
    }

    .credit-alert-cta {
        align-self: flex-start;
    }
}