/* Modern Dating App Styles */
:root {
    --primary-color: #ff4458;
    --secondary-color: #ff6b7a;
    --accent-color: #42a5f5;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --border-radius: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #1a202c;
    overflow-x: hidden;
    line-height: 1.6;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%); }
    50% { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
}

.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: 2.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::before {
    content: '💕';
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #667eea);
    background-size: 300% 300%;
    border-radius: 50%;
    padding: 0.3rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite, gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

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

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 68, 88, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 88, 0.2);
}

.nav-links a.btn {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 6px 20px rgba(255, 68, 88, 0.3);
    font-weight: 700;
}

.nav-links a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 68, 88, 0.4);
    color: white;
    background: linear-gradient(135deg, #ff3347, #ff5a6b);
}

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

.main-content {
    margin-top: 80px;
    padding: 0;
}

/* Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.profile-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: grab;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.profile-card:active {
    cursor: grabbing;
}

.profile-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.profile-info {
    padding: 1.5rem;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.profile-age {
    color: #666;
    font-size: 1.1rem;
}

.profile-bio {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* 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;
    box-shadow: var(--shadow);
}

.pass-btn {
    background: var(--light-color);
    color: var(--danger-color);
}

.like-btn {
    background: var(--success-color);
    color: var(--white);
}

.super-like-btn {
    background: var(--accent-color);
    color: var(--white);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Chat Interface */
.chat-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    word-wrap: break-word;
}

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

.message.received {
    align-self: flex-start;
    background: var(--light-color);
    color: var(--dark-color);
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

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

/* Forms */
.form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    max-width: 500px;
    margin: 2rem auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,107,107,0.1), transparent, rgba(78,205,196,0.1), transparent);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes textShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #1a202c;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    color: #1a202c;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.form-control:focus {
    outline: none;
    border: 2px solid transparent;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)) padding-box,
                linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1) border-box;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3), 0 0 60px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(26, 32, 44, 0.6);
}

.btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
    animation: gradientMove 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
    background-size: 100% 100%;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Premium Features */
.premium-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.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;
}

.premium-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 68, 88, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        display: block;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .card-stack {
        max-width: 350px;
        height: 500px;
    }
    
    .action-buttons {
        gap: 1rem;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 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); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-1 { gap: 1rem; }