/* Game Calendar Views CSS */

/* Day View Styles */
.day-view-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.day-view-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.day-view-grid {
    display: flex;
    overflow-x: auto;
}

.time-column {
    width: 80px;
    background: #f8f9fa;
    border-right: 2px solid #dee2e6;
    flex-shrink: 0;
}

.time-slot {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.games-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 960px; /* 16 hours * 60px */
}

.time-slot-games {
    height: 60px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.day-game-card-absolute {
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.day-game-card-absolute:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10 !important;
}

.game-time-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.game-details {
    flex: 1;
}

.game-teams {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.game-venue {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.game-status {
    font-size: 11px;
    font-weight: 500;
}

/* Week View Styles */
.week-view-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: block !important;
}

.week-view-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.week-view-grid {
    display: flex;
    width: 100%;
    min-height: 600px;
}

.week-times {
    width: 80px;
    background: #f8f9fa;
    border-right: 2px solid #dee2e6;
    flex-shrink: 0;
}

.week-time-header {
    height: 60px;
    border-bottom: 1px solid #e9ecef;
}

.week-time-slot {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
}

.week-day-column {
    flex: 1;
    min-width: 0;
    border-right: 1px solid #e9ecef;
}

.week-day-column.today {
    background: rgba(102, 126, 234, 0.05);
}

.week-day-header {
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.day-name {
    font-size: 12px;
    color: #6c757d;
}

.day-number {
    font-size: 18px;
    color: #2c3e50;
}

.week-day-column.today .day-number {
    color: #667eea;
}

.week-day-content {
    position: relative;
    height: 960px; /* 16 hours * 60px */
}

.week-time-slot-games {
    height: 60px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.week-game-card-absolute {
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.week-game-card-absolute:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10 !important;
}

.week-game-time {
    font-weight: 600;
    margin-bottom: 1px;
    font-size: 9px;
}

.week-game-teams {
    font-size: 8px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.week-game-duration {
    font-size: 7px;
    opacity: 0.7;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .day-view-grid, .week-view-grid {
        flex-direction: column;
    }
    
    .time-column, .week-times {
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
    }
    
    .time-slot, .week-time-slot {
        min-width: 60px;
        height: 40px;
        font-size: 12px;
    }
    
    .week-day-column {
        min-width: 80px;
    }
    
    .day-game-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}