/* ==========================================================================
   Podpage Support / Help Center Styles
   Uses CSS variables from podpage_styles.css (loaded in the template).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
.support-main {
    min-height: calc(100vh - 180px);
    background-color: var(--grey-50);
}

.support-main h1,
.support-main h2,
.support-main h3,
.support-main h4,
.support-main h5,
.support-main h6 {
    font-family: "Poppins", sans-serif;
    color: var(--brand-500);
}

.support-main p,
.support-main span,
.support-main a,
.support-main li {
    font-family: "Inter", sans-serif;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.support-header {
    background-color: #fff;
    border-bottom: 1px solid var(--grey-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.support-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.support-nav__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.support-nav__brand img {
    height: 28px;
    width: auto;
}

.support-nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.support-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

.support-nav__link:hover {
    color: var(--brand-300);
    text-decoration: none;
}

.support-nav__link--dashboard {
    color: var(--brand-300);
    font-weight: 600;
}

.support-nav__link--dashboard i {
    margin-right: 4px;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Hero Section (Home)
   -------------------------------------------------------------------------- */
.support-hero {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-300) 100%);
    padding: 80px 0 72px;
    text-align: center;
}

.support-hero__inner {
    max-width: 640px;
    margin: 0 auto;
}

.support-hero__title {
    font-size: 40px;
    font-weight: 600;
    color: #fff !important;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.support-hero__subtitle {
    font-size: 17px;
    color: var(--brand-100) !important;
    margin-bottom: 32px;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Search Form
   -------------------------------------------------------------------------- */
.support-search-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.support-search-form__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(10, 38, 71, 0.15);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.support-search-form__wrapper:focus-within {
    box-shadow: 0 4px 32px rgba(10, 38, 71, 0.25);
}

.support-search-form__icon {
    position: absolute;
    left: 20px;
    color: var(--grey-400);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.support-search-form__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 16px 16px 52px;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    color: var(--grey-700);
    background: transparent;
    min-width: 0;
}

.support-search-form__input::placeholder {
    color: var(--grey-400);
}

/* --------------------------------------------------------------------------
   Category Cards
   -------------------------------------------------------------------------- */
.support-categories {
    padding: 56px 0 72px;
}

.support-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.support-card:hover {
    box-shadow: 0 8px 32px rgba(10, 38, 71, 0.08);
    border-color: var(--brand-200);
    text-decoration: none;
    transform: translateY(-2px);
}

.support-card__icon-wrapper {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.support-card__icon-wrapper i {
    font-size: 22px;
    color: var(--brand-300);
}

.support-card__body {
    flex: 1;
    min-width: 0;
}

.support-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--brand-500);
    margin: 0 0 4px;
    line-height: 1.3;
}

.support-card__description {
    font-size: 14px;
    color: var(--grey-600) !important;
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-card__count {
    font-size: 13px;
    color: var(--grey-500);
    font-weight: 500;
}

.support-card__arrow {
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--grey-400);
    font-size: 14px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.support-card:hover .support-card__arrow {
    color: var(--brand-300);
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.support-breadcrumb-section {
    background: #fff;
    border-bottom: 1px solid var(--grey-200);
    padding: 16px 0;
}

.support-breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.support-breadcrumb__item {
    font-size: 13px;
    color: var(--grey-500);
    font-weight: 400;
}

.support-breadcrumb__item a {
    color: var(--grey-500);
    text-decoration: none;
    transition: color 0.15s ease;
}

.support-breadcrumb__item a:hover {
    color: var(--brand-300);
    text-decoration: none;
}

.support-breadcrumb__item + .support-breadcrumb__item::before {
    content: "/";
    margin: 0 10px;
    color: var(--grey-400);
    font-size: 12px;
}

.support-breadcrumb__item--active {
    color: var(--grey-700);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Category Header
   -------------------------------------------------------------------------- */
.support-category-header {
    background: #fff;
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--grey-200);
}

.support-category-header__inner {
    max-width: 720px;
}

.support-category-header__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.support-category-header__icon i {
    font-size: 24px;
    color: var(--brand-300);
}

.support-category-header__title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.support-category-header__description {
    font-size: 16px;
    color: var(--grey-600) !important;
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Article List (Category page)
   -------------------------------------------------------------------------- */
.support-article-list {
    padding: 40px 0 72px;
}

.support-article-list__wrapper {
    max-width: 720px;
}

.support-article-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.support-article-list__item:hover {
    box-shadow: 0 4px 16px rgba(10, 38, 71, 0.06);
    border-color: var(--brand-200);
    text-decoration: none;
}

.support-article-list__item-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.support-article-list__item-link:hover {
    text-decoration: none;
}

.support-article-list__content {
    flex: 1;
    min-width: 0;
}

.support-article-list__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-500);
    margin: 0 0 4px;
    line-height: 1.4;
}

.support-article-list__file-icon {
    color: var(--grey-400);
    margin-right: 10px;
    font-size: 15px;
}

.support-article-list__summary {
    font-size: 14px;
    color: var(--grey-600) !important;
    margin: 0;
    line-height: 1.5;
    padding-left: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-article-list__arrow {
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--grey-400);
    font-size: 13px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.support-article-list__item:hover .support-article-list__arrow {
    color: var(--brand-300);
    transform: translateX(2px);
}

.support-article-list__admin-link {
    margin-left: 14px;
    flex-shrink: 0;
}

.support-article-list__empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--grey-500);
}

