/* When to Watch Tool Styles */
.when-to-watch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: Arial, sans-serif;
}

.search-hero-when {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: #cbeae9;
    border-radius: 15px;
}

.main-heading-when {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.hero-description-when {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.search-form-when {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    gap: 10px;
}

#whenToWatchInput {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background: white;
}

#whenToWatchInput:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#whenToWatchBtn {
    padding: 18px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#whenToWatchBtn:hover {
    background: #005a87;
}

.search-examples-when {
    margin-top: 20px;
}

.search-examples-when span {
    color: #666;
    margin-right: 10px;
}

.example-query-when, .trending-search-when {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.example-query-when:hover, .trending-search-when:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Content Grid */
.content-grid-when {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
}

.content-column-when {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section-when {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.section-heading-when {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
    color: #333;
}

/* Release Calendar */
.release-calendar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.release-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
}

.release-date {
    background: #0073aa;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

.release-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.release-date .month {
    font-size: 0.8rem;
    display: block;
}

.release-info {
    flex: 1;
}

.release-title {
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.release-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
}

.release-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Premieres & Finales */
.premieres-finales {
    display: grid;
    gap: 12px;
}

.premiere-item {
    padding: 12px;
    background: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.premiere-item.finale {
    background: #fce4ec;
    border-left-color: #e91e63;
}

.premiere-title {
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.premiere-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

/* Live Events */
.live-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    padding: 15px;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.event-title {
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.event-sport {
    color: #2e7d32;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.event-teams {
    font-size: 0.8rem;
    color: #666;
}

/* Streaming Drops */
.streaming-drops {
    display: grid;
    gap: 10px;
}

.streaming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f3e5f5;
    border-radius: 6px;
}

.streaming-platform {
    background: #7b1fa2;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.streaming-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.streaming-date {
    font-size: 0.8rem;
    color: #666;
}

/* Countdown Section */
.countdown-section {
    margin: 50px 0;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.countdown-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.countdown-card > * {
    position: relative;
    z-index: 1;
}

.countdown-event {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.countdown-timer {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.countdown-type {
    background: rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-top: 10px;
    display: inline-block;
}

/* Schedule Types */
.schedule-types {
    margin: 50px 0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.schedule-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-5px);
}

.schedule-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.schedule-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.schedule-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Loading and Error States */
.loading-container-when {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner-when {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.error-container-when {
    display: none;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    color: #c62828;
    text-align: center;
}

/* Results Section */
.results-container-when {
    display: none;
    margin: 40px 0;
}

.result-card-when {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.result-header-when {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.result-title-when {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.result-meta-when {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.quick-answer-when {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2e7d32;
}

.schedule-timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #0073aa;
}

.timeline-date {
    background: #0073aa;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    min-width: 100px;
}

.timeline-info {
    flex: 1;
}

.timeline-event {
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.timeline-channel {
    color: #666;
    font-size: 0.9rem;
}

.countdown-badge {
    background: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.release-phases {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.phase-card {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.phase-title {
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1976d2;
}

.phase-details {
    color: #666;
    font-size: 0.9rem;
}

.reminder-tips {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.tips-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ffe0b2;
    color: #555;
}

.tips-list li:last-child {
    border-bottom: none;
}

/* Trending and Recent Sections */
.trending-section-when, .recent-section-when {
    margin: 50px 0;
    text-align: center;
}

.trending-searches-when, .recent-searches-when {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.recent-searches-when {
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.recent-search-item {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 200px;
}

.recent-search-item:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid-when {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-form-when {
        flex-direction: column;
    }
    
    .main-heading-when {
        font-size: 2rem;
    }
    
    .countdown-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timeline-date {
        align-self: stretch;
        text-align: center;
    }
    
    .trending-searches-when {
        flex-direction: column;
        align-items: center;
    }
    
    .trending-search-when {
        width: 200px;
    }
}