/* ==========================================================================
   JobOoro FAQ Page
   File: /assets/css/faq.css

   Requirements:
   - No Bootstrap
   - No Bootstrap Icons
   - No JavaScript dependency
   - Responsive
   - Accessible
   - Performance-conscious
   - FAQ-specific styles only
   ========================================================================== */


/* ==========================================================================
   FAQ HERO
   ========================================================================== */

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef4ff 50%,
            #ffffff 100%
        );
    border-bottom: 1px solid #e5e7eb;
}

.faq-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -220px;
    right: -150px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.07);
    pointer-events: none;
}

.faq-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    bottom: -170px;
    left: -100px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.05);
    pointer-events: none;
}

.faq-hero .site-container {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 850px;
    margin: 2.5rem auto 0;
    text-align: center;
}

.page-hero-content h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: #111827;
}

.page-hero-description {
    max-width: 720px;
    margin: 1.35rem auto 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #4b5563;
}


/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6b7280;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #374151;
}


/* ==========================================================================
   EYEBROW
   ========================================================================== */

.eyebrow {
    margin: 0 0 0.65rem;
    color: #2563eb;
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ==========================================================================
   SEARCH SECTION
   ========================================================================== */

.faq-search-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.faq-search-form {
    margin-top: 2rem;
}

.faq-search-form > label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f2937;
}

.faq-search-controls {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.faq-search-controls input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    line-height: 1.4;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.faq-search-controls input[type="search"]::placeholder {
    color: #9ca3af;
}

.faq-search-controls input[type="search"]:hover {
    border-color: #9ca3af;
}

.faq-search-controls input[type="search"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

.button-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.button-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.button-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.button-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}


/* ==========================================================================
   FAQ RESULTS
   ========================================================================== */

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.faq-item {
    height: 100%;
    scroll-margin-top: 2rem;
}

.faq-item .card-body {
    height: 100%;
    padding: 1.75rem;
}

.faq-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 0.9rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.faq-item h3 {
    margin: 0;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.45;
    font-weight: 750;
}

.faq-item p:last-child {
    margin-top: 0.85rem;
    margin-bottom: 0;
    color: #4b5563;
    font-size: 0.97rem;
    line-height: 1.75;
}


/* ==========================================================================
   CARD SYSTEM
   ========================================================================== */

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.card:hover {
    border-color: #d1d5db;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}


/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.section-heading {
    max-width: 780px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading h2,
.content-narrow h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.section-heading p:last-child,
.content-narrow > p {
    color: #4b5563;
    line-height: 1.8;
}

.section-heading p:last-child {
    margin: 1rem auto 0;
    max-width: 700px;
}


/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.content-section {
    padding: 5rem 0;
}

.content-section-muted {
    background: #f8fafc;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.content-narrow {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.content-narrow > p {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 1rem;
}

.content-narrow h2 + p {
    margin-top: 1.25rem;
}


/* ==========================================================================
   TOPIC CARDS
   ========================================================================== */

.card-grid {
    display: grid;
    gap: 1.25rem;
}

.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid .card-body {
    position: relative;
    min-height: 250px;
}

.card-grid h3 {
    margin: 1rem 0 0.7rem;
    color: #111827;
    font-size: 1.18rem;
    line-height: 1.35;
}

.card-grid p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}


/* ==========================================================================
   TEXT LINKS
   ========================================================================== */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.text-link::after {
    content: "→";
    transition: transform 0.15s ease;
}

.text-link:hover,
.text-link:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: translateX(3px);
}


/* ==========================================================================
   RELATED RESOURCES
   ========================================================================== */

.related-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 120px;
    padding: 1.35rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.035);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.related-link strong {
    color: #111827;
    font-size: 1rem;
    line-height: 1.4;
}

.related-link span {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.6;
}

.related-link:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.related-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.empty-state {
    max-width: 650px;
    margin: 2rem auto 0;
    padding: 3rem 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.empty-state h3 {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1.4;
}

.empty-state p {
    max-width: 540px;
    margin: 0.9rem auto 1.5rem;
    color: #6b7280;
    line-height: 1.7;
}


/* ==========================================================================
   PAGE ACTIONS
   ========================================================================== */

.page-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}


/* ==========================================================================
   TEXT CENTER
   ========================================================================== */

.text-center {
    text-align: center;
}


/* ==========================================================================
   LINKS
   ========================================================================== */

a {
    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.faq-item:target {
    border-color: #93c5fd;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1),
        0 10px 28px rgba(15, 23, 42, 0.08);
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .button,
    .card,
    .related-link,
    .text-link::after,
    .faq-search-controls input[type="search"] {
        transition: none;
    }

    .button:hover,
    .card:hover,
    .related-link:hover {
        transform: none;
    }
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .faq-list {
        grid-template-columns: 1fr;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-links {
        grid-template-columns: 1fr;
    }

    .faq-hero {
        padding: 4rem 0;
    }

    .content-section {
        padding: 4rem 0;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 640px) {

    .faq-hero {
        padding: 3rem 0 3.5rem;
    }

    .page-hero-content {
        margin-top: 2rem;
    }

    .page-hero-content h1 {
        font-size: 2.15rem;
    }

    .page-hero-description {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .breadcrumb {
        justify-content: flex-start;
        font-size: 0.82rem;
    }

    .content-section {
        padding: 3.25rem 0;
    }

    .faq-search-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .faq-search-controls {
        flex-direction: column;
    }

    .faq-search-controls .button {
        width: 100%;
    }

    .faq-search-controls input[type="search"] {
        min-height: 50px;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .section-heading h2,
    .content-narrow h2 {
        font-size: 1.75rem;
    }

    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .card-grid .card-body {
        min-height: auto;
    }

    .faq-item .card-body {
        padding: 1.35rem;
    }

    .faq-item h3 {
        font-size: 1.05rem;
    }

    .faq-item p:last-child {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .related-link {
        min-height: auto;
        padding: 1.2rem;
    }

    .empty-state {
        padding: 2.25rem 1.25rem;
    }

    .page-actions {
        flex-direction: column;
    }

    .page-actions .button {
        width: 100%;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 400px) {

    .page-hero-content h1 {
        font-size: 1.9rem;
    }

    .faq-category {
        font-size: 0.68rem;
    }

    .faq-item .card-body {
        padding: 1.15rem;
    }

    .card-grid .card-body {
        padding: 1.25rem;
    }
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {

    .faq-hero {
        padding: 1rem 0;
        background: none;
        border: 0;
    }

    .faq-hero::before,
    .faq-hero::after {
        display: none;
    }

    .faq-search-section,
    .page-actions {
        display: none;
    }

    .content-section,
    .content-section-muted {
        padding: 1.5rem 0;
        background: #ffffff;
        border: 0;
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .card,
    .related-link {
        box-shadow: none;
        break-inside: avoid;
    }

    .card:hover,
    .related-link:hover {
        transform: none;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }
}