/* ============================================
   ZipChats.online — Desktop Specific Styles
   ============================================ */

/* ---------- LANDING PAGE ---------- */
.landing-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

#landing-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 1%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 1%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 1%);
    background-size: 150px 150px;
    animation: floatingParticles 40s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.landing-container {
    max-width: 1200px;
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.landing-header { text-align: center; margin-bottom: 48px; }

.logo {
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
    line-height: 1.1;
}

.tagline { font-size: 1.1rem; color: var(--text-secondary); letter-spacing: 4px; text-transform: uppercase; margin-top: 8px; }

.online-counter-pill {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.auth-tabs { display: flex; background: var(--bg-primary); padding: 6px; border-radius: var(--radius-md); margin-bottom: 32px; }

.tab-btn { flex: 1; padding: 12px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; }
.tab-btn.active { background: var(--accent); color: #fff; }

.auth-form { display: none; flex-direction: column; gap: 20px; }
.auth-form.active { display: flex; }

.quick-fields { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.inline-fields { display: flex; gap: 12px; width: 100%; align-items: center; margin-bottom: 16px; }
.field-half { flex: 1; display: flex; }

.auth-form input, select {
    background: var(--bg-input); border: 1px solid var(--border-subtle); color: var(--text-primary);
    padding: 14px 18px; border-radius: var(--radius-sm); outline: none;
}

.gender-selector { display: flex; gap: 12px; }
.gender-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    cursor: pointer; background: var(--bg-input);
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff; border: none; padding: 16px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer;
}

/* ---------- LOBBY & CHAT ---------- */
#main-container { display: none; height: 100vh; background: var(--bg-primary); }

#sidebar { width: var(--sidebar-width); background: var(--bg-secondary); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; }

.app-header { height: var(--header-height); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: var(--bg-tertiary); }

.nav-bar { display: flex; padding: 12px; gap: 8px; background: var(--bg-tertiary); }

.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px; }

.user-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 20px 12px; text-align: center; cursor: pointer; }

#chat-panel { flex: 1; display: flex; flex-direction: column; background: var(--bg-primary); }

.chat-header { height: var(--header-height); background: var(--bg-secondary); border-bottom: 1px solid var(--border-subtle); padding: 0 20px; display: flex; align-items: center; gap: 12px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }

.chat-input-bar { padding: 16px 20px; background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 12px; }

.msg-bubble { padding: 12px 18px; border-radius: var(--radius-md); background: var(--bg-secondary); box-shadow: var(--shadow-sm); }
.sent .msg-bubble { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; }

/* Desktop-only backgrounds */
@media (min-width: 1200px) {
    .landing-scroll-wrapper { background-attachment: fixed; }
}

/* --- NEW FEATURES STYLES --- */

/* Chat Header Sub-info */
.chat-sub-info { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.active-users-badge { display: flex; align-items: center; gap: 6px; background: rgba(16, 185, 129, 0.1); padding: 2px 10px; border-radius: 12px; color: var(--accent); font-weight: 600; }
.active-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--accent); animation: pulseGlow 2s infinite; }

/* Mute Toggle */
.mute-btn.active .mute-slash { display: block !important; }
.mute-btn.active { color: var(--danger); }

/* View Once Toggle */
.view-once-btn { position: relative; color: var(--text-muted); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.view-once-btn:hover { color: var(--accent); }
.view-once-btn.active { color: var(--accent); transform: translateY(-2px); }
.view-once-btn.active svg { filter: drop-shadow(0 0 5px var(--accent)); }
.view-once-badge { 
    position: absolute; top: -6px; right: -6px; background: var(--accent); color: #000; 
    font-size: 10px; font-weight: 800; width: 16px; height: 16px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-secondary);
}

/* Profile DP Upload & Expanded Layout */
.profile-avatar-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto 20px; }
.profile-avatar-wrap .profile-avatar { width: 100%; height: 100%; font-size: 3rem; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border-radius: 50%; overflow: hidden; }
.profile-avatar-wrap .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-overlay { 
    position: absolute; bottom: 0; right: 0; background: var(--accent); color: #000; 
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; cursor: pointer; font-size: 1.1rem; border: 3px solid var(--bg-secondary);
    transition: transform 0.2s;
}
.avatar-edit-overlay:hover { transform: scale(1.1); background: var(--accent-light); }

/* Social Links List */
.social-links-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.social-tag { 
    background: var(--bg-tertiary); padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; 
    border: 1px solid var(--border-subtle); color: var(--accent); display: flex; align-items: center; gap: 6px;
}
.social-tag:hover { background: var(--bg-hover); border-color: var(--accent); }

/* View Once Message UI */
.view-once-bubble { 
    cursor: pointer; background: rgba(16, 185, 129, 0.05); border: 2px dashed var(--accent); 
    padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; 
    border-radius: var(--radius-md); transition: all 0.2s;
}
.view-once-bubble:hover { background: rgba(16, 185, 129, 0.1); transform: translateY(-2px); }
.view-once-bubble.viewed { opacity: 0.4; cursor: default; border-style: solid; border-color: var(--text-muted); background: var(--bg-tertiary); }
.view-once-bubble.viewed:hover { transform: none; }
.view-once-icon { font-size: 2rem; filter: drop-shadow(0 0 5px var(--accent)); }
.view-once-bubble.viewed .view-once-icon { filter: none; opacity: 0.5; }
.view-once-text { font-weight: 600; font-size: 0.9rem; }
