/**
 * Players Page Styles
 * Dedicated styles for the players listing page
 * Color palette from main.css design system
 */

/* ============================================
   PLAYERS HEADER SECTION
   ============================================ */
.players-header {
    background: linear-gradient(135deg, #0a3d2e 0%, #164a39 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.players-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(254, 235, 184, 0.1) 50px, rgba(254, 235, 184, 0.1) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(254, 235, 184, 0.1) 50px, rgba(254, 235, 184, 0.1) 51px);
    opacity: 0.5;
}

.players-header-decoration-circle-1,
.players-header-decoration-circle-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.players-header-decoration-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-amber);
    top: -100px;
    right: -100px;
}

.players-header-decoration-circle-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-turquoise);
    bottom: -50px;
    left: -50px;
}

.players-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.players-header-title {
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.players-header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ============================================
   FILTERS SECTION
   ============================================ */
.filters-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input-group {
    position: relative;
}

.search-input-group .form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-input-group .form-control:focus {
    border-color: var(--primary-amber);
    box-shadow: 0 0 0 0.2rem rgba(243, 151, 24, 0.15);
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-teal);
    z-index: 10;
}

.filter-select {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary-amber);
    box-shadow: 0 0 0 0.2rem rgba(243, 151, 24, 0.15);
}

.btn-filter {
    background: var(--primary-teal);
    color: white;
    font-weight: 800;
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: var(--primary-amber);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 151, 24, 0.4);
}

/* ============================================
   PLAYER CARDS
   ============================================ */
.player-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-amber);
}

.player-card-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-turquoise) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.player-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.player-image-container {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    /*width: 100px;*/
    height: 100%;
    /*border-radius: 50%;*/
    overflow: hidden;
    /*border: 3px solid rgba(255, 255, 255, 0.3);*/
    /*background: rgba(255, 255, 255, 0.1);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-image-placeholder {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.player-position-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-gk {
    background: var(--primary-amber);
    color: white;
}

.position-df {
    background: var(--secondary-emerald);
    color: white;
}

.position-mf {
    background: var(--secondary-turquoise);
    color: white;
}

.position-fw {
    background: var(--primary-orange);
    color: white;
}

.player-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    line-height: 1;
}

.player-name {
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0.75rem 0 0.25rem;
    position: relative;
    z-index: 1;
}

.player-position-text {
    color: var(--secondary-cream);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.player-stats {
    padding: 1.5rem;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--secondary-cream);
    transform: scale(1.05);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-actions {
    padding: 1rem 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.btn-player-action {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-view-profile {
    background: var(--primary-orange);
    color: white;
    border: none;
}

.btn-view-profile:hover {
    background: var(--primary-red);
    transform: scale(1.05);
    color: white;
}

.btn-favorite {
    background: white;
    color: var(--primary-teal);
    border: 2px solid var(--primary-teal);
}

.btn-favorite:hover {
    background: var(--primary-teal);
    color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state-icon {
    font-size: 5rem;
    opacity: 0.3;
    color: var(--primary-teal);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
    .players-header {
        padding: 3rem 0 2rem;
    }

    .players-header-decoration-circle-1,
    .players-header-decoration-circle-2 {
        width: 200px;
        height: 200px;
        filter: blur(60px);
    }
}

@media (max-width: 768px) {
    .players-header-title {
        font-size: 2.5rem;
    }

    .player-number {
        font-size: 2rem;
    }

    .player-image-container {
        width: 50%;
        height: 100%;
    }

    .player-image {
        width: 100%;
        height: 25vh;
        object-fit: contain;
    }

    .player-card-header {
        min-height: 160px;
    }
}

@media (max-width: 575.98px) {
    .players-header-title {
        font-size: 2rem;
    }

    .filters-section .row>div {
        margin-bottom: 0.5rem;
    }
}