/* ========================================
   Seznamka Najdu Tě? - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --pink-light: #fce7f3;
    --romantic: #e11d48;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--dark); background: var(--light); min-height: 100vh; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--dark); }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-content { min-height: calc(100vh - 140px); padding: 20px 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ========== NAVBAR ========== */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--gray-lighter); box-shadow: var(--shadow); }
.navbar .container, .navbar-container { display: flex; align-items: center; justify-content: space-between; height: 64px; width: 100%; padding: 0 20px; }
.navbar-logo { font-size: 2rem; font-weight: 800; color: var(--romantic); display: flex; align-items: center; gap: 10px; }
.navbar-logo .logo-heart { animation: pulse 2s ease-in-out infinite; display: inline-block; font-size: 1.6rem; }
.navbar-logo .heart, .navbar-logo .logo-heart { color: var(--pink); }
.navbar-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--dark); font-size: 24px; }
.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.navbar-nav .nav-item { list-style: none; }
.navbar-nav a, .navbar-nav .nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); color: var(--gray); font-weight: 500; transition: var(--transition); position: relative; text-decoration: none; }
.navbar-nav a:hover, .navbar-nav a.active, .navbar-nav .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-item--user { position: relative; }
.user-dropdown-toggle { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 6px 12px; border-radius: var(--radius); transition: var(--transition); color: var(--dark); font-size: 14px; font-weight: 500; }
.user-dropdown-toggle:hover { background: var(--light); }
.user-dropdown-toggle .user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-lighter); }
.user-dropdown-menu { position: absolute; top: 100%; right: 0; background: var(--white); border: 1px solid var(--gray-lighter); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px 0; display: none; z-index: 1001; }
.user-dropdown-menu.active { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--dark); font-size: 14px; text-decoration: none; }
.dropdown-item:hover { background: var(--light); color: var(--primary); }
.dropdown-divider { border: none; border-top: 1px solid var(--gray-lighter); margin: 4px 0; }
.navbar-nav .badge { position: absolute; top: 2px; right: 2px; background: var(--danger); color: white; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.navbar-user { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius); transition: var(--transition); position: relative; }
.navbar-user:hover { background: var(--light); }
.navbar-user .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-lighter); }
.navbar-user .name { font-weight: 500; font-size: 14px; }
.user-dropdown { position: relative; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--dark); font-size: 14px; text-decoration: none; }
.dropdown-item:hover { background: var(--light); color: var(--primary); }
.dropdown-divider { border: none; border-top: 1px solid var(--gray-lighter); margin: 4px 0; }
.hamburger { display: none; }

