/* Profile Page Styles */
.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: none;
    overflow-y: auto;
}

.profile-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* Profile Header */
.profile-header {
    position: relative;
}

/* Photo Slider */
.profile-photos-slider {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.profile-photo-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.profile-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo Navigation */
.photo-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 2;
}

.photo-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.photo-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Photo Indicators */
.photo-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.photo-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.photo-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Profile Action Buttons */
.profile-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.profile-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.profile-action-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Back Button */
.profile-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.profile-back-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Profile Info Section */
.profile-info-section {
    padding: 20px;
    padding-top: 10px;
}

/* Profile Header Info */
.profile-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.profile-name-age {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-age {
    font-size: 22px;
    color: #666;
    font-weight: 500;
}

.profile-distance {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

/* Badges */
.profile-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-badge {
    background: linear-gradient(135deg, #20C997, #1AA179);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.premium-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #8A2BE2;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Profile Details */
.profile-details {
    margin: 20px 0;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-content {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

/* Hobbies */
.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.hobby-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Profile Actions Footer */
.profile-actions-footer {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.profile-main-btn {
    flex: 1;
    padding: 15px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.message-btn {
    background: linear-gradient(135deg, #8A2BE2, #6A1CB0);
    color: white;
}

.like-btn {
    background: linear-gradient(135deg, #FF6B8B, #FF4757);
    color: white;
}

.dislike-btn {
    background: #f1f1f1;
    color: #333;
}

/* Menu Overlay */
.profile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    justify-content: flex-end;
}

.profile-menu {
    width: 300px;
    background: white;
    height: 100%;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.profile-menu.show {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.menu-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.menu-item {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.menu-item:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.menu-item i {
    width: 20px;
    color: #666;
}

.menu-item.logout {
    color: #ff4757;
    margin-top: 20px;
}

.menu-item.logout i {
    color: #ff4757;
}

/* Loading State */
.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: white;
}

.profile-loading i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

/* Profile Not Found */
.profile-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: white;
    text-align: center;
    padding: 20px;
}

.profile-not-found i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.profile-not-found h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

/* Edit Profile Button (Owner Only) */
.edit-profile-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: white;
    transform: translateY(-2px);
}


/* Premium Card Styles */
.premium-promo-card {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 15px;
    padding: 20px;
    margin: 20px;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.premium-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-badge-small {
    background: white;
    color: #FFA500;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.premium-features {
    margin: 15px 0;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.premium-feature i {
    color: white;
    font-size: 16px;
}

.premium-cta-btn {
    background: white;
    color: #FFA500;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.premium-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Profile Details */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

/* Photo Swipe Gestures */
.profile-photos-slider {
    cursor: grab;
    user-select: none;
}

.profile-photos-slider:active {
    cursor: grabbing;
}

.photo-controls {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.profile-photos-slider:hover .photo-controls {
    opacity: 1;
}

.photo-control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.photo-control-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Edit Profile Button at Bottom */
.edit-profile-bottom {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.edit-profile-btn-bottom {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.edit-profile-btn-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

/* Profile Section Categories */
.profile-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Lifestyle Section */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.lifestyle-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.lifestyle-icon {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}

.lifestyle-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.lifestyle-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .lifestyle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .premium-promo-card {
        margin: 15px;
        padding: 15px;
    }
    
    .premium-title {
        font-size: 18px;
    }
}
