/* =========================================================
   VIBECHECK — HELP & SUPPORT
   File: css/support.css
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.support-page {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 50px 20px 80px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.support-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.support-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 42px;
    box-sizing: border-box;
}

.support-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;
}

.support-header h1 {
    margin: 0 0 5px;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.support-header p {
    margin: 0;

    font-size: 15px;
    line-height: 1.5;

    opacity: 0.65;
}


/* =========================================================
   SECTION
========================================================= */

.support-section {
    width: 100%;
    margin-bottom: 34px;
    box-sizing: border-box;
}

.support-section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.support-section-header {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 14px;
    margin-bottom: 14px;

    box-sizing: border-box;
}

.support-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;
}

.support-section-header h2 {
    margin: 0 0 3px;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.support-section-header p {
    margin: 0;

    font-size: 13px;
    line-height: 1.4;

    opacity: 0.6;
}


/* =========================================================
   SUPPORT CARD
========================================================= */

.support-card {
    width: 100%;

    box-sizing: border-box;
    overflow: hidden;

    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);
}


/* =========================================================
   QUICK HELP
========================================================= */

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.quick-help-item {
    min-height: 82px;

    padding: 17px 18px;

    display: flex;
    align-items: center;

    gap: 13px;

    color: inherit;
    text-decoration: none;

    box-sizing: border-box;

    transition:
        background 0.2s ease;
}

.quick-help-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.quick-help-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.quick-help-item:hover {
    background: rgba(255, 255, 255, 0.045);
}

.quick-help-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

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

    font-size: 19px;
}

.quick-help-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.quick-help-info strong {
    font-size: 14px;
    line-height: 1.35;
}

.quick-help-info small {
    font-size: 12px;
    line-height: 1.35;

    opacity: 0.55;
}

