/* LiveConnect Video - Modern Ultra-Engaging Responsive UI */

:root {
    --bg-primary: #090d16;
    --bg-card: #131b2e;
    --bg-secondary: #1c273e;
    --accent-color: #00d2ff;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --pink-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --border-radius: 20px;
    --shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header Navbar */
.app-header {
    background: rgba(19, 27, 46, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 20px;
}

.header-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.brand-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px var(--success-color);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.coin-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Main Container */
.main-wrapper {
    flex: 1;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 14px 110px 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Card Container */
.page-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 22px 18px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

/* Step Progress Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.step-dot {
    flex: 1;
    max-width: 45px;
    height: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.25;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.45;
}

/* Strict GAM Policy Ad Slot Containers */
.ad-slot-wrapper {
    background: rgba(9, 13, 22, 0.8);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    width: 100%;
    box-sizing: border-box;
}

.ad-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.75;
}

/* Interactive Form & Filters */
.preference-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin: 12px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-select, .form-input {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.form-select:focus, .form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 4px;
}

/* Action Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.35);
    letter-spacing: 0.2px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-pink {
    background: var(--pink-gradient);
    box-shadow: 0 6px 20px rgba(255, 8, 68, 0.35);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Radar Search Page 2 */
.radar-wrapper {
    padding: 15px 0;
}

.radar-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px auto;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, rgba(19, 27, 46, 0.95) 75%);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 210, 255, 0.6) 360deg);
    animation: spin 1.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.radar-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.search-status-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-status-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin: 16px 0 0 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: width 0.3s linear;
}

/* Page 3 Match Found Card & Preview */
.match-card-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0;
}

.profile-preview-box {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--success-color);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 3px;
}

.camera-preview-box {
    background: #000000;
    border-radius: 16px;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-placeholder {
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 12px;
    text-align: center;
}

/* Page 4 Active Call Room */
.video-room-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.video-frame {
    background: #000000;
    border-radius: 16px;
    height: 240px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-overlay-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    z-index: 5;
}

.call-toolbar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    align-items: center;
}

.tool-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tool-btn:active {
    transform: scale(0.92);
}

.chat-simulator {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 10px;
    height: 100px;
    overflow-y: auto;
    text-align: left;
    margin-top: 10px;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msg-bubble {
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.35;
}

.msg-author {
    color: var(--accent-color);
    font-weight: 700;
}

/* Page 5 Call End & Rating */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.stat-box {
    background: var(--bg-secondary);
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
}

.stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    color: #475569;
    margin: 12px 0;
    cursor: pointer;
}

.rating-stars span {
    transition: color 0.2s transform 0.2s;
}

.rating-stars span:hover {
    transform: scale(1.2);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.rec-user-card {
    background: var(--bg-secondary);
    padding: 8px 4px;
    border-radius: 10px;
    text-align: center;
}

.rec-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 4px;
    border: 2px solid var(--accent-color);
}

.rec-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Fixed GAM Anchor Ad Container */
.anchor-ad-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;
    background: rgba(9, 13, 22, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 0;
}

/* Footer */
.app-footer {
    background: var(--bg-card);
    padding: 20px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    margin: 8px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.disclaimer-text {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 6px;
}
