/*
 * Exotica AI Chatbot — Stylesheet
 * ---------------------------------------------------------
 * IMPORTANT: Replace this file with your actual exotica-ai.css
 * Place it at: wp-content/plugins/exotica-chatbot/assets/css/exotica-ai.css
 * ---------------------------------------------------------
 *
 * This placeholder contains the essential CSS variables and
 * base resets so the plugin activates without fatal errors
 * even before you upload your full stylesheet.
 */

/* ── CSS Custom Properties ── */
:root {
    --primary:        265 85% 65%;
    --primary-dark:   265 85% 50%;
    --bg:             220 20% 6%;
    --bg-card:        220 18% 10%;
    --fg:             220 15% 92%;
    --fg-muted:       220 10% 55%;
    --border:         220 15% 18%;
    --radius:         0.75rem;
    --shadow-lg:      0 20px 60px rgba(0,0,0,.5);
    --font-sans:      'Inter', system-ui, sans-serif;
    --font-display:   'Space Grotesk', var(--font-sans);
    --transition:     0.25s ease;
    --z-fab:          9000;
    --z-snippet:      8999;
    --z-prechat:      9100;
    --z-genie:        9100;
    --z-chat:         9200;
}

/* ── Resets ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: var(--font-sans); }

.font-display { font-family: var(--font-display); }

/* ── Utility ── */
.text-gradient-purple {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(265 100% 80%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition), transform var(--transition);
}
.btn-cta:hover { opacity: .9; transform: translateY(-1px); }

.btn-outline {
    display: inline-block;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--fg));
    border-radius: var(--radius);
    padding: .75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

/* ── Floating Action Button ── */
.chatbot-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-fab);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}
.chatbot-fab:hover { transform: scale(1.08); }
.chatbot-fab svg { width: 24px; height: 24px; }

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Chat Snippet ── */
.chat-snippet {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: var(--z-snippet);
    background: hsl(var(--bg-card));
    color: hsl(var(--fg));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: .875rem;
    max-width: 240px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp .4s ease forwards;
}

/* ── Pre-Chat Popup ── */
.prechat-popup {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: var(--z-prechat);
    background: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    width: 320px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
}
.prechat-popup.active { display: block; }

.prechat-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.prechat-title { font-weight: 700; color: hsl(var(--fg)); margin-bottom: .25rem; }
.prechat-subtitle { font-size: .8125rem; color: hsl(var(--fg-muted)); }
.prechat-close { background: none; border: none; color: hsl(var(--fg-muted)); font-size: 1.5rem; cursor: pointer; line-height: 1; }

.prechat-form { display: flex; flex-direction: column; gap: 1rem; }
.prechat-field { display: flex; flex-direction: column; gap: .375rem; }
.prechat-field span { font-size: .8125rem; font-weight: 500; color: hsl(var(--fg-muted)); }
.prechat-field input {
    background: hsl(var(--bg));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * .667);
    color: hsl(var(--fg));
    padding: .625rem .875rem;
    font-size: .875rem;
    outline: none;
    transition: border-color var(--transition);
}
.prechat-field input:focus { border-color: hsl(var(--primary)); }
.prechat-submit { width: 100%; padding: .75rem; }

/* ── Genie Popup ── */
.genie-popup {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: var(--z-genie);
    background: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    width: 320px;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
}
.genie-popup.active { display: block; }
.genie-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.genie-title { font-size: .9375rem; font-weight: 600; color: hsl(var(--fg)); line-height: 1.4; }
.genie-close { background: none; border: none; color: hsl(var(--fg-muted)); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.genie-options { display: flex; flex-direction: column; gap: .5rem; }
.genie-option {
    background: hsl(var(--bg));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * .667);
    color: hsl(var(--fg));
    padding: .625rem .875rem;
    text-align: left;
    cursor: pointer;
    font-size: .875rem;
    transition: border-color var(--transition), background var(--transition);
}
.genie-option:hover { border-color: hsl(var(--primary)); background: hsl(var(--bg-card)); }

/* ── Chat Window ── */
.chatbot-window {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: var(--z-chat);
    width: 380px;
    max-height: 600px;
    background: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chatbot-window.active { display: flex; }

/* ── Nav ── */
#navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: hsl(var(--bg) / .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    padding: 0 2rem;
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
}
.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--fg));
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.nav-brand span { color: hsl(var(--primary)); }
.nav-brand small { font-size: .625rem; font-weight: 400; color: hsl(var(--fg-muted)); letter-spacing: .08em; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: hsl(var(--fg-muted)); text-decoration: none; font-size: .9rem; transition: color var(--transition); }
.nav-links a:hover { color: hsl(var(--fg)); }
.nav-actions { display: flex; gap: .75rem; }
.mobile-toggle { display: none; background: none; border: none; color: hsl(var(--fg)); cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 1rem 0; gap: .75rem; }
.mobile-menu a { color: hsl(var(--fg-muted)); text-decoration: none; font-size: .9375rem; }
.mobile-menu.open { display: flex; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: hsl(var(--bg));
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hero-overlay1 { position: absolute; inset: 0; background: linear-gradient(to bottom, hsl(var(--bg)/.6), hsl(var(--bg))); }
.hero-overlay2 { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(265 85% 30%/.15), transparent 60%); }
.hero-topline { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent); }
.hero-glow1 { position: absolute; top: -20%; left: -10%; width: 60%; height: 60%; background: radial-gradient(circle, hsl(var(--primary)/.12), transparent 70%); pointer-events: none; }
.hero-glow2 { position: absolute; bottom: -20%; right: -10%; width: 50%; height: 50%; background: radial-gradient(circle, hsl(265 100% 75%/.08), transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: 100%; padding: 6rem 2rem; }
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: hsl(var(--primary)/.12);
    border: 1px solid hsl(var(--primary)/.3);
    border-radius: 999px;
    padding: .375rem 1rem;
    font-size: .8125rem;
    font-weight: 500;
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: hsl(var(--primary)); border-radius: 50%; animation: pulse 2s infinite; }
.hero-inner h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; color: hsl(var(--fg)); line-height: 1.1; margin-bottom: 1.25rem; }
.hero-inner p { font-size: 1.125rem; color: hsl(var(--fg-muted)); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Features ── */
.features { position: relative; background: hsl(var(--bg)); padding: 6rem 2rem; overflow: hidden; }
.features .glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, hsl(var(--primary)/.06), transparent 70%); pointer-events: none; }
.features-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.section-label { font-size: .8125rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: hsl(var(--primary)); }
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; color: hsl(var(--fg)); margin: .75rem 0; }
.section-desc { color: hsl(var(--fg-muted)); max-width: 560px; margin: 0 auto 3rem; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── Footer CTA ── */
.footer-cta { position: relative; background: hsl(var(--bg)); padding: 6rem 2rem 3rem; text-align: center; overflow: hidden; }
.footer-cta .bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, hsl(var(--primary)/.1), transparent 70%); pointer-events: none; }
.footer-cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid hsl(var(--border)); flex-wrap: wrap; gap: 1rem; font-size: .875rem; color: hsl(var(--fg-muted)); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: hsl(var(--fg-muted)); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: hsl(var(--fg)); }

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; margin-left: auto; }
    .chatbot-window, .prechat-popup, .genie-popup { width: calc(100vw - 2rem); right: 1rem; }
}