.quick-help-arrow {
    flex-shrink: 0;

    font-size: 17px;
    opacity: 0.5;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.quick-help-item:hover .quick-help-arrow {
    transform: translateX(3px);
    opacity: 1;
}


/* =========================================================
   FAQ
========================================================= */

.faq-card {
    padding: 0;
}

.faq-card details {
    width: 100%;
    box-sizing: border-box;
}

.faq-card summary {
    position: relative;

    padding: 19px 50px 19px 20px;

    cursor: pointer;
    list-style: none;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;

    box-sizing: border-box;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary::after {
    content: "+";

    position: absolute;

    right: 20px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 20px;
    font-weight: 400;

    opacity: 0.55;
}

.faq-card details[open] summary::after {
    content: "−";
}

.faq-card summary:hover {
    background: rgba(255, 255, 255, 0.025);
}

.faq-answer {
    padding: 0 20px 20px;

    font-size: 13px;
    line-height: 1.65;

    opacity: 0.65;
}

.support-divider {
    width: 100%;
    height: 1px;

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

    box-sizing: border-box;
}


/* =========================================================
   CONTACT SUPPORT
========================================================= */

.contact-card {
    min-height: 105px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 16px;

    box-sizing: border-box;
}

.contact-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

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

    font-size: 22px;
}

.contact-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.contact-info strong {
    font-size: 15px;
}

.contact-info span {
    font-size: 12px;
    opacity: 0.55;
}

.support-email {
    width: fit-content;

    color: inherit;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    opacity: 0.85;
}

.support-email:hover {
    text-decoration: underline;
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.contact-button {
    flex-shrink: 0;

    padding: 10px 15px;

    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 10px;

    background: rgba(124, 58, 237, 0.12);

    color: inherit;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.contact-button:hover {
    background: rgba(124, 58, 237, 0.2);

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

.contact-button:active {
    transform: scale(0.98);
}


/* =========================================================
   SUPPORT FORM
========================================================= */

.support-form-card {
    padding: 22px;
}

.form-group {
    width: 100%;
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

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

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

    color: inherit;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.065);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(124, 58, 237, 0.65);

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

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #18181b;
    color: #ffffff;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.support-submit-button {
    width: 100%;

    padding: 12px 18px;

    border: 1px solid rgba(124, 58, 237, 0.45);
    border-radius: 10px;

    background: rgba(124, 58, 237, 0.15);

    color: inherit;

    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,
        opacity 0.2s ease;
}

.support-submit-button:hover {
    background: rgba(124, 58, 237, 0.23);

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

.support-submit-button:active {
    transform: scale(0.99);
}

.support-submit-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.support-submit-button:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.7);
    outline-offset: 3px;
}


/* =========================================================
   FORM STATUS
========================================================= */

.support-form-status {
    margin-top: 12px;

    min-height: 18px;

    text-align: center;

    font-size: 13px;

    opacity: 0;

    transition:
        opacity 0.2s ease;
}

.support-form-status.show {
    opacity: 0.75;
}

.support-form-status.error {
    opacity: 0.9;
}


/* =========================================================
   ABOUT
========================================================= */

.support-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;
}

.support-about-row > span:first-child {
    min-width: 0;
}

.support-about-row strong {
    margin-left: auto;

    text-align: right;

    opacity: 0.8;

    font-weight: 600;
}


/* =========================================================
   SUPPORT REQUEST / INBOX
   Future-ready styles for user support conversations
========================================================= */

.support-request-card {
    width: 100%;

    padding: 20px;

    box-sizing: border-box;

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

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

.support-request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}

.support-request-title {
    margin: 0;

    font-size: 15px;
    font-weight: 700;
}

.support-request-meta {
    font-size: 12px;
    opacity: 0.55;
}

.support-request-message {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;

    opacity: 0.75;
}

.support-request-status {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border-radius: 7px;

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

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

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   SUPPORT INBOX
========================================================= */

.support-inbox {
    width: 100%;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

.support-inbox-item {
    width: 100%;

    padding: 17px 20px;

    display: flex;
    align-items: center;

    gap: 14px;

    color: inherit;
    text-decoration: none;

    box-sizing: border-box;

    transition:
        background 0.2s ease;
}

.support-inbox-item:hover {
    background: rgba(255, 255, 255, 0.045);
}

.support-inbox-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

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

    font-size: 18px;
}

.support-inbox-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.support-inbox-info strong {
    font-size: 14px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-inbox-info span {
    font-size: 12px;

    opacity: 0.55;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-inbox-time {
    flex-shrink: 0;

    font-size: 11px;

    opacity: 0.45;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .support-page {
        padding: 30px 14px 60px;
    }


    /* HEADER */

    .support-header {
        gap: 14px;
        margin-bottom: 30px;
    }

    .support-header-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;

        border-radius: 14px;

        font-size: 24px;
    }

    .support-header h1 {
        font-size: 27px;
    }

    .support-header p {
        font-size: 13px;
    }


    /* SECTION */

    .support-section {
        margin-bottom: 25px;
    }

    .support-section-header {
        gap: 11px;
        margin-bottom: 12px;
    }

    .support-section-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;

        border-radius: 10px;

        font-size: 18px;
    }

    .support-section-header h2 {
        font-size: 18px;
    }

    .support-section-header p {
        font-size: 12px;
    }


    /* CARD */

    .support-card {
        border-radius: 15px;
    }


    /* QUICK HELP */

    .quick-help-grid {
        grid-template-columns: 1fr;
    }

    .quick-help-item {
        min-height: 72px;
        padding: 14px 16px;
    }

    .quick-help-item:nth-child(odd) {
        border-right: none;
    }

    .quick-help-item:nth-child(n + 2) {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .quick-help-icon {
        width: 37px;
        height: 37px;
        min-width: 37px;

        font-size: 17px;
    }


    /* FAQ */

    .faq-card summary {
        padding: 17px 45px 17px 16px;

        font-size: 13px;
    }

    .faq-card summary::after {
        right: 16px;
    }

    .faq-answer {
        padding: 0 16px 17px;

        font-size: 12px;
    }


    /* CONTACT */

    .contact-card {
        padding: 16px;

        align-items: flex-start;

        flex-wrap: wrap;
    }

    .contact-info {
        flex-basis: calc(100% - 62px);
    }

    .contact-button {
        width: 100%;

        margin-top: 4px;

        text-align: center;

        box-sizing: border-box;
    }


    /* FORM */

    .support-form-card {
        padding: 17px;
    }

    .form-group {
        margin-bottom: 16px;
    }


    /* ABOUT */

    .support-about-row {
        min-height: 56px;

        padding: 14px 16px;

        font-size: 13px;

        gap: 12px;
    }


    /* INBOX */

    .support-inbox-item {
        padding: 15px 16px;
    }

    .support-inbox-icon {
        width: 37px;
        height: 37px;
        min-width: 37px;

        font-size: 17px;
    }

    .support-inbox-info strong {
        font-size: 13px;
    }

    .support-inbox-info span {
        font-size: 11px;
    }

    .support-inbox-time {
        display: none;
    }


    /* REQUEST */

    .support-request-card {
        padding: 16px;
    }

    .support-request-header {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .support-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .support-header {
        gap: 11px;
    }

    .support-header-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;

        font-size: 22px;
    }

    .support-header h1 {
        font-size: 24px;
    }

    .support-header p {
        font-size: 12px;
    }

    .quick-help-item {
        padding-left: 13px;
        padding-right: 13px;
    }

    .support-about-row {
        padding-left: 13px;
        padding-right: 13px;
    }

    .support-form-card {
        padding: 14px;
    }

    .contact-card {
        padding: 14px;
    }

}


/* =========================================================
   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;
}


/* =========================================================
   PREVENT HORIZONTAL OVERFLOW
========================================================= */

html,
body {
    overflow-x: hidden;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.quick-help-item:focus-visible,
.contact-button:focus-visible,
.support-email:focus-visible,
.support-inbox-item:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.75);
    outline-offset: 3px;
}

.faq-card summary:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.75);
    outline-offset: -2px;
}

