/* Sports Fixtures Frontend Styles */
.sf-fixtures-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.sf-fixtures-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sf-fixtures-table h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sf-fixtures-table h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.sf-fixture-grid {
    overflow-x: auto;
    border: 1px solid #dee2e6;
}

.sf-fixture-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}

.sf-fixture-table th,
.sf-fixture-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.3;
}

.sf-fixture-table th {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sf-fixture-table .time-column {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 80px;
}

.sf-fixture-table .team-header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 120px;
    width: 60px;
    min-width: 60px;
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sf-fixture-table .age-group-header {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: white;
    font-weight: 600;
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 12px 8px;
}

.sf-fixture-table .match-duration {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    font-size: 10px;
    font-weight: 500;
    color: #8b4513;
    padding: 6px;
}

.sf-fixture-cell {
    min-height: 35px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.sf-fixture-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.sf-fixture-cell.away-fixture {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    color: #8b4513;
    font-weight: 600;
}

.sf-fixture-cell.home-fixture {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sf-fixture-cell.cancelled {
    background: linear-gradient(135deg, #f44336, #e57373);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.sf-fixture-cell.cancelled:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: white;
    transform: translateY(-50%);
}

.sf-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.sf-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.sf-legend-color {
    width: 25px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sf-legend-color.away-fixture {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
}

.sf-legend-color.home-fixture {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.sf-legend-color.cancelled {
    background: linear-gradient(135deg, #f44336, #e57373);
}

.sf-export-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.sf-export-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.sf-export-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sf-export-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sf-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sf-fixture-table {
        font-size: 10px;
        min-width: 800px;
    }
    
    .sf-fixture-table th,
    .sf-fixture-table td {
        padding: 5px;
    }
    
    .sf-team-header {
        height: 100px;
        width: 50px;
        min-width: 50px;
        font-size: 9px;
    }
    
    .sf-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .sf-export-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .sf-fixtures-table h2 {
        font-size: 20px;
        padding: 15px;
    }
    
    .sf-fixtures-table h3 {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .sf-fixture-table {
        font-size: 9px;
    }
    
    .sf-fixture-table .time-column {
        min-width: 60px;
    }
    
    .sf-team-header {
        height: 80px;
        width: 40px;
        min-width: 40px;
        font-size: 8px;
    }
}

/* Print Styles */
@media print {
    .sf-fixtures-table {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .sf-fixture-table th,
    .sf-fixture-table td {
        border: 1px solid #000;
        padding: 4px;
    }
    
    .sf-fixture-cell.away-fixture {
        background: #ffeb3b !important;
        -webkit-print-color-adjust: exact;
    }
    
    .sf-fixture-cell.home-fixture {
        background: #4caf50 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .sf-fixture-cell.cancelled {
        background: #f44336 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .sf-export-section {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .sf-fixtures-table {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .sf-fixture-table th {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .sf-fixture-table .time-column {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .sf-legend {
        background: #4a5568;
    }
    
    .sf-export-section {
        background: #4a5568;
    }
}