/* ========== LANDING PAGE ========== */
.landing-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #533483 100%); position: relative; overflow: hidden; padding: 40px 20px; }
.landing-page::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="0.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="70" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="10" cy="80" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="60" r="1" fill="rgba(255,255,255,0.07)"/></svg>'); }
.landing-logo { text-align: center; margin-bottom: 40px; position: relative; z-index: 1; }
.landing-logo h1 { font-size: 3.5rem; font-weight: 800; color: var(--white); text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.landing-logo h1 span { color: var(--pink); }
.landing-logo .heart-deco { color: var(--pink); font-size: 2rem; display: inline-block; animation: pulse 2s infinite; }
.landing-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-top: 12px; font-weight: 300; letter-spacing: 0.5px; }
.landing-cards { display: flex; gap: 24px; position: relative; z-index: 1; margin-bottom: 40px; }
.landing-card { background: rgba(255,255,255,0.95); border-radius: var(--radius-xl); padding: 28px 36px; text-align: center; cursor: pointer; transition: all 0.4s ease; position: relative; overflow: hidden; min-width: 180px; }
.landing-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: var(--radius-xl); padding: 3px; background: linear-gradient(135deg, transparent, transparent); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: var(--transition); }
.landing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.landing-card.male:hover::before { background: linear-gradient(135deg, var(--primary), #60a5fa); }
.landing-card.female:hover::before { background: linear-gradient(135deg, var(--pink), #f9a8d4); }
.landing-card .icon-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 40px; color: white; transition: var(--transition); }
.landing-card.male .icon-circle { background: linear-gradient(135deg, var(--primary), #60a5fa); box-shadow: 0 8px 30px rgba(37,99,235,0.4); }
.landing-card.female .icon-circle { background: linear-gradient(135deg, var(--pink), #f9a8d4); box-shadow: 0 8px 30px rgba(236,72,153,0.4); }
.landing-card:hover .icon-circle { transform: scale(1.1); }
.landing-card h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--dark); }
.landing-card .btn-enter { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; color: white; border: none; cursor: pointer; transition: var(--transition); }
.landing-card.male .btn-enter { background: linear-gradient(135deg, var(--primary), #60a5fa); }
.landing-card.female .btn-enter { background: linear-gradient(135deg, var(--pink), #f9a8d4); }
.landing-card .btn-enter:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.landing-features { display: flex; justify-content: center; gap: 32px; position: relative; z-index: 1; margin-bottom: 28px; flex-wrap: wrap; }
.landing-feature { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.9); font-size: 1.15rem; font-weight: 500; }
.landing-feature .material-symbols-outlined { font-size: 24px; color: var(--pink); }
.landing-bottom { position: relative; z-index: 1; }
.landing-bottom a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: var(--transition); }
.landing-bottom a:hover { color: white; }
.floating-heart { position: absolute; color: var(--pink); opacity: 0; animation: floatUp 6s infinite; font-size: 20px; z-index: 0; }
.floating-heart:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 16px; }
.floating-heart:nth-child(2) { left: 20%; animation-delay: 1s; font-size: 24px; }
.floating-heart:nth-child(3) { left: 35%; animation-delay: 2s; font-size: 18px; }
.floating-heart:nth-child(4) { left: 50%; animation-delay: 0.5s; font-size: 22px; }
.floating-heart:nth-child(5) { left: 65%; animation-delay: 3s; font-size: 14px; }
.floating-heart:nth-child(6) { left: 75%; animation-delay: 1.5s; font-size: 20px; }
.floating-heart:nth-child(7) { left: 85%; animation-delay: 2.5s; font-size: 26px; }
.floating-heart:nth-child(8) { left: 95%; animation-delay: 4s; font-size: 16px; }

/* ========== AUTH PAGES ========== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f4ff 0%, #fce7f3 100%); padding: 40px 20px; }
.auth-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 440px; }
.auth-card.wide, .auth-card--wide { max-width: 640px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { font-size: 1.75rem; color: var(--romantic); }
.auth-logo h1 span { color: var(--pink); }
.auth-title { text-align: center; margin-bottom: 24px; }
.auth-title h2 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-title p { color: var(--gray); font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; color: var(--dark); margin-bottom: 6px; }
.form-group .required::after { content: ' *'; color: var(--danger); }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-lighter); border-radius: var(--radius); font-size: 15px; transition: var(--transition); background: var(--white); color: var(--dark); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input.error { border-color: var(--danger); }
.form-input::placeholder { color: var(--gray-light); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; appearance: none; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%2364748b" d="M6 8L1 3h10z"/></svg>'); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 44px; }
.input-wrapper .toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray); font-size: 20px; padding: 4px; }
.input-wrapper .toggle-password:hover { color: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; overflow: hidden; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-help { color: var(--gray); font-size: 13px; margin-top: 4px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-checkbox input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }
.form-checkbox label { font-size: 14px; color: var(--gray); cursor: pointer; }
.radio-group { display: flex; gap: 8px; flex-wrap: nowrap; }
.radio-group label { display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 8px 12px; border: 2px solid var(--gray-lighter); border-radius: var(--radius); transition: var(--transition); font-weight: 500; font-size: 14px; white-space: nowrap; flex: 1; justify-content: center; }
.radio-group label:hover { border-color: var(--primary); }
.radio-group input[type="radio"] { accent-color: var(--primary); }
.radio-group input[type="radio"]:checked + span { color: var(--primary); }
.radio-group label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.radio-group label .material-symbols-outlined { font-size: 18px; }
.password-strength { height: 4px; border-radius: 2px; background: var(--gray-lighter); margin-top: 8px; overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: all 0.3s; width: 0; }
.password-strength-bar.weak { width: 25%; background: var(--danger); }
.password-strength-bar.fair { width: 50%; background: var(--warning); }
.password-strength-bar.good { width: 75%; background: var(--info); }
.password-strength-bar.strong { width: 100%; background: var(--success); }
.password-strength-text { font-size: 12px; margin-top: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-pink { background: var(--pink); color: white; }
.btn-pink:hover { background: var(--pink-dark); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-outline { background: transparent; border-color: var(--gray-lighter); color: var(--dark); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--gray); }
.btn-ghost:hover { color: var(--dark); background: var(--light); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn-icon.sm { width: 32px; height: 32px; }
.btn-icon.lg { width: 48px; height: 48px; }
.btn-google { background: var(--white); border: 2px solid var(--gray-lighter); color: var(--dark); font-weight: 500; }
.btn-google:hover { background: var(--light); border-color: var(--gray-light); color: var(--dark); }
.btn-google svg { width: 20px; height: 20px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.divider-text { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--gray-light); font-size: 14px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--gray-lighter); }

/* Flash Messages */
.flash-messages { margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ========== DASHBOARD / FEED ========== */
.dashboard { display: flex; gap: 24px; }
.filter-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.filter-sidebar-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-lighter); }
.filter-sidebar-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.filter-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-range .form-input { flex: 1; min-width: 0; }
.filter-range-sep { color: var(--gray-light); font-weight: 500; }
.hidden { display: none !important; }
.dashboard-main { flex: 1; min-width: 0; padding-right: 16px; }
.dashboard-stats { display: flex; gap: 16px; margin-bottom: 20px; }
.dashboard-stat { display: flex; align-items: center; gap: 8px; background: var(--white); padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; color: var(--gray); }
.dashboard-stat .material-symbols-outlined { font-size: 20px; color: var(--pink); }
.dashboard-stat strong { color: var(--dark); font-size: 1.1rem; }
.profile-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.profile-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all 0.35s ease; position: relative; }
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.profile-card--removed { opacity: 0; transform: scale(0.9) translateY(20px); pointer-events: none; transition: all 0.4s ease; }
.profile-card-photo { display: block; position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.profile-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.profile-card:hover .profile-card-photo img { transform: scale(1.05); }
.profile-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); }
.profile-card-overlay h3 { color: var(--white); font-size: 0.8rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.profile-card-info { padding: 6px 10px 2px; }
.profile-card-city { display: flex; align-items: center; gap: 3px; color: var(--gray); font-size: 11px; }
.profile-card-city .material-symbols-outlined { font-size: 16px; }
.profile-card-bio { color: var(--gray); font-size: 11px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.profile-card-actions { display: flex; justify-content: center; gap: 5px; padding: 4px 6px 8px; }
.action-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s ease; background: var(--white); font-size: 16px; }
.action-btn:active { transform: scale(0.92); }
.action-btn--skip { border-color: var(--gray-lighter); color: var(--gray); }
.action-btn--skip:hover { border-color: var(--danger); color: var(--danger); background: #fef2f2; transform: scale(1.12); }
.action-btn--like { border-color: var(--pink); color: var(--pink); }
.action-btn--like:hover { background: var(--pink); color: var(--white); transform: scale(1.15); box-shadow: 0 4px 15px rgba(236,72,153,0.4); }
.action-btn--superlike { border-color: var(--warning); color: var(--warning); }
.action-btn--superlike:hover { background: var(--warning); color: var(--white); transform: scale(1.15); box-shadow: 0 4px 15px rgba(245,158,11,0.4); }
.action-btn .material-symbols-outlined { font-size: 16px; }
.load-more { text-align: center; margin-top: 32px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--gray); }
.empty-state .material-symbols-outlined { font-size: 72px; color: var(--gray-lighter); margin-bottom: 16px; display: block; }
.empty-state h3 { color: var(--dark); margin-bottom: 8px; font-size: 1.5rem; }
.empty-state p { font-size: 1rem; }

/* ========== PROFILE PAGE ========== */
.profile-page { max-width: 800px; margin: 0 auto; }
.profile-header { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.profile-cover { height: 200px; background: linear-gradient(135deg, var(--primary), var(--pink)); position: relative; }
.profile-avatar-wrap { position: relative; text-align: center; margin-top: -60px; padding: 0 24px; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid white; object-fit: cover; box-shadow: var(--shadow-lg); margin: 0 auto; display: block; }
.profile-avatar-placeholder { width: 120px; height: 120px; border-radius: 50%; border: 4px solid white; background: var(--gray-lighter); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--gray-light); margin: 0 auto; }
.profile-name { font-size: 1.75rem; font-weight: 700; margin-top: 12px; }
.profile-meta { color: var(--gray); margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.profile-meta span { display: flex; align-items: center; gap: 4px; }
.profile-actions { display: flex; justify-content: center; gap: 12px; padding: 20px 24px; }
.profile-section { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.profile-section h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.profile-section p { color: var(--gray); line-height: 1.7; }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-detail { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius); background: var(--light); }
.profile-detail .label { font-size: 13px; color: var(--gray); }
.profile-detail .value { font-weight: 500; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.photo-gallery img:hover { opacity: 0.9; transform: scale(1.02); }

/* Photo Upload */
.upload-area { border: 2px dashed var(--gray-lighter); border-radius: var(--radius-lg); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-area .icon { font-size: 48px; color: var(--gray-light); margin-bottom: 12px; }
.upload-area p { color: var(--gray); }
.photo-grid-manage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.photo-grid-manage .photo-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo-grid-manage .photo-item img { width: 100%; height: 150px; object-fit: cover; }
.photo-grid-manage .photo-item .delete-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(239,68,68,0.9); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* ========== MESSAGES / CHAT ========== */
.messages-page { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 84px); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.conversations-sidebar { border-right: 1px solid var(--gray-lighter); display: flex; flex-direction: column; }
.conversations-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-lighter); }
.conversations-header h2 { font-size: 1.25rem; margin-bottom: 12px; }
.conversations-search { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-lighter); border-radius: var(--radius); font-size: 14px; }
.conversations-list { flex: 1; overflow-y: auto; }
.conversation-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--light); }
.conversation-item:hover { background: var(--light); }
.conversation-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }
.conversation-item .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; position: relative; }
.conversation-item .conv-info { flex: 1; min-width: 0; }
.conversation-item .conv-name { font-weight: 600; font-size: 15px; }
.conversation-item .conv-preview { font-size: 13px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item .conv-meta { text-align: right; flex-shrink: 0; }
.conversation-item .conv-time { font-size: 12px; color: var(--gray-light); }
.conversation-item .conv-unread { background: var(--primary); color: white; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-top: 4px; margin-left: auto; }
.chat-area { display: flex; flex-direction: column; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--gray-lighter); }
.chat-header .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-header .chat-user-info h3 { font-size: 1rem; }
.chat-header .online-status { font-size: 13px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.chat-header .online-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.chat-date-divider { text-align: center; margin: 16px 0; font-size: 13px; color: var(--gray-light); position: relative; }
.chat-date-divider::before, .chat-date-divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 60px); height: 1px; background: var(--gray-lighter); }
.chat-date-divider::before { left: 0; }
.chat-date-divider::after { right: 0; }
.message-bubble { max-width: 70%; padding: 10px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; position: relative; word-wrap: break-word; }
.message-bubble.sent { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.message-bubble.received { align-self: flex-start; background: var(--light); color: var(--dark); border-bottom-left-radius: 4px; }
.message-bubble .time { font-size: 11px; opacity: 0.7; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.message-bubble.sent .time { justify-content: flex-end; }
.chat-input-bar { display: flex; align-items: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--gray-lighter); background: var(--white); }
.chat-input-bar textarea { flex: 1; padding: 12px 16px; border: 1px solid var(--gray-lighter); border-radius: 24px; resize: none; max-height: 120px; font-size: 15px; line-height: 1.4; }
.chat-input-bar textarea:focus { outline: none; border-color: var(--primary); }
.chat-input-bar .send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: var(--transition); flex-shrink: 0; }
.chat-input-bar .send-btn:hover { background: var(--primary-dark); }
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--gray); }
.chat-empty .icon { font-size: 64px; color: var(--gray-lighter); margin-bottom: 16px; }

