/* ===== PLAYERS PAGE SPECIFIC STYLES ===== */
.players-page {
    padding: 150px 0 80px 0;
    background-color: var(--white);
    min-height: 100vh;
}

.players-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.search-filter-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    min-width: 280px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--dark);
    transform: translateY(-50%) scale(1.1);
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 10px 12px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.view-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.view-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.register-btn-container {
    flex-shrink: 0;
}

.players-stats {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gray);
    font-weight: 500;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.player-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.player-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light) 0%, #e8f5e8 100%);
    flex-shrink: 0;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.player-card:hover .player-image img {
    transform: scale(1.08);
}

.player-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.player-info {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.player-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.player-position {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 15px !important;
}

.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--light);
    border-radius: 6px;
    font-size: 0.9rem;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

.stat-value {
    color: var(--primary);
    font-weight: 700;
}

.player-physical {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.physical-item {
    background: var(--light);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 500;
}

.player-bio {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.view-profile-btn {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: 0.95rem;
}

.view-profile-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== COMPACT VIEW STYLES ===== */
.players-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.player-card.compact {
    min-height: 380px;
}

.player-card.compact .player-image {
    height: 200px;
}

.player-card.compact .player-info {
    padding: 15px;
}

.player-card.compact .player-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.player-card.compact .player-position {
    font-size: 0.9rem;
    margin-bottom: 12px !important;
}

.player-card.compact .player-stats {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.player-card.compact .stat-item {
    padding: 6px 8px;
    font-size: 0.85rem;
}

.player-card.compact .player-physical {
    gap: 8px;
    margin-bottom: 10px;
}

.player-card.compact .physical-item {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.player-card.compact .player-bio {
    font-size: 0.85rem;
    margin-bottom: 12px;
    padding-left: 8px;
}

.player-card.compact .view-profile-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* ===== VERY COMPACT VIEW STYLES ===== */
.players-grid.very-compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.player-card.very-compact {
    min-height: 320px;
}

.player-card.very-compact .player-image {
    height: 150px;
}

.player-card.very-compact .player-info {
    padding: 12px;
}

.player-card.very-compact .player-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.player-card.very-compact .player-position {
    font-size: 0.85rem;
    margin-bottom: 8px !important;
}

.player-card.very-compact .player-stats {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 8px;
}

.player-card.very-compact .stat-item {
    padding: 4px 6px;
    font-size: 0.8rem;
}

.player-card.very-compact .player-physical {
    gap: 6px;
    margin-bottom: 8px;
    justify-content: center;
}

.player-card.very-compact .physical-item {
    padding: 3px 6px;
    font-size: 0.75rem;
}

.player-card.very-compact .player-bio {
    display: none;
}

.player-card.very-compact .view-profile-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.player-card.very-compact .player-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
}

/* ===== LIST VIEW STYLES ===== */
.players-grid.list-view {
    grid-template-columns: 1fr;
    gap: 10px;
}

.player-card.list-view {
    flex-direction: row;
    min-height: 100px;
    padding: 15px;
}

.player-card.list-view .player-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 15px;
}

.player-card.list-view .player-info {
    padding: 0;
    flex-direction: row;
    align-items: center;
    flex: 1;
}

.player-card.list-view .player-main-info {
    flex: 1;
}

.player-card.list-view .player-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.player-card.list-view .player-position {
    font-size: 0.85rem;
    margin-bottom: 0 !important;
}

.player-card.list-view .player-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    margin-right: 20px;
}

.player-card.list-view .stat-item {
    background: none;
    padding: 0;
    font-size: 0.85rem;
}

.player-card.list-view .player-physical,
.player-card.list-view .player-bio {
    display: none;
}

.player-card.list-view .view-profile-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-top: 0;
}

.player-card.list-view .player-badge {
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    font-size: 0.7rem;
}

/* No Players State */
.no-players {
    text-align: center;
    padding: 60px 20px;
    background: var(--light);
    border-radius: 12px;
    margin: 40px 0;
}

.no-players h3 {
    color: var(--gray);
    margin-bottom: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-link {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-link.prev,
.page-link.next {
    background: var(--light);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--secondary);
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .players-grid:not(.list-view):not(.very-compact):not(.compact) {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .players-grid.compact {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .players-grid.very-compact {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .players-grid:not(.list-view):not(.very-compact):not(.compact) {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .player-card:not(.list-view):not(.very-compact):not(.compact) .player-image {
        height: 280px;
    }
}

/* Tablet */
@media (max-width: 1199px) and (min-width: 768px) {
    .players-grid:not(.list-view):not(.very-compact) {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .players-grid.very-compact {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .player-card:not(.list-view):not(.very-compact) .player-image {
        height: 260px;
    }
    
    .players-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-container {
        justify-content: center;
    }
    
    .view-controls {
        justify-content: space-between;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .players-page {
        padding: 120px 0 60px 0;
    }
    
    .players-grid:not(.list-view) {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .players-grid.very-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .player-card:not(.list-view):not(.very-compact) .player-image {
        height: 250px;
    }
    
    .player-card:not(.list-view) .player-info {
        padding: 20px 15px;
    }
    
    .player-card:not(.list-view) .player-info h3 {
        font-size: 1.3rem;
    }
    
    .player-stats {
        grid-template-columns: 1fr;
    }
    
    .players-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .search-filter-container {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-select {
        min-width: 100%;
    }
    
    .view-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-numbers {
        order: -1;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .players-page {
        padding: 100px 0 50px 0;
    }
    
    .players-grid:not(.list-view) {
        gap: 15px;
    }
    
    .players-grid.very-compact {
        grid-template-columns: 1fr;
    }
    
    .player-card:not(.list-view):not(.very-compact) .player-image {
        height: 220px;
    }
    
    .player-card:not(.list-view) .player-info {
        padding: 15px 12px;
    }
    
    .player-card:not(.list-view) .player-info h3 {
        font-size: 1.2rem;
    }
    
    .player-card:not(.list-view) .player-info p {
        font-size: 0.85rem;
    }
    
    .player-physical {
        flex-direction: column;
        gap: 8px;
    }
    
    .page-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
/* ===== PLAYER PROFILE STYLES ===== */
.player-profile-header {
    margin-bottom: 40px;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light);
    color: var(--text);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

.player-profile-content {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.profile-image-section {
    position: relative;
}

.profile-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.player-badge-large {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.profile-details h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.player-position-large {
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px !important;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--light);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.physical-info {
    margin-bottom: 30px;
}

.physical-info h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.physical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.physical-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
}

.physical-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

.physical-item .label {
    color: var(--gray);
    font-weight: 500;
}

.physical-item .value {
    color: var(--dark);
    font-weight: 600;
    margin-left: auto;
}

.player-bio-section {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent);
}

.player-bio-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.bio-content {
    line-height: 1.7;
    color: var(--text);
    font-size: 1.05rem;
}

.player-additional-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
    color: var(--primary);
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-value {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design for Player Profile */
@media (max-width: 968px) {
    .profile-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .profile-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .profile-details h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .player-position-large {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .physical-grid {
        grid-template-columns: 1fr;
    }
    
    .player-bio-section {
        padding: 20px;
    }
    
    .player-additional-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .profile-details h1 {
        font-size: 1.8rem;
    }
}