/* ===== VARIABLES ===== */
:root {
    --blue: #1A73E8;
    --blue-hover: #1557B0;
    --blue-light: #E8F0FE;
    --blue-focus: rgba(26,115,232,0.12);
    --white: #FFFFFF;
    --bg: #F8F9FA;
    --card: #FFFFFF;
    --card-hover: #F1F3F4;
    --border: #DADCE0;
    --border-light: #E8EAED;
    --text: #202124;
    --text-secondary: #5F6368;
    --text-muted: #9AA0A6;
    --star: #FBBC04;
    --star-bg: #FEF7E0;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== STICKY TOP ===== */

/* ===== HEADER ===== */
.header { background: var(--blue); }
.header-container {
    max-width: 1280px; margin: 0 auto; padding: 20px 32px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo-section { display: flex; align-items: center; gap: 16px; }
.logo-icon {
    width: 56px; height: 56px; background: rgba(255,255,255,0.2);
    border-radius: 14px; display: flex; align-items: center; justify-content: center; position: relative;
}
.om-icon { font-size: 30px; color: var(--white); font-weight: 700; line-height: 1; }
.logo-icon .fa-heart { color: var(--white); font-size: 22px; }
.logo-icon .heart-small { position: absolute; font-size: 8px; top: 6px; right: 6px; color: rgba(255,255,255,0.5); }
.logo-text h1 { font-size: 26px; font-weight: 700; color: var(--white); line-height: 1.2; }
.tagline { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 400; }

.register-btn {
    background: var(--white); color: var(--blue); border: none;
    padding: 12px 28px; border-radius: 10px;
    font-size: 15px; font-weight: 700; font-family: 'Poppins', sans-serif;
    cursor: pointer; transition: all 0.15s ease;
    display: flex; align-items: center; gap: 8px;
}
.register-btn:hover { background: rgba(255,255,255,0.9); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ===== STICKY SEARCH & FILTERS ===== */
.sticky-filters {
    background: var(--white); border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sticky-filters-inner { max-width: 1280px; margin: 0 auto; padding: 12px 32px; }

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex; align-items: center;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 24px; padding: 10px 20px; transition: all 0.2s;
}
.search-bar:focus-within {
    background: var(--white); border-color: var(--blue);
    box-shadow: 0 1px 6px rgba(26,115,232,0.15);
}
.search-icon { color: var(--text-muted); font-size: 16px; margin-right: 12px; }
.search-bar:focus-within .search-icon { color: var(--blue); }
.search-bar input {
    border: none; outline: none; font-size: 14px;
    font-family: 'Poppins', sans-serif; width: 100%; color: var(--text); background: transparent;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ===== FILTERS ===== */
.filters-bar { padding: 10px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 150px; }
.filter-group select {
    width: 100%; padding: 9px 14px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 13px; font-family: 'Poppins', sans-serif;
    color: var(--text-secondary); background: var(--white); cursor: pointer; outline: none;
    appearance: auto; transition: border-color 0.2s;
}
.filter-group select:focus { border-color: var(--blue); }

.filter-actions { display: flex; flex-shrink: 0; gap: 8px; }
.fav-filter-btn {
    padding: 9px 18px; border: 1px solid var(--blue); border-radius: 8px;
    font-size: 13px; font-weight: 600; font-family: 'Poppins', sans-serif;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    background: var(--white); color: var(--blue); transition: all 0.15s;
}
.fav-filter-btn:hover { background: var(--blue-light); }
.fav-filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.reset-btn {
    padding: 9px 18px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 13px; font-weight: 600; font-family: 'Poppins', sans-serif;
    cursor: pointer; display: flex; align-items: center; gap: 6px;
    background: var(--white); color: var(--text-secondary); transition: all 0.15s;
}
.reset-btn:hover { background: var(--bg); }

/* ===== PROFILES SECTION ===== */
.profiles-section { max-width: 1280px; margin: 20px auto; padding: 0 32px; }
.profiles-count { margin-bottom: 14px; display: flex; align-items: baseline; gap: 8px; }
.count { font-size: 22px; font-weight: 700; color: var(--text); }
.count-text { font-size: 14px; color: var(--text-secondary); }
.showing-text { font-size: 12px; color: var(--text-muted); }
.profiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--card); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-light); transition: all 0.15s;
    position: relative; display: flex; flex-direction: column;
}
.profile-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-color: var(--border); }

