/**
 * Boomfection - Profile Page Styles
 * @copyright reDim GmbH | @link https://www.redim.de | @contact team@redim.de
 */

/* ============================================================================
   PROFILE CONTAINER
   ============================================================================ */

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 20px 80px;
}

/* ============================================================================
   PROFILE HEADER
   ============================================================================ */

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00ff88;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4), 0 0 24px rgba(0, 255, 136, 0.15);
    flex-shrink: 0;
}

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

.avatar-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0a2e 0%, #0d0015 100%);
    color: #00ff88;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.profile-info h1 {
    margin: 0 0 8px;
    color: #e2e8f0;
    font-size: 1.5rem;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.profile-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.rank-badge,
.elo-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rank-badge {
    background: rgba(205, 127, 50, 0.2);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.rank-bronze  { color: #cd7f32; background: rgba(205, 127, 50, 0.15); border-color: rgba(205, 127, 50, 0.3); }
.rank-silver  { color: #c0c0c0; background: rgba(192, 192, 192, 0.15); border-color: rgba(192, 192, 192, 0.3); }
.rank-gold    { color: #ffd700; background: rgba(255, 215, 0, 0.15); border-color: rgba(255, 215, 0, 0.3); }
.rank-platinum { color: #e5e4e2; background: rgba(229, 228, 226, 0.15); border-color: rgba(229, 228, 226, 0.3); }
.rank-diamond { color: #b9f2ff; background: rgba(185, 242, 255, 0.15); border-color: rgba(185, 242, 255, 0.3); }
.rank-master  { color: #ff00ff; background: rgba(255, 0, 255, 0.15); border-color: rgba(255, 0, 255, 0.3); }

.elo-badge {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.profile-meta {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ============================================================================
   STATS GRID
   ============================================================================ */

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   PROFILE SECTIONS
   ============================================================================ */

.profile-section {
    margin-bottom: 32px;
}

.profile-section h2 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================================
   DETAILED STATS
   ============================================================================ */

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

.detail-card {
    background: rgba(10, 10, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px;
}

.detail-header {
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.detail-row span:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================================================
   RECENT GAMES
   ============================================================================ */

.recent-game-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(10, 10, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.recent-game-row:hover {
    background: rgba(10, 10, 30, 0.6);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-green { color: #00ff88; font-weight: 600; }
.text-red { color: #ff0044; font-weight: 600; }
.text-muted { color: rgba(255, 255, 255, 0.35); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* ============================================================================
   AVATAR UPLOAD OVERLAY
   ============================================================================ */

.avatar-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff88;
    font-size: 0.7rem;
    text-align: center;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 0 0 50% 50%;
}

.profile-avatar { position: relative; overflow: hidden; }
.profile-avatar:hover .avatar-upload-overlay { opacity: 1; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detailed-stats-grid {
        grid-template-columns: 1fr;
    }

    .recent-game-row {
        flex-wrap: wrap;
        gap: 6px;
    }
}
