/* STRANGY MASTER DESIGN SYSTEM - PRO VERSION (INTEGRATED) */

:root {
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --accent-emerald: #10b981;
    --neon-green: #39FF14; 
    --neon-blue: #00d2ff;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-gradient: linear-gradient(135deg, #10b981, #14b8a6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- NEON CLOUDY AURA --- */
body::before, body::after {
    content: "";
    position: fixed;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.15) 0%, transparent 70%);
    filter: blur(80px); z-index: -1;
    animation: moveClouds 15s infinite alternate ease-in-out;
    pointer-events: none;
}
body::before { top: -200px; left: -200px; }
body::after { bottom: -200px; right: -200px; animation-delay: -7s; }

@keyframes moveClouds {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 6%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(2, 6, 23, 0.5); backdrop-filter: blur(15px);
}

.logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--accent-emerald); }

/* --- HERO WRAPPER (CENTERING & PRO FIX) --- */
.hero-wrapper { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 100px 20px 100px;
    width: 100%;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 15px; font-family: 'Poppins'; }

/* --- GLASS CARD & SELECTION TITLE --- */
.glass-card { 
    background: var(--bg-card); backdrop-filter: blur(30px); 
    border: 1px solid var(--glass-border); border-radius: 32px; 
    padding: 35px; width: 100%; max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.selection-title {
    font-size: 0.9rem; color: var(--text-muted); 
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 20px; font-weight: 600;
}

.gender-selection { display: flex; gap: 15px; margin-bottom: 25px; }
.gender-chip { flex: 1; cursor: pointer; position: relative; }
.gender-chip input { display: none; }

.chip-content { 
    display: flex; flex-direction: column; align-items: center; 
    padding: 18px; border: 1px solid var(--glass-border); 
    border-radius: 18px; transition: 0.4s all ease;
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
}

.gender-chip input:checked + .chip-content { 
    background: rgba(57, 255, 20, 0.08); 
    border-color: var(--neon-green); 
    color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.1);
}

.chip-content i { font-size: 1.5rem; margin-bottom: 8px; }

/* --- BUTTON START --- */
.btn-start-chat { 
    width: 100%; background: var(--primary-gradient); color: white; 
    border: none; padding: 20px; border-radius: 18px; 
    font-weight: 800; cursor: pointer; font-size: 1rem;
    transition: 0.3s; letter-spacing: 1px;
}
.btn-start-chat:hover { opacity: 0.9; transform: scale(1.02); }

/* --- CHAT ZONE --- */
.chat-zone {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    padding: 90px 15px 120px; 
    box-sizing: border-box;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    flex-grow: 1;
    justify-content: center;
    z-index: 2;
}

.video-card {
    width: 100%;
    aspect-ratio: 16 / 11;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-card.connected { border-color: var(--neon-green); box-shadow: 0 0 15px rgba(57, 255, 20, 0.2); }
video { width: 100%; height: 100%; object-fit: cover; }

/* --- CONTROLS --- */
.chat-controls {
    display: flex; gap: 12px; width: 100%; max-width: 500px; padding: 20px 0; z-index: 10;
}

.btn-control {
    flex: 1; padding: 14px 5px; border-radius: 16px; border: none;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: 0.3s; display: flex; flex-direction: column;
    align-items: center; gap: 5px; color: white;
}

.next { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stop { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

/* --- AD CONTAINER --- */
.ad-container { 
    width: 100%; max-width: 450px; margin: 15px auto; 
    display: block !important; z-index: 5;
}

.ad-placeholder { 
    background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.1); 
    border-radius: 12px; height: 70px; display: flex; align-items: center; 
    justify-content: center; color: rgba(255, 255, 255, 0.2); font-size: 0.75rem; width: 100%;
}

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 75px;
    background: rgba(10, 15, 30, 0.98); border-top: 1px solid var(--glass-border);
    display: flex; justify-content: space-around; align-items: center; z-index: 9999;
}

.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); text-decoration: none; font-size: 0.7rem; }
.nav-item.active { color: var(--neon-green); font-weight: bold; }

/* --- DESKTOP ADJUSTMENTS (PERFECT ALIGNMENT) --- */
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .glass-card { max-width: 480px; padding: 45px; }
    .ad-container { max-width: 728px; }
    .hero-wrapper { justify-content: center; padding-top: 60px; }
    
    .video-grid { flex-direction: row; max-width: 1100px; height: 65vh; gap: 20px; }
    .video-card { flex: 1; height: 100%; aspect-ratio: auto; }
}

/* RADAR & OVERLAYS */
.matching-overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; }
.radar { width: 60px; height: 60px; border: 3px solid var(--neon-blue); border-radius: 50%; animation: pulse 1.5s infinite; position: relative; }
.radar::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 2px solid var(--neon-blue); border-radius: 50%; transform: translate(-50%, -50%); animation: radar-ping 1.5s infinite; }
@keyframes radar-ping { 0% { width: 0%; height: 0%; opacity: 1; } 100% { width: 200%; height: 200%; opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1); opacity: 1; } }
.searching-text { margin-top: 15px; color: var(--neon-blue); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.video-label { position: absolute; bottom: 12px; left: 12px; background: rgba(15, 23, 42, 0.8); padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; border: 1px solid var(--glass-border); }