/* =========================================================

   VIBECHECK — SETTINGS PAGE

   File: css/settings.css

========================================================= */

/* =========================================================

   PAGE

========================================================= */

.settings-page {

    width: 100%;

    min-height: calc(100vh - 80px);

    box-sizing: border-box;

    padding: 50px 20px 80px;

    overflow-x: hidden;

}

.settings-container {

    width: 100%;

    max-width: 850px;

    margin: 0 auto;

    box-sizing: border-box;

}

/* =========================================================

   SETTINGS HEADER

========================================================= */

.settings-header {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 42px;

    box-sizing: border-box;

}

.settings-header-icon {

    width: 58px;

    height: 58px;

    min-width: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 28px;

    line-height: 1;

    box-sizing: border-box;

}

.settings-header h1 {

    margin: 0 0 5px;

    font-size: 32px;

    line-height: 1.2;

    font-weight: 700;

}

.settings-header p {

    margin: 0;

    font-size: 15px;

    line-height: 1.5;

    opacity: 0.65;

}

/* =========================================================

   SETTINGS SECTION

========================================================= */

.settings-section {

    width: 100%;

    margin: 0 0 34px;

    box-sizing: border-box;

}

.settings-section:last-child {

    margin-bottom: 0;

}

/* =========================================================

   SECTION HEADER

========================================================= */

.settings-section-header {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 14px;

    box-sizing: border-box;

}

.settings-section-icon {

    width: 42px;

    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.07);

    font-size: 20px;

    line-height: 1;

    box-sizing: border-box;

}

.settings-section-header h2 {

    margin: 0 0 3px;

    font-size: 20px;

    line-height: 1.25;

    font-weight: 700;

}

.settings-section-header p {

    margin: 0;

    font-size: 13px;

    line-height: 1.4;

    opacity: 0.6;

}

/* =========================================================

   SETTINGS CARD

========================================================= */

.settings-card {

    width: 100%;

    overflow: hidden;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

}

/* =========================================================

   SETTING ROW

========================================================= */

.setting-row {

    width: 100%;

    min-height: 78px;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    box-sizing: border-box;

    background: transparent;

}

.setting-info {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 5px;

    box-sizing: border-box;

}

.setting-info strong {

    display: block;

    margin: 0;

    font-size: 15px;

    line-height: 1.35;

    font-weight: 700;

}

.setting-info span {

    display: block;

    margin: 0;

    font-size: 13px;

    line-height: 1.45;

    opacity: 0.6;

}

/* =========================================================

   SETTING DIVIDER

========================================================= */

.setting-divider {

    width: 100%;

    height: 1px;

    margin: 0;

    padding: 0;

    background: rgba(255, 255, 255, 0.07);

    box-sizing: border-box;

}

/* =========================================================

   TOGGLE SWITCH

========================================================= */

.switch {

    position: relative;

    width: 48px;

    min-width: 48px;

    height: 26px;

    display: inline-block;

    flex-shrink: 0;

    box-sizing: border-box;

}

.switch input {

    position: absolute;

    width: 1px;

    height: 1px;

    opacity: 0;

    margin: 0;

    padding: 0;

}

.slider {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    display: block;

    cursor: pointer;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.15);

    transition:

        background 0.25s ease,

        box-shadow 0.25s ease;

}

.slider::before {

    content: "";

    position: absolute;

    width: 20px;

    height: 20px;

    left: 3px;

    top: 3px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:

        0 2px 6px rgba(0, 0, 0, 0.25);

    transition:

        transform 0.25s ease;

}

/* =========================================================

   TOGGLE — ON

========================================================= */

.switch input:checked + .slider {

    background: #7c3aed;

}

.switch input:checked + .slider::before {

    transform: translateX(22px);

}

/* =========================================================

   TOGGLE — FOCUS

========================================================= */

.switch input:focus-visible + .slider {

    outline: 2px solid rgba(124, 58, 237, 0.8);

    outline-offset: 3px;

}

/* =========================================================

   DISABLED SETTINGS

========================================================= */

.setting-row:has(input:disabled) {

    opacity: 0.65;

}

.setting-row:has(input:disabled) .slider {

    cursor: not-allowed;

    opacity: 0.45;

}

.setting-row:has(input:disabled) .setting-info strong {

    opacity: 0.65;

}

/* =========================================================

   LANGUAGE CONTROL

========================================================= */

.setting-control {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

}

/* =========================================================

   SELECT

========================================================= */