/* ========== SETTINGS ========== */
.settings-page { max-width: 700px; margin: 0 auto; }
.settings-section { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.settings-section h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-lighter); }
.settings-section.danger { border: 2px solid #fecaca; }
.settings-section.danger h3 { color: var(--danger); border-bottom-color: #fecaca; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--light); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .toggle-label { font-weight: 500; }
.toggle-row .toggle-desc { font-size: 13px; color: var(--gray); margin-top: 2px; }
.toggle-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--gray-lighter); border-radius: 13px; cursor: pointer; transition: var(--transition); }
.toggle-switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: var(--transition); box-shadow: var(--shadow); }
.toggle-switch input:checked + .slider { background: var(--primary); }
.toggle-switch input:checked + .slider::before { transform: translateX(22px); }
.danger-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== ADMIN ========== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; min-height: calc(100vh - 84px); }
.admin-sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 84px; }
.admin-sidebar h3 { font-size: 14px; text-transform: uppercase; color: var(--gray); letter-spacing: 1px; margin-bottom: 12px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); color: var(--dark); font-weight: 500; margin-bottom: 4px; transition: var(--transition); }
.admin-sidebar a:hover { background: var(--light); color: var(--primary); }
.admin-sidebar a.active { background: var(--primary-light); color: var(--primary); }
.admin-content { min-width: 0; }
.admin-page-header { display: flex; align-items: center; justify-content: flex-start !important; gap: 16px; margin-bottom: 20px; }
.admin-page-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; margin-bottom: 12px; }
.stat-card .stat-icon.blue { background: var(--primary); }
.stat-card .stat-icon.green { background: var(--success); }
.stat-card .stat-icon.pink { background: var(--pink); }
.stat-card .stat-icon.orange { background: var(--warning); }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-card .stat-label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* Data Table */
.data-table-wrap { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.data-table-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-lighter); display: flex; align-items: center; justify-content: space-between; }
.data-table-header h3 { font-size: 1.1rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--gray-lighter); background: var(--light); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--light); font-size: 14px; vertical-align: middle; }
.data-table tr:hover td { background: var(--light); }
.data-table .user-cell { display: flex; align-items: center; gap: 10px; }
.data-table .user-cell img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Admin section boxes */
.admin-section-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.admin-section-box-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--gray-lighter); }
.admin-section-box-header h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.admin-section-box .data-table-wrap { box-shadow: none; border-radius: 0; margin-bottom: 0; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-gray { background: var(--light); color: var(--gray); }
.badge-pink { background: var(--pink-light); color: var(--pink-dark); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: var(--transition); }
.pagination a { color: var(--dark); }
.pagination a:hover { background: var(--primary-light); color: var(--primary); }
.pagination .active { background: var(--primary); color: white; }
.pagination .disabled { color: var(--gray-lighter); pointer-events: none; }

/* ========== COOKIE CONSENT ========== */
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: white; padding: 16px 20px; z-index: 9999; display: none; }
.cookie-consent.show { display: block; animation: slideUp 0.3s ease; }
.cookie-consent .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-consent p { font-size: 14px; line-height: 1.5; }
.cookie-consent p a { color: var(--primary-light); text-decoration: underline; }
.cookie-consent .btn-accept { background: var(--primary); color: white; border: none; padding: 10px 24px; border-radius: var(--radius); font-weight: 600; cursor: pointer; white-space: nowrap; }
.cookie-consent .btn-accept:hover { background: var(--primary-dark); }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-xl); padding: 32px; max-width: 480px; width: 90%; box-shadow: var(--shadow-xl); animation: fadeIn 0.2s ease; }
.modal h3 { margin-bottom: 16px; }
.modal p { color: var(--gray); margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-lighter); }
.modal-header h3 { margin-bottom: 0; }
.modal-body { margin-bottom: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--gray-lighter); }

