/* Date Selector - Desktop */
.date-selector-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 997;
}

.date-selector-item {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
    border: 2px solid transparent;
}

.date-selector-item:hover:not(.disabled) {
    background: #f5f5f5;
    border-color: #f6782c;
}

.date-selector-item.active {
    background: #f6782c;
    color: white;
    border-color: #f6782c;
}

.date-selector-item.active:hover {
    color: #f6782c;
    background: white;
}

.date-selector-item.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.date-selector-item .date-day {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.8;
}

.date-selector-item.active .date-day {
    opacity: 1;
}

.date-selector-item .date-number {
    display: block;
    font-size: 1rem;
    font-weight: bold;
}

/* Date Selector - Mobile Button Container */
.date-selector-mobile-container {
    display: none;
    position: fixed;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 997;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Date Selector - Mobile Button */
.date-selector-mobile-btn {
    display: block;
    padding: 10px 20px;
    background: #f6782c;
    color: white;
    border: none;
    border-radius: 6px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    white-space: nowrap;
}

.date-selector-mobile-btn:hover {
    background: #e5671b;
}

/* Date Selector - Today Button (Mobile) */
.date-selector-today-btn {
    display: none;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    white-space: nowrap;
}

.date-selector-today-btn:hover {
    background: #218838;
}

/* Date Selector Modal - Mobile */
.date-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.date-selector-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.date-selector-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.date-selector-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.date-selector-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.date-selector-modal-close:hover {
    color: #f6782c;
}

.date-selector-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-selector-modal-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-align: center;
}

.date-selector-modal-item:hover:not(.disabled) {
    background: #f5f5f5;
    border-color: #f6782c;
}

.date-selector-modal-item.active {
    background: #f6782c;
    color: white;
    border-color: #f6782c;
}

.date-selector-modal-item.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.date-selector-modal-item .date-day {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.8;
}

.date-selector-modal-item.active .date-day {
    opacity: 1;
}

.date-selector-modal-item .date-number {
    display: block;
    font-size: 1rem;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .date-selector-desktop {
        display: none;
    }
    
    .date-selector-mobile-container {
        display: flex;
        top: 106px; /* Below countdown banner */
    }
    
    .countdown-banner {
        top: 70px;
    }
    
    .game-container {
        margin-top: 50px; /* Space for countdown and button */
    }
}

@media (max-width: 480px) {
    .date-selector-mobile-container {
        top: 87px; /* Below countdown banner on small screens */
        gap: 12px;
    }
    
    .date-selector-mobile-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .date-selector-today-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .countdown-banner {
        top: 60px;
    }
    
    .game-container {
        margin-top: 50px;
    }
}