/* =========================================================
   SUPPORT INBOX BUTTON
========================================================= */

.support-inbox-button {
    width: 100%;
    min-height: 82px;
    padding: 17px 20px;

    display: flex;
    align-items: center;
    gap: 14px;

    box-sizing: border-box;

    color: inherit;
    text-decoration: none;

    background: transparent;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.support-inbox-button:hover {
    background: rgba(255, 255, 255, 0.045);
}


.support-inbox-button:active {
    transform: scale(0.995);
}


/* =========================================================
   ICON
========================================================= */

.support-inbox-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

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

    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   INFO
========================================================= */

.support-inbox-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 4px;
}


.support-inbox-info strong {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}


.support-inbox-info small {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.55;
}


/* =========================================================
   ARROW
========================================================= */

.support-inbox-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.6;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.support-inbox-button:hover .support-inbox-arrow {
    transform: translateX(3px);
    opacity: 1;
}


/* =========================================================
   FOCUS
========================================================= */

.support-inbox-button:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.8);
    outline-offset: 3px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .support-inbox-button {
        min-height: 72px;
        padding: 14px 16px;
        gap: 12px;
    }

    .support-inbox-icon {
        width: 37px;
        height: 37px;
        min-width: 37px;
        border-radius: 10px;
        font-size: 17px;
    }

    .support-inbox-info strong {
        font-size: 14px;
    }

    .support-inbox-info small {
        font-size: 11px;
    }

    .support-inbox-arrow {
        width: 30px;
        height: 30px;
        font-size: 17px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .support-inbox-button {
        padding-left: 13px;
        padding-right: 13px;
        gap: 10px;
    }

    .support-inbox-info strong {
        font-size: 13px;
    }

    .support-inbox-info small {
        font-size: 10px;
    }

}

/* =====================================================
   ABOUT SECTION
===================================================== */

.about-card {
    padding: 0;
    overflow: hidden;
}

.about-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    min-height: 58px;
}

.about-row > span:first-child {
    color: var(--text-primary, #ffffff);
    font-size: 15px;
    font-weight: 500;
}

.about-row strong {
    color: var(--text-secondary, #a9a9b3);
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}


/* =====================================================
   LEGAL LINKS
===================================================== */

.setting-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    padding: 7px 12px;
    border-radius: 8px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.setting-link:hover {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.12);
    transform: translateX(2px);
}

.setting-link:active {
    transform: translateX(0);
}


/* =====================================================
   ABOUT DIVIDERS
===================================================== */

.about-card .support-divider {
    width: calc(100% - 44px);
    height: 1px;

    margin: 0 auto;

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


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .about-row {
        padding: 16px;
        gap: 12px;
    }

    .about-row > span:first-child,
    .about-row strong {
        font-size: 14px;
    }

    .setting-link {
        font-size: 13px;
        padding: 6px 9px;
    }

    .about-card .support-divider {
        width: calc(100% - 32px);
    }

}