/* Koreavel AI Trip Planner */

.ai-page {
    min-height: 100vh;
    background: #f7f5f0;
    color: var(--text);
}

.ai-hero {
    min-height: 86vh;
    padding: 120px 5% 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 48px;
    align-items: center;
    background:
        linear-gradient(120deg, rgba(0,0,0,0.74), rgba(0,0,0,0.42)),
        url("img/bali.jpg") center/cover;
    color: white;
}

.ai-eyebrow,
.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(201,168,113,0.35);
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #f8e7c2;
    font-weight: 700;
    font-size: 0.82rem;
}

.ai-hero h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.ai-hero p {
    max-width: 640px;
    color: rgba(255,255,255,0.86);
    font-size: 1.08rem;
}

.ai-actions,
.ai-sticky-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
}

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

.ai-btn-primary {
    background: var(--gold);
    color: white;
    box-shadow: 0 16px 36px rgba(201,168,113,0.28);
}

.ai-btn-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border-color: rgba(255,255,255,0.34);
}

.ai-btn-dark {
    background: #111;
    color: white;
}

.ai-hero-panel {
    background: rgba(255,255,255,0.94);
    color: #111;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}

.ai-phone {
    border: 1px solid #ece7dc;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.ai-phone-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee7db;
    font-weight: 800;
}

.ai-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
}

.ai-message {
    margin: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #f7f5f0;
    color: #333;
    font-size: 0.94rem;
}

.ai-message.user {
    margin-left: 64px;
    background: #111;
    color: white;
}

.ai-section {
    padding: 88px 5%;
}

.ai-container {
    max-width: 1180px;
    margin: 0 auto;
}

.ai-section-head {
    max-width: 720px;
    margin-bottom: 34px;
}

.ai-section-head h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    margin: 12px 0;
}

.ai-section-head p {
    color: var(--text-light);
}

.ai-offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.ai-offer {
    background: white;
    border: 1px solid #eee7db;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.ai-offer.featured {
    border-color: var(--gold);
    box-shadow: 0 24px 60px rgba(201,168,113,0.18);
}

.ai-price {
    margin: 12px 0;
    color: var(--gold);
    font-size: 3rem;
    font-weight: 900;
}

.ai-offer ul,
.ai-proof-grid ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.ai-offer li,
.ai-proof-grid li {
    padding: 9px 0;
    color: var(--text-light);
    border-bottom: 1px solid #f2eee6;
}

.ai-app-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
}

.ai-sidebar,
.ai-chat,
.ai-result,
.ai-card {
    background: white;
    border: 1px solid #eee7db;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.ai-sidebar {
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 92px;
}

.ai-progress {
    height: 8px;
    background: #ece7dc;
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0;
}

.ai-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gold);
    transition: width 0.35s ease;
}

.ai-summary {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.ai-chat {
    min-height: 620px;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
}

.ai-chat-log {
    padding: 24px;
    overflow: auto;
}

.ai-bubble {
    max-width: 760px;
    margin: 0 0 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f7f5f0;
    animation: aiFade 0.25s ease both;
}

.ai-bubble.user {
    margin-left: auto;
    background: #111;
    color: white;
}

@keyframes aiFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid #eee7db;
}

.ai-input-row input,
.ai-input-row textarea,
.ai-input-row select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dfd6c6;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    resize: vertical;
}

.ai-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ai-option {
    border: 1px solid #dfd6c6;
    background: white;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.ai-option.active {
    border-color: var(--gold);
    background: rgba(201,168,113,0.12);
}

.ai-preview {
    display: none;
    padding: 24px;
    border-top: 1px solid #eee7db;
    background: #fbfaf7;
}

.ai-preview.active {
    display: block;
}

.ai-result {
    display: none;
    padding: 28px;
    margin-top: 22px;
}

.ai-post-payment {
    display: none;
}

.ai-paid .ai-post-payment {
    display: block;
}

.ai-result.active {
    display: block;
}

.ai-result-content {
    white-space: pre-wrap;
    line-height: 1.78;
}

.ai-dashboard-grid,
.ai-proof-grid,
.ai-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ai-card {
    padding: 22px;
}

.ai-card h3 {
    margin-bottom: 8px;
}

.ai-card p {
    color: var(--text-light);
}

.ai-loading {
    display: none;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.ai-loading.active {
    display: flex;
}

.ai-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #ece7dc;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: aiSpin 0.8s linear infinite;
}

@keyframes aiSpin {
    to { transform: rotate(360deg); }
}

.ai-sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 900;
    padding: 10px;
    background: rgba(17,17,17,0.88);
    backdrop-filter: blur(18px);
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.2);
}

.ai-error {
    color: #b42318;
    margin-top: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ai-hero,
    .ai-app-shell,
    .ai-offers,
    .ai-dashboard-grid,
    .ai-proof-grid,
    .ai-examples {
        grid-template-columns: 1fr;
    }

    .ai-hero {
        padding-top: 100px;
    }

    .ai-sidebar {
        position: static;
    }

    .ai-sticky-cta {
        left: 12px;
        right: 12px;
        transform: none;
        justify-content: center;
    }
}

@media print {
    nav,
    footer,
    .ai-hero,
    .ai-section:not(.ai-printable),
    .ai-sidebar,
    .ai-chat,
    .ai-sticky-cta,
    .ai-result-actions {
        display: none !important;
    }

    .ai-result {
        display: block !important;
        box-shadow: none;
        border: 0;
    }
}
