/*
Theme Name: Lovedoz Theme
Theme URI: https://renis.site/
Author: Lovedoz
Author URI: https://renis.site/
Description: Viral Love Match and Spin Wheel Theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lovedoz
*/


:root {
    --bg-dark: #0f0008;
    --primary-red: #ff1053;
    --primary-pink: #ff3366;
    --primary-purple: #9d4edd;
    --neon-glow: 0 0 15px rgba(255, 16, 83, 0.6), 0 0 30px rgba(255, 16, 83, 0.4);
    --glass-bg: rgba(20, 0, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #f0f0f0;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html { scroll-behavior: smooth; width: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: radial-gradient(circle at top, #2b001a, var(--bg-dark));
    color: var(--text-main);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: #ffffff; text-shadow: 0 0 20px rgba(255, 51, 102, 0.8), 0 0 40px rgba(255, 51, 102, 0.4); text-transform: uppercase; letter-spacing: 2px; }
h2 { font-size: 2.5rem; color: #ff9a9e; }

/* Glass Base */
.glass-panel, .glass-card {
    background: rgba(20, 0, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 51, 102, 0.1);
    padding: 3rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 51, 102, 0.3), inset 0 0 20px rgba(255, 51, 102, 0.2);
    border-color: rgba(255, 51, 102, 0.5);
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem; z-index: 1000;
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: bold; }
.heart-icon { color: var(--primary-red); animation: heartbeat 1s infinite; display: inline-block; }
.nav-links { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav-links a { color: white; text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-pink); }

/* Buttons */
.romantic-btn {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border: none; padding: 15px 35px; color: white;
    font-size: 1.1rem; border-radius: 50px; cursor: pointer;
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: var(--neon-glow); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.romantic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 16, 83, 0.8), 0 0 45px rgba(255, 16, 83, 0.6);
}
.romantic-btn:active { transform: scale(0.95); }

/* Scroll Animation */
#scroll-animation-container {
    height: 400vh;
    width: 100vw;
    position: relative;
    background: #0a0005;
}
.animation-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
#balcony-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}
.side-visual {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.side-visual.left-visual { left: 8%; }
.side-visual.right-visual { right: 8%; }

.visual-title {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--primary-pink);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.2rem;
}

.glass-thermometer {
    width: 20px;
    height: 35vh;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    overflow: hidden;
}

.thermo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #ff1053, #ffb199);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 16, 83, 0.8);
    transition: height 0.1s linear;
}

.visual-value {
    margin-top: 15px;
    color: #ff9a9e;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 16, 83, 0.5);
}

@media (max-width: 1024px) {
    .side-visual { display: none; }
}
.scroll-indicator {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 100;
    text-align: center;
    color: var(--primary-pink);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    animation: bounceIndicator 2s infinite;
    pointer-events: none;
    transition: opacity 0.5s;
}
@keyframes bounceIndicator {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

/* Slot Machine */
.slot-machine-container {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--primary-pink);
    box-shadow: 0 0 40px rgba(255, 16, 83, 0.4);
    padding: 3rem;
}
.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.input-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 51, 102, 0.4);
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 1.2rem;
    color: white;
    text-align: center;
    width: 250px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 51, 102, 0.1);
    transition: all 0.3s ease;
}
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: inset 0 0 10px rgba(255, 51, 102, 0.3), 0 0 20px rgba(255, 51, 102, 0.5);
    transform: scale(1.02);
}
.input-group .plus {
    font-size: 2.5rem;
    color: var(--primary-red);
    animation: heartbeat 1s infinite;
    text-shadow: 0 0 15px rgba(255, 16, 83, 0.8);
    margin: 0 10px;
}
.slot-windows {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.slot-window {
    background: rgba(10, 0, 5, 0.8);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-align: center;
    padding: 10px;
    text-shadow: 0 0 10px var(--primary-pink);
    box-shadow: inset 0 0 20px rgba(157, 78, 221, 0.5);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}
.slot-blur {
    filter: blur(4px);
    opacity: 0.5;
    animation: slotSpin 0.1s infinite linear;
}
@keyframes slotSpin {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(30px); }
}

/* Wheel Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
}
.wheel {
    width: 100%; height: 100%; border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.5) inset;
    transition: transform 4s cubic-bezier(0.175, 0.885, 0.1, 1);
    position: relative; overflow: hidden;
}
.wheel-label {
    position: absolute; left: 50%; top: 50%;
    transform-origin: 0 0;
    font-weight: bold; font-size: 1.1rem; color: white;
    text-shadow: 1px 1px 4px black; white-space: nowrap;
}

/* Layout */
.section { padding: 120px 20px 60px; max-width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 10; padding-top: 80px; }
.hero-calculator { max-width: 600px; margin: 3rem auto; position: relative; background: rgba(30, 0, 15, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.8); padding: 3rem; }
.hero-calculator::before {
    content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: linear-gradient(45deg, rgba(255,16,83,0.8), rgba(157,78,221,0.8), rgba(255,16,83,0.8));
    z-index: -1; filter: blur(40px); opacity: 0.6; border-radius: 40px; animation: pulseGlow 4s infinite;
}

