/* ClassZen - Settings Panel Styles */

.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.settings-panel.visible {
    transform: translateX(0);
}

.settings-panel.hidden {
    transform: translateX(100%);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.settings-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

/* Translucency Control */
.translucency-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

.translucency-control input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.translucency-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.translucency-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#translucency-value {
    min-width: 44px;
    text-align: right;
    font-weight: 500;
    color: var(--text-color);
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.video-thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(153, 217, 217, 0.4);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-size: 11px;
    font-weight: 500;
}

.video-thumbnail .video-category {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

/* Widget Toggles */
.widget-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.widget-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.widget-toggle-label {
    font-size: 14px;
    color: var(--text-color);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-color);
}

/* Reset Button */
#reset-layout {
    width: 100%;
    padding: 12px;
    background: rgba(255, 74, 74, 0.2);
    border-color: rgba(255, 74, 74, 0.3);
}

#reset-layout:hover {
    background: rgba(255, 74, 74, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .settings-panel {
        width: 100%;
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }
}
