/* ============================================
   AiEventPro — Event + Travel Suite
   ============================================ */

:root {
    --primary: #D946EF;
    --primary-dark: #c026d3;
    --primary-light: #f0abfc;
    --primary-bg: #fdf4ff;
    --gradient: linear-gradient(135deg, #D946EF, #a855f7);
    /* Travel module colors */
    --travel: #0ea5e9;
    --travel-dark: #0284c7;
    --travel-bg: #f0f9ff;
    --gradient-dark: linear-gradient(135deg, #c026d3, #9333ea);
    --text: #1e1b4b;
    --text-muted: #6b7280;
    --radius: 1rem;
}

/* --- Global --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #f9fafb;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Navbar --- */
.navbar {
    background: var(--gradient);
    box-shadow: 0 2px 20px rgba(217, 70, 239, 0.25);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.dropdown-item i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 0.75rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(217, 70, 239, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 0.75rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-light {
    border-radius: 0.75rem;
}

.btn-outline-light {
    border-radius: 0.75rem;
}

/* --- Cards --- */
.card {
    border-radius: var(--radius) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

/* --- Forms --- */
.form-control, .form-select {
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(217, 70, 239, 0.15);
}

.form-label {
    color: var(--text);
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero-section {
    background: var(--gradient);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.min-vh-75 {
    min-height: 65vh;
}

.fw-800 {
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -20%;
    width: 50%;
    height: 300%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transform: rotate(15deg);
}

/* --- Feature Cards --- */
.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(217, 70, 239, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- Tool Cards (Dashboard) --- */
.tool-card {
    background: var(--primary-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    color: var(--text);
}

.tool-card:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.3);
}

.tool-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tool-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Stat Icon --- */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* --- AI Result --- */
.ai-result {
    line-height: 1.8;
    font-size: 0.95rem;
}

.ai-result h1, .ai-result h2, .ai-result h3, .ai-result h4 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.ai-result h1 { font-size: 1.5rem; }
.ai-result h2 { font-size: 1.3rem; }
.ai-result h3 { font-size: 1.15rem; }

.ai-result ul, .ai-result ol {
    padding-left: 1.5rem;
}

.ai-result li {
    margin-bottom: 0.5rem;
}

.ai-result strong {
    color: var(--text);
}

.ai-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.ai-result th, .ai-result td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.ai-result th {
    background: var(--primary-bg);
    font-weight: 600;
    color: var(--primary-dark);
}

/* --- Badge --- */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 0.5rem;
}

/* --- Footer --- */
footer {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
}

/* --- Alerts --- */
.alert {
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    .tool-card {
        padding: 1rem;
    }

    .tool-card i {
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1.25rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

/* --- Selection --- */
::selection {
    background: var(--primary-light);
    color: var(--text);
}

/* ============================================
   AiEventPro v2 — New Components
   ============================================ */

/* Travel Colors */
.text-travel { color: var(--travel) !important; }
.bg-travel { background-color: var(--travel) !important; }
.bg-travel-soft { background-color: var(--travel-bg) !important; }

/* Primary Soft */
.bg-primary-soft { background-color: var(--primary-bg) !important; }
.text-primary { color: var(--primary) !important; }

/* Module Headers */
.module-header { padding: 1.5rem; background: var(--primary-bg); border-radius: 1rem; border-left: 4px solid var(--primary); }
.module-badge { width: 56px; height: 56px; border-radius: 1rem; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.module-badge-travel { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }

/* Feature Cards — Travel variant */
.feature-card-travel { border-left: 3px solid var(--travel); }
.feature-icon-travel { background: var(--travel-bg); color: var(--travel) !important; }

/* Tool Cards — Travel variant */
.tool-card-travel { background: var(--travel-bg); }
.tool-card-travel i { color: var(--travel); }
.tool-card-travel:hover { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }

/* Stats Bar */
.stats-bar { background: white; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; }

/* Pricing Cards */
.pricing-card { background: white; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 2px 20px rgba(0,0,0,0.06); height: 100%; }
.pricing-card-featured { border: 2px solid var(--primary); background: linear-gradient(135deg, #fdf4ff, #fff); }
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--text); }

/* Chat Demo (Landing) */
.chat-demo { border: 1px solid #e5e7eb; }
.chat-bubble-user { background: var(--gradient); color: white; border-radius: 1rem 1rem 0.25rem 1rem; padding: 0.75rem 1.25rem; max-width: 80%; font-size: 0.9rem; font-style: italic; }
.chat-bubble-ai { background: white; border: 1px solid #e5e7eb; border-radius: 1rem 1rem 1rem 0.25rem; padding: 0.75rem 1.25rem; max-width: 85%; font-size: 0.85rem; }
.ai-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; flex-shrink: 0; }

/* Concierge Prompts */
.concierge-prompts .prompt-chip { background: var(--primary-bg); border: 1px solid var(--primary-light); color: var(--text); padding: 0.6rem 1.25rem; border-radius: 2rem; font-size: 0.9rem; display: inline-block; }

/* Templates */
.template-card { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 2px 15px rgba(0,0,0,0.05); transition: all 0.3s; }
.template-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(217,70,239,0.12); }
.template-icon-lg { width: 60px; height: 60px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; }

/* Glass Cards (Hero) */
.glass-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 1rem; }

/* Hover Lift */
.hover-lift { transition: transform 0.2s, box-shadow 0.2s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important; }

/* App Footer */
.app-footer { background: #f9fafb; border-top: 1px solid #e5e7eb; }

/* Letter Spacing */
.letter-spacing { letter-spacing: 0.08em; }

/* Print */
@media print {
    .navbar, footer, .app-footer, .btn, .alert { display: none !important; }
    .card { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
}

/* Trip Detail Stat Cards */
.text-travel { color: var(--travel) !important; }
.bg-travel { background-color: var(--travel) !important; }

/* Badge variants */
.bg-pink-soft { background-color: #fdf2f8 !important; }
.text-pink { color: #db2777 !important; }
.bg-blue-soft { background-color: #eff6ff !important; }
.text-blue { color: #1d4ed8 !important; }
