/* ============================================================
   SOPHISTICATED DARK THEME STYLESHEET
   ============================================================ */

:root {
    --bg-dark: #020617;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.08);
    --accent-primary: #e11d48;
    --accent-secondary: #f43f5e;
    --accent-light: #fb7185;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

body.bg-romantic {
    background-color: #020617;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.12) 0%, transparent 60%),
      radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
.font-romantic {
    font-family: 'Dancing Script', cursive;
}

.font-serif-romantic {
    font-family: 'Playfair Display', serif;
}

.text-gradient {
    background: linear-gradient(to right, #f43f5e, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-pink {
    color: #f43f5e;
}

/* Floating Hearts Background Canvas / CSS */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    color: rgba(244, 63, 94, 0.2);
    animation: floatUp 8s linear infinite;
    font-size: 1.5rem;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(1.3);
        opacity: 0;
    }
}

/* Glassmorphism Cards & Navbars */
.glass-nav {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1030;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(244, 63, 94, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.15);
}

.glass-card-static {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-card {
    background: linear-gradient(145deg, rgba(225, 29, 72, 0.1), rgba(0, 0, 0, 0)) !important;
    border-left: 3px solid var(--accent-primary) !important;
}

.proposal-preview-inner {
    background: radial-gradient(circle at center, #2e0c0e 0%, #020617 100%);
    position: relative;
}

.footer-glass {
    background: #020617;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
}

/* Buttons & Badges */
.btn-love-glow {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #ffffff !important;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35);
    transition: all 0.3s ease;
}

.btn-love-glow:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.5);
}

.btn-outline-love {
    background: transparent;
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-outline-love:hover {
    background: rgba(225, 29, 72, 0.15);
    color: #ffffff;
    border-color: #f43f5e;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
}

.btn-accept-love {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #ffffff !important;
    font-size: 1.15rem;
    padding: 14px 36px;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.4);
    transition: all 0.3s ease;
}

.btn-accept-love:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(225, 229, 72, 0.6);
}

.btn-think-love {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 28px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.btn-think-love:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reject-love {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8 !important;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.btn-reject-love:hover {
    background: rgba(225, 29, 72, 0.1);
    color: #f43f5e !important;
    border-color: rgba(225, 29, 72, 0.3);
}

/* Pulse animation */
.pulse-icon {
    animation: heartPulse 1.8s infinite ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

/* Glass Input Forms */
.form-control-glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: #f8fafc;
    padding: 12px 16px;
}

.form-control-glass:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #f43f5e;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.25);
}

.form-control-glass::placeholder {
    color: #64748b;
}

.form-select-glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: #f8fafc;
    padding: 12px 16px;
}

.form-select-glass option {
    background: #0f172a;
    color: #f8fafc;
}

/* Floating Audio Player */
.music-player-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1040;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Table styling for Sophisticated Dark */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

/* Responsive utilities */
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.max-w-1000 { max-width: 1000px; }
.hover-love:hover { color: #f43f5e !important; }

/* Badges, Typography & Responsive Text Wrapping */
.badge {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, 
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

.text-break-all {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Typing Text Caret */
.typing-text {
    border-right: 3px solid #f43f5e;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    animation: blinkCaret 0.75s step-end infinite;
}

/* Mobile typography scale adjustment to prevent overflow on small screens */
@media (max-width: 576px) {
    .display-1 { font-size: calc(2.2rem + 1.2vw); }
    .display-2 { font-size: calc(2.0rem + 1.0vw); }
    .display-3 { font-size: calc(1.7rem + 0.8vw) !important; }
    .display-4 { font-size: calc(1.5rem + 0.6vw) !important; }
    .display-5 { font-size: calc(1.3rem + 0.4vw); }
    
    .btn-accept-love {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@keyframes blinkCaret {
    from, to { border-color: transparent }
    50% { border-color: #f43f5e; }
}

/* ============================================================
   MULTIPLE ROMANTIC THEMES SUPPORT
   ============================================================ */
/* 1. Rose Gold Glass (Classic Default) */
body.theme-rose_gold {
    background-color: #020617;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.18) 0%, transparent 60%),
      radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
}

/* 2. Midnight Starlight (Cosmic Navy & Gold) */
body.theme-midnight_stars {
    background-color: #03071e;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(247, 127, 0, 0.18) 0%, transparent 60%),
      radial-gradient(circle at 10% 80%, rgba(0, 48, 73, 0.8) 0%, transparent 50%);
}
body.theme-midnight_stars .text-pink { color: #f77f00 !important; }
body.theme-midnight_stars .btn-love-glow {
    background: linear-gradient(135deg, #f77f00, #d62828);
    box-shadow: 0 8px 25px rgba(247, 127, 0, 0.35);
}

/* 3. Lavender & Velvet Violet */
body.theme-lavender_dreams {
    background-color: #0f0a1c;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.2) 0%, transparent 60%),
      radial-gradient(circle at 90% 90%, rgba(88, 28, 135, 0.5) 0%, transparent 50%);
}
body.theme-lavender_dreams .text-pink { color: #c084fc !important; }
body.theme-lavender_dreams .btn-love-glow {
    background: linear-gradient(135deg, #9333ea, #c084fc);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

/* 4. Royal Emerald Luxury */
body.theme-emerald_romance {
    background-color: #021a12;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
      radial-gradient(circle at 10% 90%, rgba(6, 78, 59, 0.6) 0%, transparent 50%);
}
body.theme-emerald_romance .text-pink { color: #34d399 !important; }
body.theme-emerald_romance .btn-love-glow {
    background: linear-gradient(135deg, #059669, #34d399);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* 5. Sunset Passion Glow */
body.theme-sunset_glow {
    background-color: #1a080c;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.22) 0%, transparent 60%),
      radial-gradient(circle at 80% 80%, rgba(190, 18, 60, 0.6) 0%, transparent 50%);
}
body.theme-sunset_glow .text-pink { color: #fb923c !important; }
body.theme-sunset_glow .btn-love-glow {
    background: linear-gradient(135deg, #ea580c, #e11d48);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

/* 6. Sakura Blossom Pink */
body.theme-cherry_blossom {
    background-color: #1a0c16;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.22) 0%, transparent 60%),
      radial-gradient(circle at 20% 80%, rgba(131, 24, 67, 0.5) 0%, transparent 50%);
}
body.theme-cherry_blossom .text-pink { color: #f472b6 !important; }
body.theme-cherry_blossom .btn-love-glow {
    background: linear-gradient(135deg, #db2777, #f472b6);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.35);
}

/* Playful Dodging Reject Button */
#rejectBtn {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.25s ease, left 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

#acceptBtn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Toast Notification for Floating runaway button */
.dodging-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.4);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.dodging-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

