/* ============================= */
/* CLUB PAGE LAYOUT */
/* ============================= */

.club-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ============================= */
/* CLUB HEADER SECTION (NEW) */
/* ============================= */

.club-header-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.club-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

/* Club Logo */
.club-logo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #d9534f, #c9302c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-logo-placeholder {
    font-size: 70px;
    color: white;
}

/* Club Info */
.club-info-wrapper {
    flex: 1;
}

.club-name-header {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.club-location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #666;
}

.location-icon {
    font-size: 16px;
}

.location-text {
    color: #666;
}

/* Club Stats Inline */
.club-stats-inline {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.stat-inline-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 28px;
    line-height: 1;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #d9534f;
    line-height: 1;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Action Buttons */
.club-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.btn-apply-player,
.btn-apply-coach {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-apply-player {
    background: linear-gradient(135deg, #d9534f, #c9302c);
    color: white;
}

.btn-apply-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(217, 83, 79, 0.3);
}

.btn-apply-coach {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-apply-coach:hover {
    background: #f8f9fa;
    border-color: #d9534f;
    color: #d9534f;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 18px;
}

/* Club Description Section */
.club-description-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #666;
}

/* OLD CLUB HEADER (Keep for backward compatibility) */
.club-header {
    text-align: center;
    margin-bottom: 60px;
}

.club-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.club-description {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

/* ============================= */
/* SECTION HEADER */
/* ============================= */

.section-header {
    margin: 50px 0 30px 0;
    margin-top: 70px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #d9534f;
    display: inline-block;
}

/* Remove old underline style */
.section-title::after {
    display: none;
}

/* ============================= */
/* PLAYER GRID */
/* ============================= */

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.player-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.player-photo-container {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f9f4f1 0%, #e8ddd6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-photo-placeholder {
    font-size: 80px;
    color: #ccc;
}

.jersey-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 55px;
    height: 55px;
    background: rgba(217, 83, 79, 0.95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.player-info {
    padding: 20px;
}

.player-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.player-position {
    display: inline-block;
    background: #d9534f;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.player-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.player-meta span {
    background: #f1f3f5;
    padding: 5px 10px;
    border-radius: 12px;
}

.no-players {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    color: #999;
}

/* ============================= */
/* COACH SECTION */
/* ============================= */

.coach-section {
    margin-top: 50px;
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.coach-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.coach-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f9f4f1 0%, #e8ddd6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coach-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-photo-placeholder {
    font-size: 60px;
}

.coach-info {
    text-align: center;
}

.coach-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.coach-role {
    color: #d9534f;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.coach-details {
    text-align: left;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
    font-size: 13px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
}

.coach-details p {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

.coach-details strong {
    color: #333;
}

.no-coaches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    color: #999;
}

/* HEAD COACH (Legacy styles - keep for compatibility) */
.coach-card-main {
    background: #ffffff;
    border-radius: 22px;
    padding: 35px;
    display: flex;
    gap: 35px;
    align-items: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.coach-photo-large {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, #343a40, #212529);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 60px;
    color: white;
}

.coach-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-info-main h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.coach-role-badge {
    display: inline-block;
    background: #343a40;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.coach-experience {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* ASSISTANT COACH GRID (Legacy) */
.assistant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.coach-card-small {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.coach-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.coach-photo-small {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background: linear-gradient(135deg, #6c757d, #495057);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 40px;
    color: white;
}

.coach-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-card-small h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.coach-card-small p {
    font-size: 14px;
    color: #666;
}

.coach-meta {
    margin-top: 12px;
}

/* ============================= */
/* MODAL STYLES */
/* ============================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #d9534f, #c9302c);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(135deg, #d9534f, #c9302c);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(217, 83, 79, 0.3);
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
}

.btn-cancel:hover {
    background: #e9ecef;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
    .club-header-content {
        grid-template-columns: auto 1fr;
        gap: 25px;
    }
    
    .club-action-buttons {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .club-stats-inline {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .club-container {
        margin: 20px auto;
    }

    .club-header-section {
        padding: 25px;
    }
    
    .club-header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .club-logo-wrapper {
        margin: 0 auto;
    }
    
    .club-location-info {
        justify-content: center;
    }
    
    .club-stats-inline {
        justify-content: center;
        gap: 20px;
    }
    
    .stat-inline-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .stat-label {
        margin-left: 0;
    }
    
    .club-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .club-name {
        font-size: 32px;
    }

    .club-name-header {
        font-size: 28px;
    }

    .coach-card-main {
        flex-direction: column;
        text-align: center;
    }

    .coach-photo-large {
        width: 150px;
        height: 150px;
    }

    .players-grid,
    .coaches-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .club-container {
        padding: 0 15px;
    }
    
    .club-header-section {
        padding: 20px;
    }
    
    .club-logo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .club-logo-placeholder {
        font-size: 50px;
    }
    
    .club-name-header {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-icon {
        font-size: 20px;
    }
}

/* Apply Modal Fix */
.apply-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.apply-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
}

.player-meta-extra span {
   list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 13px;
    color: #666;

}

.player-meta-extra li {
    margin-bottom: 4px;
}

