/* ============================================
   Partners — Couple Co-Regulation
   Romantic, intimate, elegant aesthetic
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f0a10;
    --bg-card: #1a1218;
    --bg-hover: #241a20;
    
    --rose: #ff6b9d;
    --rose-dim: rgba(255, 107, 157, 0.15);
    --rose-glow: rgba(255, 107, 157, 0.4);
    
    --coral: #ff8a80;
    --coral-dim: rgba(255, 138, 128, 0.15);
    --coral-glow: rgba(255, 138, 128, 0.4);
    
    --gold: #ffd700;
    --gold-dim: rgba(255, 215, 0, 0.1);
    
    --text-primary: #fff5f8;
    --text-secondary: rgba(255, 245, 248, 0.7);
    --text-muted: rgba(255, 245, 248, 0.4);
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.4s ease;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 80%, #1a0f15 0%, var(--bg-dark) 60%);
}

/* Screens */
.screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    padding: 40px 20px;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.screen-content {
    max-width: 450px;
    width: 100%;
    text-align: center;
}

/* Logo */
.logo {
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--rose);
    opacity: 0.8;
}

/* Welcome */
.welcome-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--rose);
}

.welcome-subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 40px;
}

/* Partner Visual on Welcome */
.partner-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.partner-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: gentle-pulse 3s ease-in-out infinite;
}

.left-orb {
    background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
    box-shadow: 0 0 25px var(--rose-glow);
}

.right-orb {
    background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
    box-shadow: 0 0 25px var(--coral-glow);
    animation-delay: -1.5s;
}

.partner-connection {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--rose), var(--coral));
    opacity: 0.5;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Session Options */
.session-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.session-btn {
    background: var(--bg-card);
    border: 2px solid var(--rose-dim);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.session-btn:hover {
    border-color: var(--rose);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--rose-dim);
}

.btn-icon {
    font-size: 1.8rem;
}

.btn-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
}

.btn-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Join Section */
.join-section {
    padding-top: 10px;
}

.join-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.join-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.join-input {
    width: 140px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.join-input:focus {
    outline: none;
    border-color: var(--rose);
}

.join-btn {
    padding: 12px 24px;
    background: var(--rose);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.join-btn:hover {
    transform: scale(1.02);
}

/* Waiting Room */
.waiting-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 30px;
}

.code-display {
    margin-bottom: 40px;
}

.code-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.code-box {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--rose);
    background: var(--bg-card);
    padding: 20px 40px;
    border-radius: var(--radius);
    border: 2px solid var(--rose-dim);
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    display: inline-block;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.waiting-visual {
    position: relative;
    margin: 30px 0;
}

.waiting-orb {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
    box-shadow: 0 0 40px var(--rose-glow);
    animation: waiting-pulse 2s ease-in-out infinite;
}

@keyframes waiting-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.waiting-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.waiting-dots span {
    width: 8px;
    height: 8px;
    background: var(--rose);
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

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

@keyframes dot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
    40% { transform: translateY(-10px); opacity: 1; }
}

.waiting-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Mode Selection */
.mode-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}

.mode-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mode-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
    text-align: left;
}

.mode-btn:hover {
    background: var(--bg-hover);
    border-color: var(--rose);
    transform: translateX(5px);
}

.mode-icon {
    font-size: 1.8rem;
}

.mode-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    display: block;
}

.mode-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Main Session
   ============================================ */

.session-layout {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Partners Area */
.partners-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
    width: 100%;
    max-width: 500px;
}

.partner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.partner-breath-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 4s ease;
}

.partner-container.left .partner-breath-orb {
    background: radial-gradient(circle, var(--rose-dim) 0%, transparent 70%);
    border: 3px solid var(--rose);
    box-shadow: 0 0 40px var(--rose-glow);
}

.partner-container.right .partner-breath-orb {
    background: radial-gradient(circle, var(--coral-dim) 0%, transparent 70%);
    border: 3px solid var(--coral);
    box-shadow: 0 0 40px var(--coral-glow);
}

.partner-breath-orb .orb-inner {
    width: 40%;
    height: 40%;
    border-radius: 50%;
    transition: all 4s ease;
}

.partner-container.left .orb-inner {
    background: var(--rose);
}

.partner-container.right .orb-inner {
    background: var(--coral);
}

/* Breathing States */
.partner-breath-orb.inhale {
    transform: scale(1.25);
}

.partner-breath-orb.inhale .orb-inner {
    transform: scale(1.3);
}

.partner-breath-orb.exhale {
    transform: scale(0.8);
}

.partner-breath-orb.exhale .orb-inner {
    transform: scale(0.7);
    opacity: 0.7;
}

.partner-label {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Sync Bridge */
.sync-bridge {
    width: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bridge-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rose), var(--coral));
    border-radius: 2px;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.bridge-line.strong {
    opacity: 0.9;
    height: 6px;
    box-shadow: 0 0 20px var(--rose-glow);
}

.sync-heart {
    position: relative;
    z-index: 10;
    font-size: 1.8rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.sync-heart.visible {
    opacity: 1;
    transform: scale(1);
    animation: heart-beat 1s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Session Guidance */
.session-guidance {
    text-align: center;
    margin-bottom: 30px;
}

.session-mode-label {
    font-size: 0.85rem;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.guidance-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 15px;
    min-height: 50px;
    transition: opacity 0.5s ease;
}

.breath-cue {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--rose);
    min-height: 50px;
}

/* Sync Meter */
.sync-meter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sync-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sync-bar {
    width: 150px;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.sync-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--coral));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.sync-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rose);
    min-width: 50px;
}

/* Timer */
.session-timer {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.end-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.end-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
}

/* Completion */
.complete-visual {
    margin-bottom: 20px;
}

.complete-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.complete-hearts span {
    font-size: 3rem;
    animation: heart-float 2s ease-in-out infinite;
}

.complete-hearts span:nth-child(2) {
    animation-delay: -1s;
}

@keyframes heart-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.complete-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 15px;
}

.complete-message {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

.session-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--rose);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.complete-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rose) 0%, var(--coral) 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px var(--rose-dim);
}

.btn-secondary {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .partner-breath-orb {
        width: 90px;
        height: 90px;
    }
    
    .sync-bridge {
        width: 50px;
    }
    
    .session-stats {
        gap: 20px;
    }
}