.settings-select {

    min-width: 130px;

    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);

    color: inherit;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    cursor: not-allowed;

    box-sizing: border-box;

}

.settings-select:focus {

    border-color: rgba(124, 58, 237, 0.7);

    outline: none;

}

.settings-select option {

    background: #18181b;

    color: #ffffff;

}

/* =========================================================

   COMING SOON BADGE

========================================================= */

.coming-soon-badge {

    display: inline-block;

    padding: 4px 8px;

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.08);

    color: inherit;

    font-size: 11px;

    font-weight: 600;

    opacity: 0.55;

    white-space: nowrap;

    box-sizing: border-box;

}

/* =========================================================

   COMING SOON SETTINGS

========================================================= */

.setting-coming-soon {

    display: inline-block;

    width: fit-content;

    margin-top: 2px;

    padding: 3px 8px;

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 11px !important;

    opacity: 0.55 !important;

    font-weight: 600;

}

/* =========================================================

   RESET SETTINGS

========================================================= */

.reset-row {

    min-height: 78px;

}

.reset-settings-button {

    flex-shrink: 0;

    padding: 9px 16px;

    border: 1px solid rgba(255, 90, 90, 0.35);

    border-radius: 10px;

    background: rgba(255, 70, 70, 0.08);

    color: #ff7777;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:

        background 0.2s ease,

        border-color 0.2s ease,

        transform 0.2s ease;

}

.reset-settings-button:hover {

    background: rgba(255, 70, 70, 0.16);

    border-color: rgba(255, 90, 90, 0.5);

}

.reset-settings-button:active {

    transform: scale(0.97);

}

.reset-settings-button:focus-visible {

    outline: 2px solid rgba(255, 100, 100, 0.7);

    outline-offset: 3px;

}

.reset-settings-button:disabled {

    opacity: 0.5;

    cursor: not-allowed;

    transform: none;

}

/* =========================================================

   ABOUT

========================================================= */

.about-card {

    width: 100%;

}

.about-row {

    width: 100%;

    min-height: 60px;

    padding: 16px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    box-sizing: border-box;

    font-size: 14px;

}

.about-row > span:first-child {

    min-width: 0;

}

.about-row strong {

    margin-left: auto;

    text-align: right;

    opacity: 0.8;

    font-weight: 600;

}

.coming-soon {

    margin-left: auto;

    font-size: 12px;

    opacity: 0.5;

    text-align: right;

    white-space: nowrap;

}

/* =========================================================

   SAVE STATUS / TOAST

========================================================= */

.settings-status {

    position: fixed;

    left: 50%;

    bottom: 25px;

    z-index: 99999;

    max-width: calc(100vw - 30px);

    padding: 12px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 12px;

    background: rgba(20, 20, 20, 0.96);

    box-shadow:

        0 10px 30px rgba(0, 0, 0, 0.3);

    color: #ffffff;

    font-size: 14px;

    line-height: 1.4;

    text-align: center;

    opacity: 0;

    pointer-events: none;

    transform: translate(-50%, 20px);

    transition:

        opacity 0.25s ease,

        transform 0.25s ease;

}

.settings-status.show {

    opacity: 1;

    transform: translate(-50%, 0);

}

.settings-status.error {

    border-color: rgba(255, 80, 80, 0.4);

}

/* =========================================================

   REDUCE ANIMATIONS

========================================================= */

body.reduce-animations *,

body.reduce-animations *::before,

body.reduce-animations *::after {

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;

}

/* =========================================================

   IMPORTANT — PREVENT HORIZONTAL OVERFLOW

========================================================= */

html {

    overflow-x: hidden;

}

body {

    overflow-x: hidden;

}

/* =========================================================

   TABLET

========================================================= */

@media (max-width: 768px) {

    .settings-page {

        padding: 40px 18px 70px;

    }

    .settings-container {

        max-width: 100%;

    }

    .settings-header {

        margin-bottom: 34px;

    }

    .settings-header h1 {

        font-size: 29px;

    }

    .settings-section {

        margin-bottom: 28px;

    }

}

/* =========================================================

   MOBILE

========================================================= */

