/* =============================================
   UGOM TV — settings.css
   Place in: assets/css/settings.css
   ============================================= */

/* ── Settings Cards ── */
.settings-card {
    background: var(--card-bg, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    z-index: 1;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.settings-card-header svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: orange;
}

.settings-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px;
}

.settings-card-header p {
    font-size: 0.78rem;
    opacity: 0.6;
    margin: 0;
    z-index: 1;
}

/* ── Theme Buttons ── */
.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: var(--btn-bg, rgba(255,255,255,0.05));
    border: 2px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 10px;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    font-size: 0.8rem;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.theme-btn:hover {
    transform: translateY(-2px);
    border-color: orange;
}

.theme-btn.active {
    border-color: orange;
    background: rgba(255, 165, 0, 0.1);
}

.theme-btn span {
    font-size: 0.78rem;
    font-weight: 500;
}

/* Theme preview boxes */
.theme-preview-system,
.theme-preview-light,
.theme-preview-dark {
    width: 52px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(128,128,128,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-preview-system {
    background: linear-gradient(135deg, #f0f0f0 50%, #1a1a1a 50%);
}

.theme-preview-light {
    background: #f5f5f5;
}

.theme-preview-light svg,
.theme-preview-dark svg {
    width: 16px;
    height: 16px;
}

.theme-preview-light svg { color: #f59e0b; }

.theme-preview-dark {
    background: #1a1a1a;
}

.theme-preview-dark svg { color: #a78bfa; }

/* ── Toggle Rows ── */
.settings-toggles {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color, rgba(128,128,128,0.15));
}

.toggle-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-row:first-child {
    padding-top: 0;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-name {
    font-size: 0.88rem;
    font-weight: 500;
}

.toggle-hint {
    font-size: 0.74rem;
    opacity: 0.55;
    line-height: 1.4;
}

/* ── Toggle Switch ── */
.toggle-switch {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(128,128,128,0.3);
    border-radius: 24px;
    transition: background 0.22s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    left: 3px;
    top: 3px;
    transition: transform 0.22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.toggle-switch input:checked + .toggle-slider {
    background: orange;
}

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