/**
 * ============================================================================
 * CABAL PRIVATE SERVER - PROFILE MODAL STYLES
 * ============================================================================
 * File: css/profile-modal.css
 * Purpose: Styles for profile modal overlay
 * Last Updated: 2025
 * ============================================================================
 */

/* Modal Overlay */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.profile-modal-overlay.active {
    display: flex;
}

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

/* Modal Container */
.profile-modal {
    background: #1a1a1a;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

/* Modal Header */
.profile-modal-header {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.profile-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.profile-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

.profile-home-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fbbf24;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    z-index: 10;
}

.profile-home-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

/* Modal Body */
.profile-modal-body {
    padding: 0 30px 30px 30px;
    margin-top: -60px;
    position: relative;
}

.profile-avatar-section {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #1a1a1a;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.profile-info-header {
    flex: 1;
    padding-bottom: 10px;
}

.profile-display-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-admin-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-username {
    color: #999;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #0c0c0c;
    border-radius: 10px;
}

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

.profile-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 5px;
}

.profile-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bio Section */
.profile-bio {
    margin-bottom: 25px;
}

.profile-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-bio-text {
    color: #ccc;
    line-height: 1.6;
    padding: 15px;
    background: #0c0c0c;
    border-radius: 8px;
    font-style: italic;
}

/* Characters Section */
.profile-characters {
    margin-bottom: 20px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.character-card {
    background: #0c0c0c;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.character-card:hover {
    border-color: #fbbf24;
    transform: translateY(-3px);
}

.character-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fbbf24;
    margin-bottom: 10px;
}

.character-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: #999;
}

.character-level {
    color: #10b981;
    font-weight: 600;
}

/* No Data Message */
.profile-no-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Loading State */
.profile-loading {
    text-align: center;
    padding: 60px;
    color: #999;
}

.profile-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .profile-modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .profile-avatar-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
.profile-modal::-webkit-scrollbar {
    width: 8px;
}

.profile-modal::-webkit-scrollbar-track {
    background: #0c0c0c;
}

.profile-modal::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.profile-modal::-webkit-scrollbar-thumb:hover {
    background: #444;
}