/* =====================================================
   CLASSIFIED - User-Specific Styles
   User feed, user profiles, user-only components
   ===================================================== */

/* =====================================================
   User Feed Container
   ===================================================== */
.user-feed-container {
    height: calc(100vh - 280px);
    overflow-y: auto;
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}

.feed-container {
    padding: 0 20px 20px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.feed-header {
    text-align: center;
    margin-bottom: 20px;
}

.feed-header h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =====================================================
   User Feed Items
   ===================================================== */
.user-feed-item {
    background: linear-gradient(135deg, #2a2a2a 0%, var(--bg-dark) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
    animation: fadeInUp 0.3s ease;
    position: relative;
    cursor: pointer;
}

.user-feed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-color: var(--info-border);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.user-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 20px;
}

.user-info {
    padding: var(--spacing-lg);
    padding-bottom: 0;
}

.user-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.user-bio {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* =====================================================
   User Status & Badges
   ===================================================== */
.user-status-badges {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: var(--spacing-xs);
    z-index: var(--z-dropdown);
}

.status-badge {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 6px var(--spacing-sm);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    border: 1px solid var(--border-medium);
}

.status-online {
    color: #4CAF50;
    border-color: rgba(76,175,80,0.3);
}

.status-distance {
    color: var(--accent-cyan);
    border-color: rgba(0,212,255,0.3);
}

.status-match {
    color: var(--accent-gold);
    border-color: rgba(255,215,0,0.3);
}

/* =====================================================
   User Actions (Like/Pass System)
   ===================================================== */
.user-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px 20px 20px;
    margin-top: auto;
}

.user-actions .action-btn {
    flex: 1;
    height: 54px;
    max-width: 180px;
    border-radius: 50px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
}

.user-actions .pass-btn {
    background: linear-gradient(135deg, #FF6B84, #FF8FA3);
    color: white;
}

.user-actions .pass-btn:active {
    background: linear-gradient(135deg, #FF5A73, #FF7E92);
}

.user-actions .like-btn {
    background: linear-gradient(135deg, #00D4FF, #00B8E6);
    color: white;
}

.user-actions .like-btn:active {
    background: linear-gradient(135deg, #00C2ED, #00A6D4);
}

.user-actions .action-btn span {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Hover states - only for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .user-actions .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }
}

.user-actions .action-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hide deprecated button styles */
.chat-btn,
.super-btn {
    display: none !important;
}

/* =====================================================
   Profile View Styles
   ===================================================== */
.profile-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 20px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-content {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.profile-content .profile-hero {
    margin: -20px -20px 16px -20px;
    height: 350px;
    width: calc(100% + 40px);
    position: relative;
    z-index: 2;
    padding: 0;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: var(--accent-gold);
    font-size: 16px;
}

.profile-description {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.profile-details {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: var(--spacing-md);
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    color: var(--accent-cyan);
    font-weight: 500;
}

.current-promo {
    background: linear-gradient(135deg, #FF6B6B, #FF8C42);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.promo-badge {
    background: var(--border-medium);
    padding: 5px 10px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    padding: var(--spacing-lg);
    background: rgba(0,0,0,0.9);
    border-top: 1px solid var(--border-light);
}

.action-button {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-button:hover {
    transform: translateY(-2px);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    color: white;
}

.secondary-btn {
    background: var(--border-light);
    color: white;
    border: 1px solid var(--border-medium);
}

/* =====================================================
   User Interests & Tags
   ===================================================== */
.user-interests {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
}

.interest-tag {
    background: var(--info-bg);
    color: var(--info);
    padding: var(--spacing-xs) 14px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    border: 1px solid var(--info-border);
    font-weight: var(--weight-medium);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.interest-btn {
    background: var(--border-light);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.interest-btn.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.3);
}

/* =====================================================
   Social Tabs & Messaging
   ===================================================== */
.social-tabs {
    display: flex;
    background: rgba(255,255,255,0.05);
    margin: var(--spacing-lg);
    border-radius: var(--radius-pill);
    padding: 4px;
    border: 1px solid var(--border-light);
}

.social-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.social-tab.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    color: white;
    transform: scale(1.02);
}

.social-content {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.social-content.active {
    display: block;
}

/* Message Notification Indicators */
.message-notification-dot {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 18px !important;
    height: 18px !important;
    background: #FF4444 !important;
    border-radius: 50% !important;
    border: 2px solid rgba(26, 26, 46, 0.95) !important;
    z-index: 100 !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5) !important;
    display: none !important;
}

.message-notification-dot.show {
    display: block !important;
}

.unread-count-badge {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    background: #FF4444 !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    border: 2px solid rgba(26, 26, 46, 0.95) !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5) !important;
}

.unread-count-badge.show {
    display: flex !important;
}

.chat-item {
    position: relative !important;
    display: flex;
    align-items: center;
    padding: var(--spacing-md) 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}

.chat-item:hover {
    background: rgba(255,255,255,0.05);
}

/* Chat item notification indicators - unified system */
.chat-item .chat-unread-dot {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 12px !important;
    height: 12px !important;
    background: #FF4444 !important;
    border-radius: var(--radius-circle) !important;
    border: 2px solid var(--bg-dark) !important;
    z-index: 10 !important;
}

.chat-item .chat-unread-count {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #FF4444 !important;
    color: white !important;
    border-radius: var(--radius-circle) !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border: 2px solid var(--bg-dark) !important;
}

.chat-item .unread-indicator {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
    background: #FF4444 !important;
    color: white !important;
    border-radius: var(--radius-circle) !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 5 !important;
    border: 2px solid var(--bg-dark) !important;
}

/* Hide notification when messaging tab is active */
.social-tab.active .message-notification-dot,
.social-tab.active .unread-count-badge {
    display: none !important;
}

/* In-app notification toast styling */
.chat-notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1001 !important;
    animation: slideInRight 0.3s ease !important;
}

/* =====================================================
   Photo Upload Section
   ===================================================== */
.photo-upload-section {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 2px dashed var(--border-medium);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-section:hover {
    border-color: var(--accent-cyan);
    background: rgba(0,212,255,0.1);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.photo-slot {
    aspect-ratio: 1;
    background: var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed var(--border-medium);
    position: relative;
}

.photo-slot:hover {
    border-color: var(--accent-cyan);
    background: rgba(0,212,255,0.1);
}

.photo-slot.filled {
    background-size: cover;
    background-position: center;
    border: 2px solid var(--accent-cyan);
}

.photo-slot.uploading {
    border-color: var(--accent-gold);
    background: rgba(255,215,0,0.1);
}

.photo-slot .upload-progress {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 4px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.photo-slot .upload-progress-bar {
    height: 100%;
    background: var(--accent-cyan);
    width: 0%;
    transition: width 0.3s ease;
}

.star-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent-gold);
    font-size: 20px;
}

/* =====================================================
   Match Popup
   ===================================================== */
.match-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    animation: fadeIn 0.3s ease;
}

.match-popup.show {
    display: flex;
}

.match-content {
    text-align: center;
    padding: var(--spacing-3xl);
    background: linear-gradient(135deg, #2a2a2a, var(--bg-dark));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    max-width: 300px;
    animation: popIn 0.3s ease;
    position: relative;
}

.match-close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-circle);
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    cursor: pointer;
    transition: all var(--transition-base);
}

.match-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =====================================================
   Profile Save Button
   ===================================================== */
.save-profile-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dark));
    border: none;
    border-radius: var(--radius-pill);
    padding: var(--spacing-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,212,255,0.3);
}

/* =====================================================
   Mobile Responsive
   ===================================================== */
@media (max-width: 430px) {
    .user-actions {
        gap: 14px;
        padding: 0 10px 14px 10px !important;
    }
    
    .user-actions .action-btn {
        height: 60px !important;
        font-size: 16px;
        max-width: none !important;
        border-radius: 50px !important;
        gap: 8px;
        padding: 0 46px !important;
    }
    
    .user-actions .action-btn span {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .user-actions {
        gap: 8px;
        padding: 0 14px 12px 14px;
    }
    
    .user-actions .action-btn {
        height: 42px;
        font-size: 15px;
        border-radius: 50px;
        gap: 6px;
    }
    
    .user-actions .action-btn span {
        font-size: 17px;
    }
}
