/* ==========================================================================
   KSPL PLAYER DETAILS WEB PAGE SPECIFIC STYLING (PREMIUM LIGHT REDESIGN)
   ========================================================================== */
.player-profile-container {
    padding-top: 80px; /* Aligns below navbar */
    min-height: 90vh;
    background: #f8fafc;
}

/* Header Banner styling */
.player-header-banner {
    position: relative;
    padding: 60px 0 80px 0;
    color: #ffffff;
    overflow: hidden;
    border-bottom: 5px solid var(--gold);
    transition: background-color 0.4s ease;
}

.player-header-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    z-index: 1;
}

.player-header-banner .container {
    position: relative;
    z-index: 2;
}

/* Floating Glass Back Button */
.back-btn-container {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 750;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-back:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Profile Main Identity Layout */
.player-profile-main {
    display: flex;
    align-items: center;
    gap: 40px;
}

.player-photo-wrapper {
    flex-shrink: 0;
    position: relative;
}

.player-photo-wrapper img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.player-identity-details {
    text-align: left;
}

.player-profile-name {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 950;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.player-meta-badges {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.player-role-badge {
    background: linear-gradient(135deg, var(--gold) 0%, #d1a317 100%);
    padding: 8px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 850;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.player-team-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.player-team-pill img {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Floating Statistics Content Grid */
.player-stats-content {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stats-profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--elevated-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stats-profile-card:hover {
    transform: translateY(-4px);
}

.stats-profile-card.batting-card {
    border-left: 6px solid var(--gold);
}

.stats-profile-card.bowling-card {
    border-left: 6px solid var(--burgundy);
}

.card-title-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 22px 30px;
    border-bottom: 1px solid rgba(144, 23, 29, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title-header .header-icon {
    font-size: 1.5rem;
}

.card-title-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.card-details-body {
    padding: 10px 30px 25px 30px;
}

/* Stat row item layout */
.detail-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1.5px dashed rgba(144, 23, 29, 0.08);
}

.detail-stat-item:last-child {
    border-bottom: none;
}

.detail-stat-item .stat-lbl {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-stat-item .stat-val {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 850;
    font-size: 1.15rem;
}

/* Error fallback card */
.error-profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--elevated-shadow);
}

.error-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.error-profile-card h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--burgundy-dark);
    margin-bottom: 15px;
    font-size: 2rem;
    text-transform: uppercase;
}

.error-profile-card p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-back-home {
    display: inline-block;
    padding: 12px 30px;
    background: var(--burgundy);
    color: #ffffff;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 850;
    box-shadow: 0 4px 15px rgba(144, 23, 29, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-back-home:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 23, 29, 0.3);
}

/* CTA Registration Section styling */
.player-cta-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    gap: 30px;
}

.player-cta-section p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.player-register-btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(144, 23, 29, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.player-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 23, 29, 0.3);
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
}

/* Helper utilities */
.hidden {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .player-profile-main {
        gap: 30px;
    }

    .player-photo-wrapper img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .player-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .player-identity-details {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .player-meta-badges {
        justify-content: center;
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .player-cta-section {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .player-cta-section p {
        text-align: center;
    }

    .player-register-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .player-header-banner {
        padding: 40px 0 60px 0;
    }

    .player-stats-content {
        margin-top: -30px;
    }

    .card-title-header {
        padding: 16px 20px;
    }

    .card-details-body {
        padding: 10px 20px 20px 20px;
    }

    .detail-stat-item .stat-lbl {
        font-size: 0.8rem;
    }

    .detail-stat-item .stat-val {
        font-size: 1rem;
    }
}
