/* ==========================================================================
   RESOLUTION DROPDOWN OPTIONS - Clean Design
   ========================================================================== */

.res-option-label {
    flex: 1;
    font-weight: 500;
}

.res-option-aspect {
    font-size: 0.6875rem;
    color: #808080;
    padding: 0.1875rem 0.5rem;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 5px;
    font-weight: 500;
}

html.light .res-option-aspect {
    color: #666666;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

/* RAM Indicator */
.ram-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.ram-indicator.ram-optimal {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.3);
}

.ram-indicator.ram-sufficient {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
    border: 1px solid rgba(var(--warning-rgb), 0.3);
}

.ram-indicator.ram-insufficient {
    background: rgba(var(--error-rgb), 0.1);
    color: var(--error);
    border: 1px solid rgba(var(--error-rgb), 0.3);
}

/* RAM Requirements Text */
.ram-requirements {
    margin-top: clamp(0.5rem, 0.75vw, 0.625rem);
    font-size: clamp(0.6875rem, 1vw, 0.75rem);
    color: #808080;
    padding: 0.5rem 0.625rem;
    background: #1e1e1e;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

html.light .ram-requirements {
    color: #666666;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.ram-requirements strong {
    color: #c0c0c0;
}

html.light .ram-requirements strong {
    color: #333333;
}

.ram-sep {
    margin: 0 0.375rem;
    opacity: 0.4;
}

/* ==========================================================================
   CONFIG SELECT - Clean dropdown appearance
   ========================================================================== */

.config-select {
    width: 100%;
    padding: clamp(0.5rem, 1.25vw, 0.625rem) clamp(0.625rem, 1.25vw, 0.875rem);
    background: #222222;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: clamp(0.75rem, 1.1vw + 0.1rem, 0.8125rem);
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

html.light .config-select {
    background-color: #ffffff;
    border-color: #d0d0d0;
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.config-select:hover {
    border-color: #505050;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

html.light .config-select:hover {
    border-color: #b0b0b0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.config-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

/* ==========================================================================
   GAME SETTINGS SECTION - Clean card design
   ========================================================================== */

.game-settings-section {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: clamp(1rem, 2.25vw, 1.375rem);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

html.light .game-settings-section {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.game-settings-section:hover {
    border-color: #404040;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

html.light .game-settings-section:hover {
    border-color: #c0c0c0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.settings-title {
    font-size: clamp(0.875rem, 1.4vw + 0.1rem, 0.9375rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 clamp(0.875rem, 1.5vw, 1.125rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html.light .settings-title {
    color: #1a1a1a;
}

.settings-title svg {
    color: #808080;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   GAME SETTINGS GRID (Dropdowns)
   ========================================================================== */

.game-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.875rem, 1.75vw, 1.125rem);
}

@media (min-width: 480px) {
    .game-settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .game-settings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.game-setting-item {
    display: flex;
    flex-direction: column;
    gap: clamp(0.375rem, 0.625vw, 0.5rem);
}

.game-setting-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-setting-label {
    font-size: clamp(0.75rem, 1.1vw + 0.1rem, 0.8125rem);
    font-weight: 600;
    color: #ffffff;
}

html.light .game-setting-label {
    color: #1a1a1a;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1rem);
}

.setting-item {
    display: flex;
    flex-direction: column;
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: clamp(0.375rem, 0.625vw, 0.5rem);
    position: relative;
}

.setting-label {
    font-size: clamp(0.75rem, 1.1vw + 0.1rem, 0.8125rem);
    font-weight: 600;
    color: #ffffff;
}

html.light .setting-label {
    color: #1a1a1a;
}

/* Info icon for tooltips */
.setting-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 50%;
    color: #808080;
    font-size: 0.625rem;
    font-weight: 600;
    cursor: help;
    transition: border-color 0.2s ease, color 0.2s ease;
}

html.light .setting-info {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #666666;
}

.setting-info:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   SETTING PILLS - Clean toggle buttons
   ========================================================================== */

.setting-pills {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.375rem, 0.625vw, 0.5rem);
}

.setting-pill {
    padding: clamp(0.375rem, 0.75vw, 0.5rem) clamp(0.625rem, 1vw, 0.75rem);
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #b0b0b0;
    font-size: clamp(0.6875rem, 1vw, 0.75rem);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.light .setting-pill {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #666666;
}

.setting-pill:hover {
    border-color: #505050;
    color: #ffffff;
    background: #333333;
}

html.light .setting-pill:hover {
    border-color: #b0b0b0;
    color: #1a1a1a;
    background: #e8e8e8;
}

.setting-pill.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
    font-weight: 600;
}

.setting-pill.is-active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ==========================================================================
   TOGGLE SWITCH - Boolean settings
   ========================================================================== */

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch__slider {
    position: absolute;
    inset: 0;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 11px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

html.light .toggle-switch__slider {
    background: #e0e0e0;
    border-color: #c0c0c0;
}

.toggle-switch__slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #606060;
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

html.light .toggle-switch__slider::before {
    background: #ffffff;
}

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

.toggle-switch input:checked + .toggle-switch__slider::before {
    transform: translateX(18px);
    background: #1a1a1a;
}

.toggle-switch input:focus + .toggle-switch__slider {
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

/* ==========================================================================
   PRESET BUTTONS - Quick settings
   ========================================================================== */

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.preset-btn {
    padding: 0.5rem 0.875rem;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

html.light .preset-btn {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #666666;
}

.preset-btn:hover {
    border-color: #505050;
    color: #ffffff;
    background: #333333;
}

html.light .preset-btn:hover {
    border-color: #b0b0b0;
    color: #1a1a1a;
    background: #e8e8e8;
}

.preset-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
    font-weight: 600;
}

/* Preset badges with color indicators */
.preset-btn--low {
    --preset-color: var(--success);
}

.preset-btn--medium {
    --preset-color: var(--warning);
}

.preset-btn--high {
    --preset-color: var(--accent);
}

.preset-btn--ultra {
    --preset-color: var(--error);
}

.preset-btn[data-preset]::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--preset-color);
    margin-right: 0.5rem;
}
