/* Theme Settings Component Styles */

.theme-settings-section {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.settings-header {
    margin-bottom: 24px;
}

.settings-header h3 {
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dark-theme .settings-header h3,
body.dark-theme .settings-header h3 {
    color: #f3f4f6;
}

.settings-header h3 i {
    color: #6366f1;
    font-size: 1rem;
}

.settings-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.dark-theme .settings-description,
body.dark-theme .settings-description {
    color: #9ca3af;
}

/* Theme Options Grid */
.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.theme-option {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
}

.dark-theme .theme-option,
body.dark-theme .theme-option {
    background: #1f2937;
    border-color: #374151;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #6366f1;
}

.dark-theme .theme-option:hover,
body.dark-theme .theme-option:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.theme-option.selected {
    border-color: #6366f1;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.dark-theme .theme-option.selected,
body.dark-theme .theme-option.selected {
    background: linear-gradient(to bottom, #1f2937, #111827);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.theme-option.selected::after {
    content: '\f00c';  /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #6366f1;
    font-size: 1rem;
    animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Theme Preview */
.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Light Preview */
.light-preview {
    background: #f9fafb;
}

.light-preview .preview-header {
    height: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.light-preview .preview-content {
    display: flex;
    height: 80px;
}

.light-preview .preview-sidebar {
    width: 30%;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
}

.light-preview .preview-main {
    flex: 1;
    background: #ffffff;
    padding: 8px;
}

.light-preview .preview-main::before {
    content: '';
    display: block;
    width: 80%;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    margin-bottom: 6px;
}

.light-preview .preview-main::after {
    content: '';
    display: block;
    width: 60%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
}

/* Dark Preview */
.dark-preview {
    background: #111827;
}

.dark-preview .preview-header {
    height: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.dark-preview .preview-content {
    display: flex;
    height: 80px;
}

.dark-preview .preview-sidebar {
    width: 30%;
    background: #1f2937;
    border-right: 1px solid #374151;
}

.dark-preview .preview-main {
    flex: 1;
    background: #1f2937;
    padding: 8px;
}

.dark-preview .preview-main::before {
    content: '';
    display: block;
    width: 80%;
    height: 6px;
    background: #374151;
    border-radius: 3px;
    margin-bottom: 6px;
}

.dark-preview .preview-main::after {
    content: '';
    display: block;
    width: 60%;
    height: 6px;
    background: #4b5563;
    border-radius: 3px;
}

/* Auto Preview (Split) */
.auto-preview {
    background: #f0f0f0;
}

.auto-preview .preview-split {
    display: flex;
    height: 100%;
}

.auto-preview .preview-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auto-preview .light-half {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.auto-preview .light-half::before {
    content: '\f185';  /* fa-sun */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 2em;
    color: #ffc107;
}

.auto-preview .dark-half {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.auto-preview .dark-half::before {
    content: '\f186';  /* fa-moon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 2em;
    color: #6366f1;
}

/* Theme Info */
.theme-info {
    text-align: center;
}

.theme-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #6366f1;
}

.theme-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.dark-theme .theme-name,
body.dark-theme .theme-name {
    color: #f3f4f6;
}

.theme-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.dark-theme .theme-desc,
body.dark-theme .theme-desc {
    color: #9ca3af;
}

/* Current Theme Indicator */
.current-theme-indicator {
    padding: 12px 16px;
    background: #eff6ff;
    border-left: 3px solid #6366f1;
    border-radius: 8px;
    color: #1f2937;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.dark-theme .current-theme-indicator,
body.dark-theme .current-theme-indicator {
    background: #1e293b;
    color: #f1f5f9;
    border-left-color: #6366f1;
}

.current-theme-indicator i {
    color: #6366f1;
    font-size: 0.875rem;
}

.current-theme-indicator strong {
    color: #6366f1;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-options {
        grid-template-columns: 1fr;
    }

    .theme-preview {
        height: 80px;
    }
}
