/* ===================================================
   GUIDES HUB PAGE - CreatorFlow
   ===================================================
   Brand Guidelines:
   - NO box-shadows (except box-shadow: none to remove inherited)
   - ONLY #000000 for dark backgrounds
   - Lime green #d1fe17 for accents/badges
   - neusanstrial font for headings
   =================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --guides-lime: #d1fe17;
    --guides-black: #000000;
    --guides-white: #ffffff;
    --guides-gray-50: #f9fafb;
    --guides-gray-100: #f3f4f6;
    --guides-gray-200: #e5e7eb;
    --guides-gray-600: #4b5563;
    --guides-gray-700: #374151;
}

/* ===== HUB PAGE - HERO SECTION ===== */
.guides-hero {
    padding: 10rem 0 2.5rem;
    background: var(--guides-white);
    text-align: center;
}

.guides-hero__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
}

.guides-hero__badge {
    display: inline-block;
    background: transparent;
    color: #6b7280;
    padding: 0;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guides-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: #000000 !important;
    margin: 0 0 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guides-hero__subtitle {
    font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
    color: var(--guides-gray-600);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guides-hero__cta {
    margin-top: 1.25rem;
}

/* ===== FILTER TABS ===== */
.guides-filters {
    padding: 0;
    background: var(--guides-white);
}

.guides-filters__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.guides-filters__tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.875rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
}

.guides-filters__tabs::-webkit-scrollbar {
    display: none;
}

.guides-filter-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--guides-gray-200);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--guides-gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guides-filter-tab:hover {
    border-color: var(--guides-black);
    color: var(--guides-black);
}

.guides-filter-tab--active {
    background: var(--guides-black);
    border-color: var(--guides-black);
    color: var(--guides-white);
}

.guides-filter-tab--active:hover {
    background: var(--guides-black);
    border-color: var(--guides-black);
    color: var(--guides-white);
}

/* ===== GUIDES GRID ===== */
.guides-grid-section {
    padding: 2.5rem 0 3rem;
    margin-top: 1.5rem;
    background: var(--guides-gray-50);
}

.guides-grid__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.guides-empty {
    text-align: center;
    color: var(--guides-gray-600);
    padding: 4rem 2rem;
}

/* ===== GUIDE CARD ===== */
.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--guides-white);
    border: 1px solid var(--guides-gray-200);
    border-radius: 0.875rem;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.guide-card:hover {
    border-color: var(--guides-lime);
}

.guide-card__preview {
    background: var(--guides-black);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 100px;
}

.guide-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--guides-lime);
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
}

.guide-icon {
    font-size: 2rem;
    color: var(--guides-white);
}

.guide-card__content {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card__badge {
    display: inline-block;
    background: var(--guides-gray-100);
    color: var(--guides-gray-700);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.guide-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--guides-black);
    margin: 0 0 0.5rem;
    line-height: 1.35;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guide-card__description {
    font-size: 0.875rem;
    color: var(--guides-gray-600);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.guide-card__meta {
    margin-top: 0.75rem;
}

.guide-reading-time {
    font-size: 0.75rem;
    color: var(--guides-gray-600);
    font-weight: 500;
}

.guide-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--guides-gray-50);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--guides-black);
}

.guide-cta-arrow {
    transition: transform 0.2s ease;
}

.guide-cta-arrow::after {
    content: '\2192';
}

.guide-card:hover .guide-cta-arrow {
    transform: translateX(3px);
}

/* ===== FAQ SECTION ===== */
.guides-faq-section {
    padding: 4rem 0;
    background: var(--guides-white);
}

.guides-faq__container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

.guides-faq__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--guides-black);
    text-align: center;
    margin: 0 0 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guides-faq-section .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guides-faq-section .faq-item {
    background: var(--guides-white);
    border: 1px solid var(--guides-gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.guides-faq-section .faq-item:hover {
    border-color: var(--guides-lime);
}

.guides-faq-section .faq-item[open] {
    border-color: var(--guides-lime);
}

.guides-faq-section .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--guides-black);
    cursor: pointer;
    list-style: none;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background 0.2s ease;
}

.guides-faq-section .faq-question::-webkit-details-marker {
    display: none;
}

.guides-faq-section .faq-question .faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--guides-gray-600);
    flex-shrink: 0;
    margin-left: 0.75rem;
    transition: transform 0.2s ease;
}

.guides-faq-section .faq-item[open] .faq-question .faq-icon {
    transform: rotate(45deg);
    color: var(--guides-lime);
}