/* ========== ADMIN TASKS ========== */
.task-counter { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 14px; padding: 10px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.task-counter .material-symbols-outlined { color: var(--success); font-size: 20px; }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.3s ease; }
.task-item:hover { box-shadow: var(--shadow-md); }
.task-item--completed { opacity: 0.5; background: var(--light); }
.task-item--completed .task-item-title { text-decoration: line-through; color: var(--gray-light); }
.task-item--completed .task-item-desc { text-decoration: line-through; color: var(--gray-light); }
.task-item--completed .task-item-meta .badge { opacity: 0.5; }
.task-item-check { flex-shrink: 0; }
.task-item-check input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; accent-color: var(--success); }
.task-item-content { flex: 1; min-width: 0; }
.task-item-title { font-weight: 600; font-size: 15px; color: var(--dark); }
.task-item-desc { font-size: 13px; color: var(--gray); margin-top: 2px; }
.task-item-meta { flex-shrink: 0; }
.task-item-actions { flex-shrink: 0; }

/* ========== ADMIN PERMISSIONS ========== */
.permission-checkboxes { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--gray-lighter); border-radius: 4px; font-size: 12px; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.permission-label:hover { border-color: var(--primary); background: var(--primary-light); }
.permission-label input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
.permission-name { text-transform: capitalize; }
.permissions-form { display: flex; flex-direction: column; }

