/* Video Preferences Panel Styling for Horror Streaming App */

.video-preferences-panel {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

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

.preferences-header h2 {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    margin-bottom: 10px;
    font-size: 2.5em;
}

.preferences-header p {
    color: #cccccc;
    font-size: 1.1em;
    margin: 0;
}

/* Test Player Section */
.test-player-section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.test-player-section h3 {
    color: #ff6666;
    margin-bottom: 15px;
}

.test-player-container {
    text-align: center;
}

.preview-note {
    color: #ffcc00;
    font-style: italic;
    margin-top: 10px;
    background: rgba(255, 204, 0, 0.1);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

/* Tabs */
.preferences-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 8px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.95em;
}

/* Mobile-first: No hover effects */

.tab-button.active {
    background: #ff4444;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

/* Tab Content */
.tab-content {
    position: relative;
    min-height: 500px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block !important;
    opacity: 1;
}

.preference-section {
    margin-bottom: 10px;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    min-height: auto;
    transition: all var(--transition-base);
}

/* Mobile-first: No hover effects */

.preference-section h4 {
    color: #ff6666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 68, 68, 0.3);
    font-size: 1.3em;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.95em;
}

.form-group input[type="range"],
.form-group select,
.form-group input[type="color"] {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.95em;
}

.form-group select {
    cursor: pointer;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

.form-group input[type="color"] {
    height: 40px;
    cursor: pointer;
    padding: 4px;
}

/* Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, #ff4444 0%, #ff4444 50%, rgba(255, 68, 68, 0.3) 50%, rgba(255, 68, 68, 0.3) 100%);
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ff4444;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ff4444;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
}

.range-value {
    display: inline-block;
    margin-left: 10px;
    color: #ff6666;
    font-weight: bold;
    min-width: 40px;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px !important;
    position: relative;
    padding-left: 35px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 68, 68, 0.5);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile-first: No hover effects */

.checkbox-label input:checked ~ .checkmark {
    background: #ff4444;
    border-color: #ff4444;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.help-text {
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
    font-style: italic;
}

/* Action Buttons */
.preferences-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 68, 68, 0.3);
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background: #ff4444;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

/* Mobile-first: No hover effects */

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Mobile-first: No hover effects */

/* Status Messages */
.status-message {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.status-message.loading {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.status-message.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6666;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-preferences-panel {
        padding: 15px;
        margin: 10px;
    }
    
    .preferences-header h2 {
        font-size: 2em;
    }
    
    .preferences-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-button {
        padding: 15px;
        font-size: 1em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .preference-section {
        padding: 20px;
    }
    
    .preferences-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .test-player-container {
        margin: 0 -15px;
    }
}

@media (max-width: 480px) {
    .video-preferences-panel {
        padding: 10px;
        margin: 5px;
    }
    
    .preferences-header h2 {
        font-size: 1.8em;
    }
    
    .preference-section {
        padding: 15px;
    }
    
    .checkbox-label {
        font-size: 0.9em;
    }
}

/* Dark mode enhancements */
.video-preferences-panel *::selection {
    background: rgba(255, 68, 68, 0.3);
    color: #ffffff;
}

/* Scrollbar styling */
.video-preferences-panel ::-webkit-scrollbar {
    width: 8px;
}

.video-preferences-panel ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.video-preferences-panel ::-webkit-scrollbar-thumb {
    background: rgba(255, 68, 68, 0.5);
    border-radius: 4px;
}

/* Mobile-first: No hover effects */

/* Focus indicators for accessibility */
.tab-button:focus,
.btn:focus,
input:focus,
select:focus {
    outline: 2px solid #ff4444;
    outline-offset: 2px;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-message.loading {
    animation: pulse 1.5s infinite;
} 

/* Force two-column layout */
.two-col-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

.label-col {
    font-size: 1em !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.toggle-col {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Modern switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #ff4444;
}
input:checked + .slider:before {
    transform: translateX(22px);
} 

/* Force tab content to be visible */
.tab-content {
    display: block !important;
} 