.guides-faq-section .faq-item[open] .faq-question {
    background: var(--guides-gray-50);
}

.guides-faq-section .faq-answer {
    padding: 0 1.25rem 1.25rem;
}

.guides-faq-section .faq-answer p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--guides-gray-600);
    margin: 0;
}

/* ===== TABLET RESPONSIVE ===== */
@media (min-width: 769px) and (max-width: 1023px) {
    .guides-hero {
        padding: 9rem 0 2rem;
    }

    .guides-grid-section {
        margin-top: 1rem;
    }

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .guides-hero {
        padding: 8rem 0 1.5rem;
    }

    .guides-hero__container {
        padding: 0 2rem;
    }

    .guides-hero__title {
        font-size: 1.5rem;
    }

    .guides-hero__subtitle {
        font-size: 0.875rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .guides-grid-section {
        padding: 1.5rem 0 2rem;
        margin-top: 1rem;
    }

    .guides-grid__container {
        padding: 0 1rem;
    }

    .guides-filters__container {
        padding: 0 1rem;
    }

    .guides-filters__tabs {
        justify-content: flex-start;
    }

    .guides-filter-tab {
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
    }

    /* Compact card on mobile */
    .guide-card {
        flex-direction: row;
        align-items: stretch;
    }

    .guide-card__preview {
        width: 100px;
        min-width: 100px;
        padding: 1rem 0.75rem;
        flex-shrink: 0;
        flex-direction: column;
        gap: 0.5rem;
    }

    .guide-number {
        font-size: 1.75rem;
    }

    .guide-icon {
        font-size: 1.5rem;
    }

    .guide-card__content {
        padding: 0.875rem 1rem;
        justify-content: center;
    }

    .guide-card__badge {
        font-size: 0.5625rem;
        padding: 0.1875rem 0.4375rem;
        margin-bottom: 0.375rem;
    }

    .guide-card__title {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }

    .guide-card__description {
        font-size: 0.75rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .guide-card__meta {
        margin-top: 0.5rem;
    }

    .guide-reading-time {
        font-size: 0.6875rem;
    }

    .guide-card__cta {
        display: none;
    }

    /* FAQ responsive */
    .guides-faq-section {
        padding: 2.5rem 0;
    }

    .guides-faq__container {
        padding: 0 1rem;
    }

    .guides-faq__title {
        margin-bottom: 1.5rem;
        font-size: 1.375rem;
    }

    .guides-faq-section .faq-list {
        gap: 0.5rem;
    }

    .guides-faq-section .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .guides-faq-section .faq-answer {
        padding: 0 1rem 1rem;
    }

    .guides-faq-section .faq-answer p {
        font-size: 0.8125rem;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    .guides-hero {
        padding: 7.5rem 0 1.25rem;
    }

    .guides-hero__container {
        padding: 0 1.5rem;
    }

    .guides-hero__badge {
        font-size: 0.6875rem;
        padding: 0;
        margin-bottom: 1.25rem;
    }

    .guides-hero__title {
        font-size: 1.25rem;
    }

    .guides-filter-tab {
        padding: 0.3125rem 0.5rem;
        font-size: 0.625rem;
    }

    .guides-grid {
        gap: 0.75rem;
    }

    .guides-grid-section {
        margin-top: 0.75rem;
    }

    /* Extra small mobile card */
    .guide-card__preview {
        width: 80px;
        min-width: 80px;
        padding: 0.75rem 0.5rem;
    }

    .guide-number {
        font-size: 1.5rem;
    }

    .guide-icon {
        font-size: 1.25rem;
    }

    .guide-card__content {
        padding: 0.625rem 0.875rem;
    }

    .guide-card__badge {
        font-size: 0.5rem;
        padding: 0.125rem 0.3125rem;
    }

    .guide-card__title {
        font-size: 0.8125rem;
    }

    .guide-card__description {
        font-size: 0.6875rem;
        -webkit-line-clamp: 2;
    }

    /* FAQ mobile */
    .guides-faq-section {
        padding: 2rem 0;
    }

    .guides-faq__title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .guides-faq-section .faq-question {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }

    .guides-faq-section .faq-question .faq-icon {
        font-size: 1.125rem;
    }

    .guides-faq-section .faq-answer {
        padding: 0 0.875rem 0.875rem;
    }

    .guides-faq-section .faq-answer p {
        font-size: 0.75rem;
    }
}

/* ===== EXTRA SMALL MOBILE: 360px ===== */
@media (max-width: 360px) {
    .guides-hero__container {
        padding: 0 1.25rem;
    }
}
