/* What to Watch Tool Styles */
.watch-tool-container {
    padding: 25px;
    background: #cbeae9;
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
    font-family: Arial, sans-serif;
}

.section-heading {
    text-align: center;
    font-size: 1.8rem;
    margin: 0 0 18px 0;
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 4px solid var(--wp--preset--color--primary, #0073aa);
    display: inline-block;
}

.search-section {
    text-align: center;
    margin-bottom: 40px;
}

.search-description {
    color: #555;
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.search-container {
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    align-items: stretch;
}

.region-selector-container {
    flex: 0 0 200px;
}

.region-selector {
    width: 100%;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

#aiSearchInput {
    flex: 1;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
}

#aiSearchBtn {
    padding: 15px 25px;
    background: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

#aiSearchBtn:hover {
    background: #0073aa;
}

.loading-container {
    display: none;
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #1e90ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.error-container {
    display: none;
    background: #330000;
    border: 1px solid #660000;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #ff6666;
}

.results-container {
    display: none;
    margin: 30px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.content-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    color: #e6e6e6;
}

.shows-list, .trending-list {
    max-height: 400px;
    overflow-y: auto;
}

.show-item, .trending-item {
    background: #2a2a2a;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid #1e90ff;
}

.show-time {
    color: #1e90ff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.show-title, .trending-title {
    font-weight: bold;
    margin: 5px 0;
    color: #fff;
    font-size: 16px;
}

.show-network, .trending-genre {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
}

.countdown {
    background: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #1e90ff;
    margin-left: 10px;
}

.genre-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-btn, .quick-pick {
    background: #2a2a2a;
    border: 1px solid #333;
    color: #e6e6e6;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.genre-btn:hover, .quick-pick:hover {
    background: #1e90ff;
    color: #fff;
}

.quick-picks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.streaming-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.streaming-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    background: #2a2a2a;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.streaming-filters label:hover {
    background: #333;
}

#applyFilters {
    margin-left: auto;
    padding: 10px 20px;
    background: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#applyFilters:hover {
    background: #0073aa;
}

.streaming-badge {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
    margin-top: 5px;
}

.netflix { background: #e50914; }
.hbo-max { background: purple; }
.disney-plus { background: #113ccf; }
.prime-video { background: #00a8e1; }
.hulu { background: #1ce783; color: #000; }
.peacock { background: #0072c6; }
.bbc-iplayer { background: #990000; }
.itvx { background: #ff2e00; }
.stan { background: #0099cc; }
.binge { background: #e6007e; }

.ai-recommendations {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
}

.recommendation-summary {
    color: #e6e6e6; /* Changed from #888 to white for better contrast */
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.recommendations-grid {
    display: grid;
    gap: 20px;
}

.recommendation-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1e90ff;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.recommendation-header h4 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.rating-badge {
    background: #333;
    color: #1e90ff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.recommendation-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}

.recommendation-reason {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #e6e6e6;
}

.streaming-info {
    color: #1e90ff;
    font-size: 14px;
    font-weight: bold;
}

.alternative-suggestions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #333;
}

.alternative-suggestions h4 {
    color: #e6e6e6; /* Fixed contrast issue */
    margin-bottom: 15px;
    font-size: 18px;
}

.suggestion-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-tag {
    background: #2a2a2a; /* Fixed background */
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    color: #e6e6e6; /* Fixed text color */
    border: 1px solid #333;
}

.no-content {
    color: #888;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.trending-description {
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0;
    color: #ccc;
}

.streaming-badges {
    margin-top: 10px;
}

.region-info {
    background: #2a2a2a;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1e90ff;
    text-align: center;
}

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

#aiSearchInput:focus,
.region-selector:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .region-selector-container {
        flex: none;
    }
    
    .streaming-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    #applyFilters {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .quick-picks-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
}

/* Geo-blocking message styles */
.geo-blocked-message {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.geo-blocked-message h2 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.geo-blocked-message p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}