.profile-card .favorite-btn {
    position: absolute; top: 10px; right: 10px;
    background: var(--white); border: 1px solid var(--border-light);
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #ccc; transition: all 0.15s; z-index: 2;
}
.profile-card .favorite-btn:hover { color: var(--star); border-color: var(--star); }
.profile-card .favorite-btn.active { color: var(--star); background: var(--star-bg); border-color: var(--star); }

/* Card Header */
.card-header {
    padding: 14px 18px 10px; padding-right: 48px; position: relative;
    background: var(--white); border-bottom: 1px solid var(--border-light);
    height: 76px; display: flex; align-items: center;
}
.card-header-top { display: flex; align-items: center; gap: 10px; overflow: hidden; width: 100%; }
.card-header-top > div { overflow: hidden; min-width: 0; }
.gender-avatar { width: 40px; height: 40px; flex-shrink: 0; }
.gender-label { font-size: 10px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-avatar { width: 72px; height: 72px; margin: 0 auto 10px; display: block; }

.profile-name {
    font-size: 14px; font-weight: 600; margin: 0; line-height: 1.3;
    color: var(--text); overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; max-width: 100%;
}

/* Card Body */
.profile-details { padding: 12px 18px 14px; flex: 1; }
.profile-info { display: flex; flex-direction: column; gap: 4px; }
.info-row { display: flex; align-items: baseline; }
.info-label {
    font-size: 10px; font-weight: 600; color: var(--text-muted); min-width: 85px;
    flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.3px;
}
.info-value { font-size: 13px; color: var(--text); font-weight: 500; }

/* View Details Button */
.card-footer { padding: 0 18px 14px; }
.view-details-btn {
    width: 100%; padding: 8px; border: none; background: var(--blue);
    color: var(--white); border-radius: 8px; font-size: 13px; font-weight: 600;
    font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.view-details-btn:hover { background: var(--blue-hover); }

/* ===== PROFILE SIDEBAR ===== */
.sidebar-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.35); z-index: 999; opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

.profile-sidebar {
    position: fixed; top: 0; right: -580px; width: 560px; height: 100%;
    background: var(--white); z-index: 1000; box-shadow: -2px 0 16px rgba(0,0,0,0.1);
    transition: right 0.3s ease; overflow-y: auto; overflow-x: hidden;
}
.profile-sidebar.active { right: 0; }

.sidebar-close {
    position: absolute; top: 14px; right: 14px;
    background: var(--bg); border: none;
    width: 34px; height: 34px; border-radius: 50%;
    cursor: pointer; font-size: 14px; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; z-index: 2;
}
.sidebar-close:hover { background: var(--border-light); }

.sidebar-content { padding: 0; }
.sidebar-header {
    padding: 28px 28px 22px; text-align: center;
    background: var(--blue); color: var(--white);
}
.sidebar-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--white); }
.sidebar-gender-badge {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9);
}
.sidebar-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.sidebar-tag {
    font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
    text-transform: uppercase; background: rgba(255,255,255,0.2); color: var(--white); letter-spacing: 0.3px;
}