/* ========== ADMIN SEARCH ========== */
.admin-search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid var(--gray-lighter); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 200px; overflow-y: auto; z-index: 100; display: none; }
.admin-search-results.active { display: block; }
.admin-search-item { padding: 10px 14px; cursor: pointer; font-size: 14px; transition: var(--transition); }
.admin-search-item:hover { background: var(--primary-light); color: var(--primary); }
.admin-search-empty { padding: 10px 14px; color: var(--gray); font-size: 14px; }
.form-group { position: relative; }

/* ========== TOAST NOTIFICATIONS ========== */
#toast-container { position: fixed; top: 80px; right: 20px; z-index: 10001; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius); color: white; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease; display: flex; align-items: center; gap: 10px; min-width: 280px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--info); }
.toast .close-toast { background: none; border: none; color: white; opacity: 0.7; cursor: pointer; font-size: 18px; margin-left: auto; }
.toast .close-toast:hover { opacity: 1; }

/* ========== ERROR PAGES ========== */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f4ff 0%, #fce7f3 100%); }
.error-card { text-align: center; background: var(--white); border-radius: var(--radius-xl); padding: 60px 40px; box-shadow: var(--shadow-lg); max-width: 480px; }
.error-card .error-icon { font-size: 80px; margin-bottom: 20px; }
.error-card h1 { font-size: 2rem; margin-bottom: 12px; }
.error-card p { color: var(--gray); margin-bottom: 24px; }

