/* Dating Users Cards Styles */

/* Section Styles */
.dating-users-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.dating-users-section .section-title h2 {
    color: #ff9100;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

/* Gender Filter Tabs */
.gender-filter-tabs .nav-tabs {
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.gender-filter-tabs .nav-link:hover {
    color: #ff9100 !important;
    border-color: #ff9100 !important;
    background: rgba(255, 145, 0, 0.1) !important;
}

.gender-filter-tabs .nav-link.active {
    color: #ff9100 !important;
    border-color: #ff9100 !important;
    background: rgba(255, 145, 0, 0.1) !important;
}

/* Dating User Card */
.dating-user-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.dating-user-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 145, 0, 0.25);
}

.dating-user-card:active {
    transform: translateY(-6px);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dating Badge Animation */
.dating-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Online Indicator Animation */
.online-indicator {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .gender-filter-tabs .nav-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .gender-filter-tabs .nav-link {
        min-width: 120px;
        text-align: center;
    }

    .dating-users-section {
        padding: 20px 15px;
    }
}

/* Dating Action Buttons */
.dating-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Request Photo Access Button - Airbnb-inspired */
.btn-request-photo-access {
    border: 2px solid #9C27B0 !important;
    background: rgba(156, 39, 176, 0.1) !important;
    color: #E1BEE7 !important;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-request-photo-access::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(186, 104, 200, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-request-photo-access:hover:not(:disabled) {
    border-color: #BA68C8 !important;
    background: rgba(186, 104, 200, 0.18) !important;
    color: #BA68C8 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.35);
}

.btn-request-photo-access:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-request-photo-access:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-request-photo-access:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Follow Button - Airbnb-inspired */
.btn-follow-dating {
    border: 2px solid #666 !important;
    background: transparent !important;
    color: #ccc !important;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-follow-dating::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 145, 0, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-follow-dating:hover:not(:disabled) {
    border-color: #ff9100 !important;
    background: rgba(255, 145, 0, 0.08) !important;
    color: #ff9100 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.25);
}

.btn-follow-dating:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-follow-dating:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-follow-dating:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Follow Button States */
.btn-follow-dating[data-follow-status="following"],
.btn-follow-dating[data-follow-status="mutual"] {
    border-color: #4CAF50 !important;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    color: white !important;
    animation: followSuccess 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-follow-dating[data-follow-status="following"]:hover:not(:disabled),
.btn-follow-dating[data-follow-status="mutual"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
    transform: translateY(-2px) scale(1.02);
}

/* Follow Success Animation */
@keyframes followSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mutual Follow Pulse */
.btn-follow-dating[data-follow-status="mutual"] {
    animation: followSuccess 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
               mutualPulse 2s ease-in-out 1s;
}

@keyframes mutualPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
    }
}

/* Message Button - Airbnb-inspired */
.btn-connect-dating {
    background: linear-gradient(135deg, #ff9100 0%, #ffb347 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-connect-dating::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-connect-dating:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffb347 0%, #ffd700 100%) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 145, 0, 0.45);
}

.btn-connect-dating:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-connect-dating:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-connect-dating:disabled {
    background: #28a745 !important;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Fix desktop hover escape issue - keep overlay visible when moving to buttons */
@media (min-width: 769px) {
    /* Add transition delay to prevent flickering when moving between card and overlay */
    .dating-user-card.poster .card-overlay {
        transition: opacity .3s ease, visibility 0s linear .2s;
    }

    /* Remove delay when showing overlay */
    .dating-user-card.poster:hover .card-overlay {
        transition: opacity .3s ease, visibility 0s linear 0s;
    }

    /* Keep overlay visible when hovering the overlay itself */
    .dating-user-card.poster .card-overlay:hover {
        visibility: visible !important;
        opacity: 1 !important;
        transition: opacity .3s ease, visibility 0s linear 0s;
    }

    /* Ensure pointer events work on overlay */
    .dating-user-card.poster .card-overlay {
        pointer-events: auto;
    }

    /* Keep overlay content interactive */
    .dating-user-card.poster .card-overlay .outer,
    .dating-user-card.poster .card-overlay .btn-cover,
    .dating-user-card.poster .card-overlay button,
    .dating-user-card.poster .card-overlay a {
        pointer-events: auto;
    }
}