/* Inputs */
.input-group { display: flex; gap: 1rem; margin-bottom: 2.5rem; align-items: center; }
.input-group input {
    flex: 1; padding: 18px 20px; background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3); border-radius: 15px; color: white; font-size: 1.1rem; text-align: center;
    transition: all 0.3s; font-family: var(--font-body); letter-spacing: 0.5px; box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}
.input-group input::placeholder { color: rgba(255,255,255,0.4); }
.input-group input:focus { border-color: var(--primary-pink); outline: none; background: rgba(157, 78, 221, 0.25); box-shadow: 0 0 20px rgba(255,51,102,0.4), inset 0 0 10px rgba(0,0,0,0.5); transform: translateY(-2px); }
.plus { font-size: 1.5rem; color: var(--primary-pink); animation: heartbeat 1.5s infinite; filter: drop-shadow(0 0 10px var(--primary-pink)); }

/* Progress Bars */
.progress-container { background: rgba(255,255,255,0.1); border-radius: 20px; height: 20px; width: 100%; margin: 10px 0; overflow: hidden; position: relative; }
.progress-bar { background: linear-gradient(90deg, var(--primary-red), var(--primary-purple)); height: 100%; width: 0%; transition: width 1.5s ease-in-out; border-radius: 20px; box-shadow: var(--neon-glow); }
.meter-label { display: flex; justify-content: space-between; font-weight: bold; margin-top: 15px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }

/* Loader */
.loader { display: none; margin: 20px auto; border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid var(--primary-pink); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; }

/* Animations */
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.8; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Floating Hearts */
#floating-hearts { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.heart-float { position: absolute; color: var(--primary-pink); opacity: 0; animation: floatUp linear forwards; }
@keyframes floatUp { 0% { transform: translateY(100vh) scale(0.5); opacity: 0.4; } 100% { transform: translateY(-10vh) scale(1.5); opacity: 0; } }

/* Share Button */
.whatsapp-btn { background: #25D366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.6); margin-top: 15px; display: inline-flex; align-items: center; gap: 10px; }
.whatsapp-btn:hover { box-shadow: 0 0 25px rgba(37, 211, 102, 0.9); }

/* Share section */
.share-section { margin-top: 2rem; display: none; }

@media (max-width: 768px) {
    .glass-nav { flex-direction: column; gap: 10px; border-radius: 20px; padding: 10px; }
    .glass-nav .nav-links { display: none; }
    .input-group { flex-direction: column; width: 100%; gap: 10px; }
    .input-group input { width: 100%; max-width: 100%; }
    .glass-panel, .glass-card { padding: 1.5rem; border-radius: 15px; width: 100%; }
    h1 { font-size: 1.8rem; word-wrap: break-word; line-height: 1.3; width: 100%; text-align: center; }
    h2 { font-size: 1.6rem; word-wrap: break-word; line-height: 1.3; }
    .romantic-btn { width: 100%; font-size: 1rem; padding: 12px 20px; }
    .hero-calculator { padding: 1.5rem 1rem; width: 100%; }
    .section { padding: 40px 15px; }
    .glass-footer { padding-bottom: 100px !important; }
    .grid { gap: 1.5rem; }
    #story-modal .glass-panel { padding: 25px 15px; }
    #wheel-modal .glass-panel { padding: 20px 15px; }
    .overlay-text { opacity: 1; align-items: flex-end; padding-bottom: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); font-size: 1.2rem; }
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(20, 0, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 51, 102, 0.4);
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    padding: 8px 10px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(255, 16, 83, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
    border-radius: 30px;
}

.nav-item:hover, .nav-item.active {
    color: white;
    transform: translateY(-5px);
}

.nav-item:hover::before, .nav-item.active::before {
    opacity: 1;
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
    transition: transform 0.3s;
}

.nav-item:hover .nav-icon, .nav-item.active .nav-icon {
    transform: scale(1.2);
    animation: bounceIcon 1s infinite;
}

.nav-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

@keyframes bounceIcon {
    0%, 100% { transform: scale(1.2) translateY(0); }
    50% { transform: scale(1.2) translateY(-3px); }
}

@media (min-width: 769px) {
    .bottom-nav { display: none; }
}

/* Dating Tips Images */
.tip-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 15px;
}
.tip-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tip-image-wrapper:hover img {
    transform: scale(1.1);
}
.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.tip-image-wrapper:hover .overlay-text {
    opacity: 1;
}