.sidebar-section { padding: 18px 28px; border-bottom: 1px solid var(--border-light); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section-title {
    font-size: 11px; font-weight: 700; color: var(--blue);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar-section-title i { font-size: 12px; }

.sidebar-info-row { display: flex; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.sidebar-info-row:last-child { border-bottom: none; }
.sidebar-info-label { font-size: 12px; font-weight: 600; color: var(--text-muted); min-width: 170px; width: 170px; flex-shrink: 0; }
.sidebar-info-value { font-size: 13px; color: var(--text); font-weight: 500; flex: 1; padding-left: 12px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 28px; flex-wrap: wrap; }
.pagination button {
    min-width: 36px; height: 36px; border: none; border-radius: 50%;
    font-size: 13px; font-weight: 600; font-family: 'Poppins', sans-serif;
    cursor: pointer; background: transparent; color: var(--text-secondary); transition: all 0.15s;
}
.pagination button:hover { background: var(--blue-light); color: var(--blue); }
.pagination button.active { background: var(--blue); color: var(--white); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination .page-info { font-size: 13px; color: var(--text-muted); margin: 0 2px; }

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    grid-column: 1 / -1; text-align: center; padding: 80px 20px;
}
.spinner {
    width: 40px; height: 40px; margin: 0 auto 16px;
    border: 4px solid var(--border-light); border-top: 4px solid var(--blue);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner p { color: var(--text-muted); font-size: 14px; font-weight: 500; }

/* ===== NO RESULTS ===== */
.no-results { text-align: center; padding: 60px 20px; grid-column: 1 / -1; }
.no-results i { font-size: 48px; color: var(--border); margin-bottom: 16px; }
.no-results h3 { color: var(--text-muted); font-weight: 500; font-size: 15px; }

/* ===== FOOTER ===== */
.footer { background: #202124; color: #9AA0A6; margin-top: 48px; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 44px 32px 22px; }
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 44px; }
.footer-section h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-section.about h3 i { color: var(--blue); margin-right: 6px; }
.footer-section.about p { font-size: 12px; line-height: 1.8; color: #80868B; }
.footer-features { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.footer-features span { font-size: 12px; color: #80868B; }

.contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.contact-item i { color: var(--blue); font-size: 13px; margin-top: 3px; width: 16px; text-align: center; }
.contact-item strong { font-size: 12px; color: #BDC1C6; font-weight: 600; }
.contact-item p { font-size: 12px; color: #80868B; margin-top: 1px; }

.footer-section.links ul { list-style: none; }
.footer-section.links li { margin-bottom: 7px; }
.footer-section.links a {
    color: #80868B; text-decoration: none; font-size: 12px;
    transition: color 0.15s; display: flex; align-items: center; gap: 6px;
}
.footer-section.links a::before { content: '•'; color: var(--blue); font-weight: bold; }
.footer-section.links a:hover { color: var(--white); }

.footer-divider { height: 1px; background: #3C4043; margin: 24px 0 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #5F6368; }
.made-with { font-size: 11px; }
.red-heart { color: var(--blue); }
.footer-disclaimer { text-align: center; margin-top: 12px; padding-top: 8px; }
.footer-disclaimer p { font-size: 11px; color: var(--star); }

/* ===== INFO MODAL ===== */
.info-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45); z-index: 1100; opacity: 0; transition: opacity 0.3s;
}
.info-modal-overlay.active { display: block; opacity: 1; }
.info-modal {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 90%; max-width: 640px; max-height: 85vh;
    background: var(--white); border-radius: 12px; z-index: 1101;
    overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.info-modal.active { display: block; }
.info-modal-close {
    position: sticky; top: 0; float: right; margin: 12px 12px 0 0;
    background: var(--bg); border: none; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center; transition: all 0.15s; z-index: 2;
}
.info-modal-close:hover { background: var(--border-light); }
.info-modal-content { padding: 16px 28px 28px; }
.info-modal-content h2 {
    font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.info-modal-content h2 i { color: var(--blue); }
.info-modal-content h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 16px 0 8px; }
.info-modal-content p { font-size: 13px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 8px; }
.info-modal-content ol, .info-modal-content ul { padding-left: 18px; margin-bottom: 12px; }
.info-modal-content li { font-size: 13px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 3px; }
.info-modal-content .highlight {
    background: var(--blue-light); border-left: 3px solid var(--blue);
    padding: 10px 14px; border-radius: 0 8px 8px 0;
    margin: 12px 0; font-size: 13px; color: var(--text); font-weight: 500;
}
.info-modal-content .faq-q { font-weight: 700; color: var(--text); margin-bottom: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .header-container { flex-direction: column; gap: 10px; text-align: center; }
    .logo-section { flex-direction: column; }
    .logo-text h1 { font-size: 18px; }
    .filters-bar { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .filter-actions { width: 100%; justify-content: center; }
    .profiles-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-sidebar { width: 100%; right: -100%; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 600px) {
    .search-bar { padding: 8px 14px; border-radius: 12px; }
    .search-bar input { font-size: 13px; }
    .profile-details { padding: 12px 14px; }
    .profiles-count { flex-wrap: wrap; }
    .profiles-grid { grid-template-columns: 1fr; }
    .sticky-filters-inner { padding: 10px 16px; }
    .header-container { padding: 10px 16px; }
    .profiles-section { padding: 0 16px; }
}