@media (max-width: 600px) {

    .settings-page {

        width: 100%;

        padding: 30px 14px 60px;

    }

    .settings-header {

        gap: 14px;

        margin-bottom: 30px;

    }

    .settings-header-icon {

        width: 50px;

        height: 50px;

        min-width: 50px;

        border-radius: 14px;

        font-size: 24px;

    }

    .settings-header h1 {

        font-size: 27px;

    }

    .settings-header p {

        font-size: 13px;

    }

    .settings-section {

        margin-bottom: 25px;

    }

    .settings-section-header {

        gap: 11px;

        margin-bottom: 12px;

    }

    .settings-section-icon {

        width: 38px;

        height: 38px;

        min-width: 38px;

        border-radius: 10px;

        font-size: 18px;

    }

    .settings-section-header h2 {

        font-size: 18px;

    }

    .settings-section-header p {

        font-size: 12px;

    }

    .settings-card {

        border-radius: 15px;

    }

    .setting-row {

        min-height: 72px;

        padding: 15px 16px;

        gap: 14px;

    }

    .setting-info {

        gap: 4px;

    }

    .setting-info strong {

        font-size: 14px;

    }

    .setting-info span {

        font-size: 12px;

    }

    .switch {

        width: 46px;

        min-width: 46px;

        height: 25px;

    }

    .slider::before {

        width: 19px;

        height: 19px;

        left: 3px;

        top: 3px;

    }

    .switch input:checked + .slider::before {

        transform: translateX(21px);

    }

    /* LANGUAGE */

    .setting-control {

        gap: 8px;

    }

    .settings-select {

        min-width: 105px;

        padding: 8px 10px;

        font-size: 13px;

    }

    .coming-soon-badge {

        padding: 4px 7px;

        font-size: 10px;

    }

    /* RESET */

    .reset-settings-button {

        padding: 8px 14px;

        font-size: 13px;

    }

    /* ABOUT */

    .about-row {

        min-height: 56px;

        padding: 14px 16px;

        gap: 12px;

        font-size: 13px;

    }

    .coming-soon {

        font-size: 11px;

    }

    /* STATUS */

    .settings-status {

        bottom: 18px;

        max-width: calc(100vw - 28px);

        padding: 11px 16px;

        font-size: 13px;

    }

}

/* =========================================================

   VERY SMALL PHONES

========================================================= */

@media (max-width: 380px) {

    .settings-page {

        padding-left: 10px;

        padding-right: 10px;

    }

    .settings-header {

        gap: 11px;

    }

    .settings-header-icon {

        width: 46px;

        height: 46px;

        min-width: 46px;

        font-size: 22px;

    }

    .settings-header h1 {

        font-size: 24px;

    }

    .settings-header p {

        font-size: 12px;

    }

    .setting-row {

        padding-left: 13px;

        padding-right: 13px;

        gap: 10px;

    }

    .setting-info strong {

        font-size: 13px;

    }

    .setting-info span {

        font-size: 11px;

    }

    /* LANGUAGE */

    .setting-control {

        gap: 6px;

    }

    .settings-select {

        min-width: 90px;

        padding: 7px 8px;

        font-size: 12px;

    }

    .coming-soon-badge {

        padding: 3px 6px;

        font-size: 9px;

    }

    /* ABOUT */

    .about-row {

        padding-left: 13px;

        padding-right: 13px;

    }

}

/* =========================================================

   HELP & SUPPORT

========================================================= */

.settings-help-link {

    text-decoration: none;

    color: inherit;

    cursor: pointer;

    transition:

        background 0.2s ease,

        transform 0.2s ease;

}

.settings-help-link:hover {

    background: rgba(255, 255, 255, 0.045);

}

.settings-help-link:active {

    transform: scale(0.995);

}

.settings-help-arrow {

    flex-shrink: 0;

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 18px;

    opacity: 0.7;

    transition:

        transform 0.2s ease,

        opacity 0.2s ease;

}

.settings-help-link:hover .settings-help-arrow {

    transform: translateX(3px);

    opacity: 1;

}

/* PREMIUM THEME SETTINGS */
.premium-theme-card { padding:20px; }
.theme-plan-notice { margin-bottom:14px; font-size:13px; opacity:.72; }
.theme-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.theme-option { min-height:84px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; padding:12px; border:1px solid rgba(255,255,255,.10); border-radius:14px; background:rgba(255,255,255,.035); color:inherit; cursor:pointer; transition:.2s ease; text-align:left; }
.theme-option strong { font-size:13px; }
.theme-option small { opacity:.55; font-size:10px; }
.theme-option:hover:not(:disabled), .theme-option.active { transform:translateY(-2px); border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.08); }
.theme-option:disabled { opacity:.35; cursor:not-allowed; }
@media (max-width:700px) { .theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