.support-article-list__empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--grey-300);
}

.support-article-list__empty p {
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Article Detail
   -------------------------------------------------------------------------- */
.support-article {
    padding: 40px 0 80px;
}

.support-article__main {
    max-width: 720px;
}

.support-article__title {
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 32px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

/* Video Embed */
.support-article__video {
    margin-bottom: 32px;
}

.support-article__video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--grey-100);
}

.support-article__video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Article Body */
.support-article__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--grey-700);
    word-break: break-word;
}

.support-article__body h1,
.support-article__body h2,
.support-article__body h3,
.support-article__body h4 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.support-article__body h2 {
    font-size: 24px;
    font-weight: 600;
}

.support-article__body h3 {
    font-size: 20px;
    font-weight: 600;
}

.support-article__body p {
    margin-bottom: 16px;
}

.support-article__body ul,
.support-article__body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.support-article__body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.support-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid var(--grey-200);
}

.support-article__body a {
    color: var(--brand-300);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.support-article__body a:hover {
    color: var(--brand-400);
}

.support-article__body blockquote {
    border-left: 3px solid var(--brand-200);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--brand-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--grey-600);
}

.support-article__body pre,
.support-article__body code {
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
}

.support-article__body code {
    background: var(--grey-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--brand-400);
}

.support-article__body pre {
    background: var(--brand-500);
    color: var(--brand-100);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.support-article__body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 14px;
}

.support-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.support-article__body th,
.support-article__body td {
    padding: 12px 16px;
    border: 1px solid var(--grey-200);
    text-align: left;
}

.support-article__body th {
    background: var(--grey-50);
    font-weight: 600;
    color: var(--brand-500);
}

.support-article__body hr {
    border: none;
    border-top: 1px solid var(--grey-200);
    margin: 32px 0;
}

/* CTA */
.support-article__cta {
    margin: 40px 0;
    padding: 24px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 10px;
    text-align: center;
}

.support-article__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-article__cta-btn i {
    margin-right: 2px;
}

/* Meta */
.support-article__meta {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-200);
}

.support-article__admin-actions {
    margin: 0 0 20px;
}

.support-article__updated {
    font-size: 13px;
    color: var(--grey-500);
}

.support-article__updated i {
    margin-right: 6px;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.support-sidebar {
    position: sticky;
    top: 96px;
    padding-left: 24px;
}

.support-sidebar__section {
    margin-bottom: 32px;
}

.support-sidebar__heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--grey-500);
    margin: 0 0 16px;
}

.support-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-sidebar__list-item {
    margin-bottom: 4px;
}

.support-sidebar__link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--grey-700);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    line-height: 1.4;
}

.support-sidebar__link:hover {
    background: var(--brand-50);
    color: var(--brand-300);
    text-decoration: none;
}

.support-sidebar__category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-300);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.support-sidebar__category-link:hover {
    color: var(--brand-400);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Search Header
   -------------------------------------------------------------------------- */
.support-search-header {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid var(--grey-200);
}

.support-search-header__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.support-search-header__title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px;
}

.support-search-header .support-search-form__wrapper {
    border: 1px solid var(--grey-300);
    box-shadow: 0 2px 8px rgba(10, 38, 71, 0.06);
}

