/* Player Profile - Modern Immersive Design */
:root {
    --stat-bg: #f8f9fa;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-container {
    background: #fff;
    min-height: 100vh;
}

/* Header Section */
.profile-hero {
    min-height: 600px;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

.profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    transform: scale(1.1);
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    padding-bottom: 100px; /* Increased to prevent overlap from negative margin stats bar */
    padding-top: 80px;
}

.hero-player-img {
    width: 400px;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero-text h1 {
    font-size: 80px;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* Stats Section */
.profile-stats-bar {
    background: #fff;
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Info Sections */
.profile-main-content {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.bio-section h2 {
    font-size: 42px;
    margin-bottom: 30px;
    position: relative;
}

.bio-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
}

.bio-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.quote-block {
    font-size: 28px;
    background: var(--light-gray);
    padding: 40px;
    border-left: 8px solid var(--primary-red);
    font-style: italic;
    margin: 40px 0;
    color: #333;
    line-height: 1.5;
}

/* Sidebar Sections */
.sidebar-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.sidebar-box h4 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}

.strength-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.strength-tag {
    background: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.back-btn-container {
    text-align: center;
    padding-bottom: 80px;
}

.btn-modern {
    display: inline-block;
    padding: 18px 45px;
    background: var(--dark-gray);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 30, 36, 0.3);
}

/* WhatsApp Style Gallery */
.whatsapp-gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gallery-slot {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid #eee;
    transition: transform 0.3s ease;
}

.gallery-slot:hover {
    transform: scale(1.05);
}

.gallery-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-slot .more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

/* Full Horizontal Gallery Overlay */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 60px;
    cursor: pointer;
    z-index: 10001;
}

.slider-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80vw;
    height: 80vh;
}

.slider-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.gallery-nav {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.gallery-nav:hover {
    background: rgba(230, 30, 36, 0.8);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-hero {
        height: auto;
        padding-top: 50px;
    }

    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-player-img {
        width: 100%;
        height: 350px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .whatsapp-gallery {
        justify-content: center;
    }

    .gallery-slot {
        width: 110px;
        height: 110px;
    }

    .gallery-nav {
        font-size: 24px;
        width: 40px;
        height: 40px;
        padding: 0;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .slider-gallery { width: 100vw; }
}