/* ═══════════════════════════════════════════════════════════════
   CURA AI CHATBOT — Premium Futuristic Design System
   Reicuri's AI Wellness Advisor
   ═══════════════════════════════════════════════════════════════ */

/* ─── DEDICATED SECTION: Meet Cura Banner ─── */
.cura-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        #C4A882 0%,
        #C9A08A 20%,
        #BFA0A8 40%,
        #B39AB8 60%,
        #A897B8 80%,
        #9B8FB0 100%);
    margin: 0 32px;
    border-radius: 24px;
    padding: 0;
}

/* Animated gradient overlay for depth */
.cura-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(210, 170, 130, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(160, 130, 140, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle soft texture */
.cura-section::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='none'/%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cura-section-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 180px;
}

/* ─── Left: Text ─── */
.cura-section-text h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.cura-section-text h2 em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
}

.cura-section-text p {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 380px;
}

/* ─── Right: Glassmorphism Card ─── */
.cura-section-card {
    width: 100%;
    max-width: 360px;
    justify-self: end;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}

.cura-section-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Avatar + Badge */
.cura-hero-avatar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.cura-avatar-ring {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cura-avatar-ring svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #8B7E74;
    stroke-width: 1.5;
}

.cura-hero-badge {
    display: flex;
    flex-direction: column;
}

.cura-hero-badge-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.cura-hero-badge-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

/* Greeting */
.cura-hero-greeting {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.cura-hero-greeting .cura-typing-cursor {
    display: inline-block;
    width: 3px;
    height: 26px;
    background: rgba(255, 255, 255, 0.7);
    margin-left: 3px;
    animation: curaBlink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes curaBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cura-hero-subtext {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* CTA Button */
.cura-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.cura-hero-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #6B5E54;
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cura-hero-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.cura-hero-cta:hover svg {
    transform: translateX(3px);
}


/* ═══════════════════════════════════════════════════════════════
   CHAT OVERLAY — Fullscreen Glassmorphism
   ═══════════════════════════════════════════════════════════════ */
.cura-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cura-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ─── Chat Window ─── */
.cura-chat-window {
    width: 440px;
    max-width: 95vw;
    height: 680px;
    max-height: 88vh;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cura-overlay.active .cura-chat-window {
    transform: translateY(0) scale(1);
}

/* ─── Chat Header ─── */
.cura-chat-header {
    background: linear-gradient(135deg, #1A1A2E 0%, #2D4A5E 100%);
    padding: 24px 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

/* Subtle animated gradient overlay */
.cura-chat-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(15, 168, 162, 0.08),
        transparent);
    animation: curaHeaderShimmer 4s ease-in-out infinite;
}

@keyframes curaHeaderShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.cura-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0FA8A2, #0D8B86);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cura-header-avatar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
}

/* Online dot on avatar */
.cura-header-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10B981;
    border: 2.5px solid #1A1A2E;
}

.cura-header-info {
    flex: 1;
    z-index: 1;
}

.cura-header-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.cura-header-status {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cura-header-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.cura-header-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s ease;
}

.cura-header-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cura-header-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}


/* ─── Chat Messages Area ─── */
.cura-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #F9FAFB;
    scroll-behavior: smooth;
}

.cura-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.cura-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.cura-chat-messages::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

/* Message Row */
.cura-msg-row {
    display: flex;
    gap: 10px;
    max-width: 88%;
    animation: curaMessageIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cura-msg-row.bot {
    align-self: flex-start;
}

.cura-msg-row.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* Message Avatar (bot only) */
.cura-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0FA8A2, #1A1A2E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cura-msg-avatar svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
}

/* Message Bubble */
.cura-msg-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
    color: #1A1A2E;
    position: relative;
}

.cura-msg-row.bot .cura-msg-bubble {
    background: #fff;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cura-msg-row.user .cura-msg-bubble {
    background: linear-gradient(135deg, #1A1A2E, #2D4A5E);
    color: #fff;
    border-bottom-right-radius: 6px;
}

/* Timestamp */
.cura-msg-time {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
    padding: 0 4px;
}

.cura-msg-row.user .cura-msg-time {
    text-align: right;
}

/* ─── Typing Indicator ─── */
.cura-typing-indicator {
    display: flex;
    gap: 10px;
    align-self: flex-start;
    max-width: 88%;
    animation: curaMessageIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cura-typing-dots {
    padding: 16px 22px;
    background: #fff;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cura-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C4C9D2;
    animation: curaTypingBounce 1.4s ease-in-out infinite;
}

.cura-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.cura-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes curaTypingBounce {
    0%, 60%, 100% { transform: translateY(0); background: #C4C9D2; }
    30% { transform: translateY(-8px); background: #0FA8A2; }
}


/* ─── Quick Reply Chips ─── */
.cura-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 8px;
    animation: curaMessageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cura-quick-chip {
    padding: 10px 18px;
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: #1A1A2E;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cura-quick-chip:hover {
    background: #1A1A2E;
    color: #fff;
    border-color: #1A1A2E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
}

.cura-quick-chip:active {
    transform: translateY(0);
}


/* ─── Chat Input Bar ─── */
.cura-chat-input-bar {
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cura-chat-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.cura-chat-input {
    width: 100%;
    padding: 14px 18px;
    padding-right: 48px;
    background: #F3F4F6;
    border: 1.5px solid transparent;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #1A1A2E;
    outline: none;
    transition: all 0.2s ease;
}

.cura-chat-input::placeholder {
    color: #9CA3AF;
}

.cura-chat-input:focus {
    background: #fff;
    border-color: #0FA8A2;
    box-shadow: 0 0 0 3px rgba(15, 168, 162, 0.1);
}

.cura-send-btn {
    position: absolute;
    right: 6px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0FA8A2, #0D8B86);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.5;
    pointer-events: none;
}

.cura-send-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.cura-send-btn.active:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(15, 168, 162, 0.35);
}

.cura-send-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Powered by label */
.cura-powered-by {
    text-align: center;
    padding: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 11px;
    color: #C4C9D2;
    letter-spacing: 0.5px;
}

.cura-powered-by span {
    color: #9CA3AF;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 968px) {
    .cura-section {
        margin: 0 24px;
        border-radius: 20px;
    }

    .cura-section-inner {
        grid-template-columns: 1fr 1fr;
        padding: 48px 32px;
        gap: 32px;
    }

    .cura-section-text h2 {
        font-size: clamp(22px, 3vw, 32px);
    }

    .cura-section-card {
        max-width: 320px;
    }

    .cura-chat-window {
        width: 100%;
        max-width: 100vw;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 640px) {
    .cura-section {
        margin: 0 16px;
        border-radius: 18px;
    }

    .cura-section-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 24px;
        gap: 24px;
    }

    .cura-section-text p {
        margin: 0 auto;
    }

    .cura-section-text h2 br {
        display: none;
    }

    .cura-section-card {
        max-width: 360px;
        justify-self: center;
    }

    .cura-hero-greeting {
        font-size: 22px;
    }

    .cura-quick-chip {
        font-size: 12px;
        padding: 8px 14px;
    }
}