.support-search-header .support-search-form__wrapper:focus-within {
    border-color: var(--brand-200);
    box-shadow: 0 2px 16px rgba(10, 38, 71, 0.1);
}

/* --------------------------------------------------------------------------
   Search Results
   -------------------------------------------------------------------------- */
.support-search-results {
    padding: 32px 0 72px;
}

.support-search-results__meta {
    font-size: 14px;
    color: var(--grey-600);
    margin-bottom: 24px;
}

.support-search-results__list {
    max-width: 720px;
}

.support-search-results__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.support-search-results__item:hover {
    box-shadow: 0 4px 16px rgba(10, 38, 71, 0.06);
    border-color: var(--brand-200);
    text-decoration: none;
}

.support-search-results__item-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.support-search-results__item-link:hover {
    text-decoration: none;
}

.support-search-results__content {
    flex: 1;
    min-width: 0;
}

.support-search-results__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-500);
    margin: 0 0 6px;
    line-height: 1.4;
}

.support-search-results__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--grey-500);
    font-weight: 500;
    margin-bottom: 6px;
    background: var(--grey-100);
    padding: 2px 10px;
    border-radius: 100px;
}

.support-search-results__summary {
    font-size: 14px;
    color: var(--grey-600) !important;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-search-results__arrow {
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--grey-400);
    font-size: 13px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.support-search-results__item:hover .support-search-results__arrow {
    color: var(--brand-300);
    transform: translateX(2px);
}

.support-search-results__admin-link {
    margin-left: 14px;
    flex-shrink: 0;
}

/* Empty state */
.support-search-results__empty {
    text-align: center;
    padding: 64px 24px;
}

.support-search-results__empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-search-results__empty-icon i {
    font-size: 28px;
    color: var(--grey-400);
}

.support-search-results__empty h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.support-search-results__empty p {
    font-size: 15px;
    color: var(--grey-600) !important;
}

.support-search-results__empty a {
    color: var(--brand-300);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.support-pagination {
    margin-top: 40px;
}

.support-pagination .page-link {
    font-size: 14px;
    font-family: "Inter", sans-serif;
    color: var(--grey-700);
    border-color: var(--grey-200);
    padding: 8px 14px;
}

.support-pagination .page-item.active .page-link {
    background-color: var(--brand-300);
    border-color: var(--brand-300);
    color: #fff;
}

.support-pagination .page-link:hover {
    background-color: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-300);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.support-footer {
    background: #fff;
    border-top: 1px solid var(--grey-200);
    padding: 24px 0;
}

.support-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-footer__copy {
    font-size: 13px;
    color: var(--grey-500);
}

.support-footer__links {
    display: flex;
    gap: 20px;
}

.support-footer__links a {
    font-size: 13px;
    color: var(--grey-500);
    text-decoration: none;
    transition: color 0.15s ease;
}

.support-footer__links a:hover {
    color: var(--brand-300);
}

.support-nav__link--admin {
    color: var(--brand-300);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .support-sidebar {
        padding-left: 0;
        margin-top: 48px;
        position: static;
        border-top: 1px solid var(--grey-200);
        padding-top: 32px;
    }
}

@media (max-width: 767px) {
    .support-hero {
        padding: 48px 0 40px;
    }

    .support-hero__title {
        font-size: 28px;
    }

    .support-hero__subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .support-search-form__input {
        padding: 14px 14px 14px 48px;
        font-size: 15px;
    }

    .support-categories {
        padding: 32px 0 48px;
    }

    .support-card {
        padding: 20px;
    }

    .support-card__icon-wrapper {
        width: 44px;
        height: 44px;
        margin-right: 16px;
    }

    .support-card__icon-wrapper i {
        font-size: 18px;
    }

    .support-card__title {
        font-size: 15px;
    }

    .support-category-header {
        padding: 24px 0 32px;
    }

    .support-category-header__title {
        font-size: 24px;
    }

    .support-article-list {
        padding: 24px 0 48px;
    }

    .support-article-list__item {
        padding: 16px 20px;
    }

    .support-article-list__admin-link {
        margin-left: 10px;
    }

    .support-search-results__admin-link {
        margin-left: 10px;
    }

    .support-article__title {
        font-size: 26px;
    }

    .support-article {
        padding: 24px 0 48px;
    }

    .support-article__body {
        font-size: 15px;
    }

    .support-search-header {
        padding: 24px 0;
    }

    .support-search-header__title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .support-footer__inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
