/* Players Page Specific Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gold-gradient: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    --text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.1);
    --hover-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* Page Header */
.page-header {
    padding: 12rem 0 4rem 0; /* Increased top padding to compensate for larger navbar */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="spades" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><rect width="40" height="40" fill="rgba(255,255,255,0.05)"/><text x="20" y="25" text-anchor="middle" font-size="16" fill="rgba(255,255,255,0.1)" font-family="serif">♠</text></pattern></defs><rect width="200" height="200" fill="url(%23spades)"/></svg>');
    opacity: 0.3;
}


@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.page-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.page-header p {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Stats Section */
/* Stats & Refresh Section */
.stats-refresh-section {
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.stats-refresh-section h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(102,126,234,0.1);
    text-align: center;
    box-shadow: 0 8px 25px rgba(102,126,234,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102,126,234,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(102,126,234,0.3);
}

.stat-item h4 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.stat-item p {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.tournament-info {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 25px rgba(102,126,234,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tournament-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
}

.tournament-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.tournament-info p {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.refresh-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.refresh-btn:hover::before {
    left: 100%;
}

.refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}

.refresh-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.3);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.last-updated {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Players Section */
.players-section {
    padding: 3rem 0;
    background: white;
}

.players-section h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #495057;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    border-left: 3px solid #6c757d;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.team-number {
    background: #6c757d;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

.player-info,
.contact-info,
.payment-info {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    border-left: 2px solid #6c757d;
}

.player-info h4,
.contact-info h4,
.payment-info h4 {
    color: #495057;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.player-info p,
.contact-info p,
.payment-info p {
    margin-bottom: 0.2rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.payment-info a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.payment-info a:hover {
    text-decoration: underline;
}

.registration-time {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.7rem;
    color: #6c757d;
}

/* No Players State */
.no-players {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.no-players h4 {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 0.8rem;
}

.no-players p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.register-btn {
    background: #6c757d;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.register-btn:hover {
    background: #5a6268;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Teams Table Styles */
.teams-table-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.teams-table {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border-collapse: collapse;
}

.teams-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.teams-table th {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.teams-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.teams-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
}

.teams-table tbody tr:last-child {
    border-bottom: none;
}

.teams-table td {
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.team-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    min-width: 40px;
}

.team-name {
    font-weight: 600;
    color: #2c3e50;
}

/* Mobile styles for table */
@media (max-width: 768px) {
    .teams-table {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .teams-table th,
    .teams-table td {
        padding: 1rem;
        font-size: 1rem;
    }
}