/* ========== FOOTER ========== */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 40px 0 20px; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-section h4 { color: white; margin-bottom: 12px; font-size: 1rem; }
.footer-section a { display: block; color: rgba(255,255,255,0.6); font-size: 14px; padding: 4px 0; transition: var(--transition); }
.footer-section a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }

/* ========== LOADING ========== */
.spinner { width: 40px; height: 40px; border: 3px solid var(--gray-lighter); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto; }
.skeleton { background: linear-gradient(90deg, var(--gray-lighter) 25%, var(--light) 50%, var(--gray-lighter) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes floatUp { 0% { bottom: -20px; opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.2; } 100% { bottom: 100vh; opacity: 0; transform: translateX(20px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; }
    .admin-sidebar h3 { width: 100%; }
    .messages-page { grid-template-columns: 1fr; }
    .conversations-sidebar { display: none; }
    .conversations-sidebar.mobile-show { display: flex; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 999; background: white; }
}
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .navbar-nav { display: none; }
    .navbar-nav.mobile-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-lighter); padding: 12px; box-shadow: var(--shadow); z-index: 1000; }
    .navbar-hamburger { display: block; }
    .dashboard { flex-direction: column; }
    .filter-sidebar { width: 100%; position: static; }
    .filter-form { flex-direction: row; flex-wrap: wrap; }
    .filter-group { flex: 1; min-width: 140px; }
    .profile-cards { grid-template-columns: repeat(3, 1fr); }
    .dashboard-stats { flex-wrap: wrap; }
    .landing-cards { flex-direction: row; gap: 12px; justify-content: center; }
    .landing-logo h1 { font-size: 1.75rem; }
    .landing-logo { margin-bottom: 16px; }
    .landing-logo .heart-deco { font-size: 1.25rem; }
    .landing-features { gap: 6px 20px; margin-bottom: 18px; justify-content: center; }
    .landing-feature { font-size: 0.8rem; }
    .landing-feature .material-symbols-outlined { font-size: 16px; }
    .filter-form { flex-direction: column; }
    .profile-cards { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .profile-details { grid-template-columns: 1fr; }
    .photo-gallery { grid-template-columns: repeat(2, 1fr); }
    .photo-grid-manage { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; }
    .cookie-consent .container { flex-direction: column; text-align: center; }
    .auth-card { padding: 24px; }
    .danger-actions { flex-direction: column; }
}
@media (max-width: 576px) {
    .container { padding: 0 12px; }
    .landing-card { padding: 16px 12px; min-width: auto; flex: 1; }
    .landing-card .icon-circle { width: 56px; height: 56px; font-size: 28px; margin-bottom: 10px; }
    .landing-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
    .landing-card .btn-enter { padding: 8px 16px; font-size: 0.8rem; }
    .profile-card-photo { aspect-ratio: 2/3; }
    .chat-input-bar { padding: 10px 12px; }
}
