/* ============================================
   DISCOVER PAGE - Premium Dating App Design
   ============================================ */

.discover-page {
    min-height: calc(100vh - 70px);
    background: #ffffff;
    padding-bottom: 100px;
}

/* ============================================
   HEADER
   ============================================ */
.discover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.3px;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid #e8e8ec;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    border-color: #d0d0d8;
    background: #f8f8fa;
}

.header-icon-btn:active {
    transform: scale(0.95);
}

.header-icon-btn i {
    font-size: 18px;
    color: #5c5c7a;
}

/* ============================================
   CARDS CONTAINER
   ============================================ */
.cards-container {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   ENCOUNTER CARD - Main Design
   ============================================ */
.encounter-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.4s ease;
}

.encounter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12),
        0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Photo Container */
.card-photo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    cursor: pointer;
    overflow: hidden;
}

.card-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.encounter-card:hover .card-photo-container img {
    transform: scale(1.02);
}

/* Nearby Badge - Purple Pill */
.badge-nearby {
    position: absolute;
    bottom: 90px;
    left: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.badge-nearby i {
    font-size: 12px;
}

/* Card Info Overlay */
.card-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
}

.user-info-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.user-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.user-age {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.95;
}

.user-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.user-location i {
    font-size: 12px;
    opacity: 0.8;
}

/* User Occupation */
.user-occupation {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.user-occupation i {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================
   ACTION BUTTONS - Pill Shape
   ============================================ */
.card-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px 20px;
}

.card-actions .action-btn {
    flex: 1;
    height: 60px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.card-actions .action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.25s ease;
}

.card-actions .action-btn:hover::before {
    background: rgba(255, 255, 255, 0.15);
}

.card-actions .action-btn:active {
    transform: scale(0.96);
}

/* Pass Button - Soft Red */
.btn-pass {
    background: #fee2e2;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

.btn-pass i {
    color: #ef4444;
}

.btn-pass:hover {
    background: #fecaca;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

/* Like Button - Bright Blue */
.btn-like {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    flex: 1.2;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-like i {
    color: #ffffff;
    font-size: 26px;
}

.btn-like:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.45);
    transform: scale(1.02);
}

.btn-like:active {
    transform: scale(0.98);
}

/* Undo Button - Gray */
.btn-undo {
    background: #f3f4f6;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.15);
}

.btn-undo i {
    color: #6b7280;
}

.btn-undo:hover {
    background: #e5e7eb;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.25);
}

/* Super Like Button - Gold/Yellow */
.btn-superlike {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-superlike i {
    color: #ffffff;
    font-size: 22px;
}

.btn-superlike:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
    transform: scale(1.02);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-state {
    text-align: center;
    padding: 120px 20px;
    color: #8888a0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e8e8ec;
    border-top-color: #7c3aed;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-state p {
    font-size: 15px;
    font-weight: 500;
}

/* ============================================
   NO MORE USERS STATE
   ============================================ */
.no-users-state {
    text-align: center;
    padding: 100px 30px;
    max-width: 300px;
    margin: 0 auto;
}

.no-users-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.no-users-icon i {
    font-size: 36px;
    color: #9ca3af;
}

.no-users-state h3 {
    color: #374151;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.no-users-state p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.refresh-btn {
    margin-top: 24px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

/* ============================================
   SWIPE ANIMATIONS
   ============================================ */
.encounter-card.swiping-left {
    transform: translateX(-120%) rotate(-15deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.encounter-card.swiping-right {
    transform: translateX(120%) rotate(15deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Like/Dislike Indicators */
.swipe-indicator-like,
.swipe-indicator-dislike {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.swipe-indicator-like {
    right: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.swipe-indicator-like i {
    color: white;
    font-size: 28px;
}

.swipe-indicator-dislike {
    left: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.swipe-indicator-dislike i {
    color: white;
    font-size: 28px;
}

/* ============================================
   MATCH NOTIFICATION
   ============================================ */
.match-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(124, 58, 237, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.match-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.match-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.match-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -20px;
    margin-bottom: 30px;
}

.match-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.match-photo:first-child {
    margin-right: -20px;
    z-index: 1;
}

.match-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.match-btn {
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.match-btn.primary {
    background: white;
    color: #7c3aed;
}

.match-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.match-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SWIPE CONTAINER (for compatibility)
   ============================================ */
.swipe-container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.swipe-card {
    width: 100%;
    max-width: 380px;
}