/* ============================================
   ZANELORA.COM - Custom Styles
   Palette: #0a0a0a (dark) + #c9a84c (gold) + #fafafa (white)
   ============================================ */

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #c9a84c33; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c9a84c66; }

/* --- Selection --- */
::selection { background: #c9a84c40; color: #fff; }

/* --- Chat Bubbles --- */
.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.9375rem;
    word-wrap: break-word;
    animation: bubbleIn 0.3s ease-out;
}

.chat-bubble-user {
    background: #c9a84c;
    color: #0a0a0a;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-bubble-assistant {
    background: #1a1a1a;
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 4px;
}

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

/* --- Typing indicator --- */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #c9a84c;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* --- Gift Bundle Cards --- */
.bundle-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bundle-card:hover {
    border-color: #c9a84c40;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.1);
}

.bundle-card.selected {
    border-color: #c9a84c;
    box-shadow: 0 0 0 1px #c9a84c, 0 8px 24px rgba(201, 168, 76, 0.15);
}

.bundle-card .tier-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #c9a84c15;
    color: #c9a84c;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    border: 1px solid #c9a84c30;
}

.bundle-card .price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* --- Gift Score Ring --- */
.gift-score-ring {
    width: 60px;
    height: 60px;
    position: relative;
}

.gift-score-ring svg {
    transform: rotate(-90deg);
}

.gift-score-ring circle {
    fill: none;
    stroke-width: 4;
}

.gift-score-ring .bg-ring { stroke: #1a1a1a; }

.gift-score-ring .score-ring {
    stroke: #c9a84c;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.gift-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #c9a84c;
}

/* --- Chat Input --- */
.chat-input-area {
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-input {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 12px 48px 12px 20px;
    color: #fafafa;
    font-size: 0.9375rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: #c9a84c40;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.chat-send-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c9a84c;
    color: #0a0a0a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    background: #e2d5a0;
    transform: translateY(-50%) scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* --- Card message area --- */
.card-input {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fafafa;
    font-size: 0.875rem;
    width: 100%;
    min-height: 80px;
    resize: none;
    outline: none;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

.card-input:focus {
    border-color: #c9a84c40;
}

/* --- Checkout Summary --- */
.checkout-summary {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
}

.checkout-total {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #c9a84c;
}

/* --- Stripe button --- */
.stripe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    background: #c9a84c;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 1.0625rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stripe-btn:hover {
    background: #e2d5a0;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.stripe-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* --- Pulse animation for CTA --- */
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

.pulse-gold { animation: goldPulse 2s infinite; }

/* --- Fade in animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

/* --- Cart toast animation --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.animate-fade-up { animation: fadeUp 0.3s ease-out forwards; }

/* --- Add to cart button states --- */
.add-to-cart-btn.in-cart {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.4);
    color: #c9a84c;
}
.add-to-cart-btn.in-cart svg {
    display: none;
}
.add-to-cart-btn.in-cart::before {
    content: '\2713';
    margin-right: 4px;
    font-weight: bold;
}

/* --- Mobile adjustments --- */
@media (max-width: 640px) {
    .chat-bubble { max-width: 88%; font-size: 0.875rem; }
    .bundle-card { padding: 16px; }
    .bundle-card .price { font-size: 1.25rem; }
}
