/* PLAYVYO - COMPLETE CSS REBUILD */

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --border-radius: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #000000;
    line-height: 1.6;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    height: 80px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--dark-color);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon::before {
    content: '♥';
    font-size: 1.2rem;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.nav-links a.btn {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    padding: 2rem 0;
}

/* Content Areas - WHITE BACKGROUNDS WITH BLACK TEXT */
.form-container,
.premium-content,
.sidebar > div,
.main-card-area > div:not(.card-stack),
#notificationsDropdown,
[style*="background: white"],
[style*="background: rgba(255, 255, 255"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    color: #000000 !important;
}

.form-container *,
.premium-content *,
.sidebar > div *,
.main-card-area > div:not(.card-stack) *,
#notificationsDropdown *,
[style*="background: white"] *,
[style*="background: rgba(255, 255, 255"] * {
    color: #000000 !important;
}

/* Hero Section - WHITE TEXT ON GRADIENT */
.hero,
.hero *,
[style*="color: white"],
[style*="color: white"] * {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #374151 !important;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: #000000 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Enhanced Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
}

/* Auth Page Styling */
.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-btn {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563 !important;
}

/* Buttons */
.btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 600px;
    margin: 0 auto;
}

.profile-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.profile-info {
    padding: 1.5rem;
    height: 30%;
    color: #000000;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Chat Interface */
.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    height: calc(100vh - 200px);
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: #000000;
    flex-shrink: 0;
    position: relative;
}

.chat-close {
    margin-left: auto;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6b7280;
    transition: all 0.2s ease;
}

.chat-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.chat-user-info {
    flex: 1;
    min-width: 0;
}

.chat-user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
}

.chat-user-status {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.chat-messages {
    flex: 1;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #f8f9fa;
}

.message {
    max-width: 75%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.sent {
    align-self: flex-end;
    background: var(--gradient);
    color: white;
}

.message.received {
    align-self: flex-start;
    background: white;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.8rem;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
    color: #000000;
}

.send-btn {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Modal */
.premium-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
        font-size: 14px;
    }
    
    .header {
        height: 70px;
    }
    
    .nav {
        padding: 0 1rem;
        height: 60px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        display: block;
        color: #000000 !important;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    /* Dashboard Mobile Layout */
    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .main-card-area {
        order: -1 !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    
    .sidebar {
        order: 1 !important;
        width: 100% !important;
    }
    
    .card-stack {
        max-width: 320px;
        height: 480px;
    }
    
    .action-buttons {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .social-login {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-control {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile Chat */
    .chat-container {
        height: calc(100vh - 70px) !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .chat-header {
        padding: 0.75rem 1rem !important;
    }
    
    .chat-input {
        padding: 0.75rem 1rem !important;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem)) !important;
    }
    
    .chat-header {
        padding: 0.75rem 1rem !important;
        min-height: 60px !important;
    }
    
    .chat-avatar {
        width: 36px !important;
        height: 36px !important;
    }
    
    .chat-messages {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .chat-actions {
        display: none !important;
    }
    
    #mobileNav {
        display: none !important;
    }
    
    .chat-input {
        flex-shrink: 0 !important;
        padding: 0.8rem !important;
        background: white !important;
        border-top: 1px solid #e2e8f0 !important;
        position: relative !important;
        bottom: 0 !important;
    }
    
    .chat-input input {
        padding: 0.7rem !important;
        font-size: 16px !important;
    }
    
    .send-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .message {
        max-width: 85% !important;
        padding: 0.6rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Override inline styles for mobile */
    [style*="display: grid"],
    [style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }
    
    [style*="width: 400px"] {
        width: 100% !important;
        max-width: 320px !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}