/* ═══════════════════════════════════════════════════════════
   UTILIZATORI PAGE - ApartamenTUal
   Font: DM Sans | Colors: Slate Blue + Coral
   ═══════════════════════════════════════════════════════════ */

:root {
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --coral-500: #f97316;
    --coral-600: #ea580c;
    --coral-100: #ffedd5;
    --white: #ffffff;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
}

.logo-highlight {
    color: var(--coral-500);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--coral-500);
    border-bottom-color: var(--coral-500);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 1.5px solid var(--slate-300);
    border-radius: 8px;
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-nav-login:hover {
    border-color: var(--slate-400);
    background: var(--slate-50);
}

.btn-nav-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-profile:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--slate-700);
    cursor: pointer;
}

/* ══════════════════════════════════════════
   AUTH OVERLAY
   ══════════════════════════════════════════ */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-overlay-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--coral-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-icon i {
    font-size: 2rem;
    color: var(--coral-500);
}

.auth-overlay-content h2 {
    font-size: 1.5rem;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.auth-overlay-content p {
    color: var(--slate-500);
    margin-bottom: 2rem;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--coral-500);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--coral-600);
}

.btn-secondary {
    padding: 0.875rem 2rem;
    background: var(--white);
    color: var(--slate-700);
    border: 1.5px solid var(--slate-300);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--slate-400);
    background: var(--slate-50);
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(135deg, var(--slate-700) 0%, var(--slate-800) 100%);
    padding: 3rem 1.5rem;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--slate-300);
    max-width: 600px;
}

/* ══════════════════════════════════════════
   FILTERS SECTION
   ══════════════════════════════════════════ */
.filters-section {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 1.5rem;
}

.filters-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.filter-label i {
    margin-right: 0.375rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--slate-700);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: var(--slate-300);
}

.filter-select:focus {
    outline: none;
    border-color: var(--coral-500);
}

.filter-select:disabled {
    background: var(--slate-100);
    color: var(--slate-400);
    cursor: not-allowed;
}

.btn-reset-filters {
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    color: var(--slate-600);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-filters:hover {
    border-color: var(--slate-300);
    background: var(--slate-50);
}

/* Active Filters */
.active-filters {
    max-width: 1280px;
    margin: 1rem auto 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.active-filters-label {
    font-size: 0.85rem;
    color: var(--slate-500);
}

.active-filters-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--coral-100);
    color: var(--coral-600);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Teren Filter Banner */
.teren-filter-banner {
    max-width: 1280px;
    margin: 1rem auto 0;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.teren-filter-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.teren-filter-content i {
    color: var(--coral-500);
}

.teren-filter-content span {
    color: var(--slate-600);
    font-size: 0.95rem;
}

.btn-clear-teren-filter {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    color: var(--slate-600);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-teren-filter:hover {
    background: var(--slate-50);
}

/* Results Info */
.results-info {
    max-width: 1280px;
    margin: 1rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#results-count {
    font-size: 0.9rem;
    color: var(--slate-500);
}

/* ══════════════════════════════════════════
   USERS GRID
   ══════════════════════════════════════════ */
.users-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--coral-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--slate-500);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--slate-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    font-size: 2rem;
    color: var(--slate-400);
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--slate-500);
}

/* ══════════════════════════════════════════
   USER CARD
   ══════════════════════════════════════════ */
.user-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-card:hover {
    border-color: var(--slate-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

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

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--slate-600), var(--slate-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

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

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.user-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.user-card-body {
    padding: 1.25rem 1.5rem;
}

.user-section {
    margin-bottom: 1rem;
}

.user-section:last-child {
    margin-bottom: 0;
}

.user-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.user-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.zone-tag {
    padding: 0.25rem 0.625rem;
    background: var(--slate-100);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--slate-600);
}

.zone-tag.more {
    background: var(--slate-200);
    color: var(--slate-500);
}

.user-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.interest-tag {
    padding: 0.25rem 0.625rem;
    background: var(--slate-800);
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
}

.interest-tag.more {
    background: var(--slate-600);
}

.user-card-footer {
    padding: 1rem 1.5rem;
    background: var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.user-stats span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.user-stats i {
    color: var(--slate-400);
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--coral-500);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.btn-view-profile i {
    transition: transform 0.2s;
}

.user-card:hover .btn-view-profile i {
    transform: translateX(3px);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
/* Footer styles removed - using global footer.js component */

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .filters-container {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }
}

/* ── MATCHING ── */
.user-matching-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0;
}
.user-matching-stack span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.matching-yes {
    color: #16a34a;
}
.matching-no {
    color: #9ca3af;
}
