/* public/css/style.css */
/* Modern, Premium, Aesthetic Design System */
:root {
    /* Color Palette */
    --primary: #ff4b6e;
    --primary-gradient: linear-gradient(135deg, #ff4b6e 0%, #ff7b54 100%);
    --bg-dark: #0f172a;
    --bg-panel: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Layout */
    --nav-height: 70px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, hsla(347,100%,70%,0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(28,100%,74%,0.15) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links .logout-btn {
    border: 1px solid var(--border);
}

.nav-links .logout-btn:hover {
    background: rgba(255, 75, 110, 0.1);
    color: var(--primary);
    border-color: rgba(255, 75, 110, 0.3);
}

/* Main Layout */
.main-content {
    margin-top: var(--nav-height);
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
}

/* Auth Layout */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: 
        radial-gradient(at 0% 0%, hsla(347,100%,70%,0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(199,95%,60%,0.2) 0px, transparent 50%);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.auth-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 75, 110, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 75, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 110, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

.link {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.link:hover {
    text-decoration: underline;
    color: #7dd3fc;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-error { border-left: 4px solid #ef4444; }
.toast-success { border-left: 4px solid #22c55e; }

/* Swiper Container (Home) */
.swipe-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.profile-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.profile-photo {
    width: 100%;
    height: 75%;
    object-fit: cover;
    background-color: #334155;
}

.profile-info {
    padding: 1.5rem;
    background: linear-gradient(to top, var(--bg-panel) 80%, transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info .age {
    font-weight: 400;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    background: var(--bg-panel);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

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

.btn-pass { color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-like { color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.btn-super { color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.2); }

/* Message List */
.messages-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    height: calc(100vh - var(--nav-height) - 4rem);
}

.match-list {
    overflow-y: auto;
    padding-right: 1rem;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--text-main);
}

.match-item:hover, .match-item.active {
    background: rgba(255,255,255,0.05);
}

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

.chat-area {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.message {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    line-height: 1.4;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary-gradient);
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background: rgba(255,255,255,0.1);
    border-bottom-left-radius: 4px;
}

.chat-input {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 1rem 1.5rem;
    color: white;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-input button:hover {
    transform: scale(1.05);
}
