/**
 * Instagram DM Marketing Examples - Hub Page
 * CreatorFlow Brand Guidelines:
 * - NO box-shadows (use borders for elevation)
 * - ONLY #000000 for dark backgrounds (NO #111827, #2d2d2d, etc.)
 * - Lime green #d1fe17 for accents only (sparingly)
 * - NO gradients on dark backgrounds
 * - NO gray separator/divider lines between sections
 * - Mobile-first design
 */

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
    --ex-black: #000000;
    --ex-white: #ffffff;
    --ex-lime: #d1fe17;
    --ex-grey-50: #f9fafb;
    --ex-grey-100: #f3f4f6;
    --ex-grey-200: #e5e7eb;
    --ex-grey-400: #9ca3af;
    --ex-grey-500: #6b7280;
    --ex-grey-600: #4b5563;
    --ex-grey-700: #374151;
    --ex-font-headline: 'neusanstrial', sans-serif;
}

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

.examples-page {
    background: var(--ex-white);
    padding-bottom: 0;
}

/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */

.ex-hero {
    background: var(--ex-white);
    padding: 10rem 0 2.5rem;
    text-align: center;
}

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

.ex-hero__badge {
    display: inline-block;
    background: var(--ex-lime);
    color: var(--ex-black);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-family: var(--ex-font-headline);
}

.ex-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: var(--ex-black) !important;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-family: var(--ex-font-headline);
}

.ex-hero__subtitle {
    font-size: 1rem;
    color: var(--ex-grey-600);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

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

/* Small mobile: max 480px */
@media (max-width: 480px) {
    .ex-hero {
        padding: 7.5rem 0 1.25rem;
    }

    .ex-hero__badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.75rem;
    }

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

/* ==========================================================================
   SECTION 2: CATEGORY FILTER
   ========================================================================== */

.ex-filter {
    background: var(--ex-white);
    padding: 1.25rem 0;
    position: sticky;
    top: 80px;
    z-index: 50;
}

body.has-announcement-banner .ex-filter {
    top: 80px;
}

.ex-filter__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.ex-filter__tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.ex-filter__tabs::-webkit-scrollbar {
    display: none;
}

.ex-filter__tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    background: transparent;
    color: var(--ex-grey-700);
    border: 1px solid var(--ex-grey-200);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--ex-font-headline);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ex-filter__tab:hover {
    border-color: var(--ex-black);
    color: var(--ex-black);
}

.ex-filter__tab--active {
    background: var(--ex-black);
    color: var(--ex-white);
    border-color: var(--ex-black);
}

.ex-filter__tab--active:hover {
    background: var(--ex-black);
    border-color: var(--ex-black);
}

/* Mobile responsive for filter tabs */
@media (max-width: 768px) {
    .ex-hero__container,
    .ex-filter__container,
    .ex-examples,
    .ex-seo-content,
    .ex-free-tools,
    .ex-faq,
    .ex-final-cta {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .ex-final-cta {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .ex-filter__tab {
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .ex-hero__container,
    .ex-filter__container,
    .ex-examples,
    .ex-seo-content,
    .ex-free-tools,
    .ex-faq,
    .ex-final-cta {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .ex-final-cta {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .ex-filter__tab {
        padding: 0.3125rem 0.5rem;
        font-size: 0.625rem;
    }
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-filter__container {
        padding: 0 3rem;
    }

    .ex-filter__tabs {
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .ex-filter__tab {
        padding: 0.5rem 1rem;
    }
}

/* ==========================================================================
   SECTION 3: EXAMPLES GRID
   ========================================================================== */

.ex-examples {
    background: var(--ex-white);
    padding: 2rem 3rem 2rem;
}

.ex-examples__container {
    max-width: 1200px;
    margin: 0 auto;
}

.ex-category {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ex-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.ex-category.hidden {
    display: none;
}

.ex-category.visible {
    display: block;
}

.ex-category__title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 0.375rem;
    font-family: var(--ex-font-headline);
    text-align: left;
    line-height: 1.3;
}

.ex-category__description {
    font-size: 0.9375rem;
    color: var(--ex-grey-500);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: left;
    max-width: 550px;
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-category__description {
        margin-bottom: 1.75rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .ex-category__description {
        margin-bottom: 2rem;
    }
}

.ex-examples__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-examples {
        padding: 4rem 2rem 2.5rem;
    }

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

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .ex-examples {
        padding: 5rem 2rem 3rem;
    }

    .ex-examples__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .ex-category {
        margin-bottom: 4rem;
    }
}

/* ==========================================================================
   EXAMPLE CARD
   ========================================================================== */

.ex-example-card {
    display: flex;
    flex-direction: column;
    background: var(--ex-grey-50);
    border: 1px solid var(--ex-grey-200);
    border-radius: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.ex-example-card:hover {
    border-color: var(--ex-lime);
    background: var(--ex-white);
}

.ex-example-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.ex-example-card__icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background: var(--ex-lime);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ex-example-card__icon {
    font-size: 1.25rem;
    color: var(--ex-black);
}

.ex-example-card__icon-fallback {
    font-size: 1.25rem;
}

.ex-example-card__info {
    flex: 1;
    min-width: 0;
}

.ex-example-card__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 0.25rem;
    font-family: var(--ex-font-headline);
    line-height: 1.3;
}

.ex-example-card__badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-family: var(--ex-font-headline);
    background: var(--ex-grey-100);
    color: var(--ex-grey-700);
    border: 1px solid var(--ex-grey-200);
}

/* Coming Soon Badge Style */
.ex-example-card__badge--coming-soon {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

/* Coming Soon Card Style */
.ex-example-card--coming-soon {
    opacity: 0.85;
}

.ex-example-card--coming-soon .ex-example-card__icon-wrapper {
    background: #fef3c7;
}

.ex-example-card--coming-soon:hover {
    border-color: #fcd34d;
}

.ex-example-card__description {
    font-size: 0.8125rem;
    color: var(--ex-grey-600);
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

.ex-example-card__arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--ex-grey-400);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ex-example-card:hover .ex-example-card__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-example-card {
        padding: 1.125rem;
    }

    .ex-example-card__icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .ex-example-card__icon {
        font-size: 1.375rem;
    }

    .ex-example-card__name {
        font-size: 1rem;
    }

    .ex-example-card__description {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   SECTION 4: SEO CONTENT
   ========================================================================== */

.ex-seo-content {
    background: var(--ex-grey-50);
    padding: 2.5rem 3rem;
}

.ex-seo-content__container {
    max-width: 1100px;
    margin: 0 auto;
}

.ex-seo-content__intro {
    margin-bottom: 2.5rem;
    text-align: center;
}

.ex-seo-content__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 1rem;
    font-family: var(--ex-font-headline);
}

.ex-seo-content__text {
    font-size: 1rem;
    color: var(--ex-grey-600);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.ex-seo-content__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.ex-seo-content__block {
    background: var(--ex-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--ex-grey-200);
}

.ex-seo-content__block-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 1rem;
    font-family: var(--ex-font-headline);
}

.ex-seo-content__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ex-seo-content__list-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: var(--ex-grey-700);
    line-height: 1.5;
}

.ex-seo-content__list-item:last-child {
    margin-bottom: 0;
}

.ex-seo-content__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--ex-lime);
    border-radius: 50%;
}

.ex-seo-content__categories {
    margin-bottom: 2.5rem;
}

.ex-seo-content__categories-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 1.25rem;
    font-family: var(--ex-font-headline);
    text-align: center;
}

.ex-seo-content__categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.ex-seo-content__category-card {
    background: var(--ex-white);
    border: 1px solid var(--ex-grey-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.ex-seo-content__category-card:hover {
    border-color: var(--ex-lime);
}

.ex-seo-content__category-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 0.5rem;
    font-family: var(--ex-font-headline);
}

.ex-seo-content__category-desc {
    font-size: 0.875rem;
    color: var(--ex-grey-600);
    line-height: 1.5;
    margin: 0;
}

.ex-seo-content__resources {
    background: var(--ex-black);
    border-radius: 1rem;
    padding: 1.5rem;
}

.ex-seo-content__resources-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ex-white);
    margin-bottom: 1rem;
    font-family: var(--ex-font-headline);
}

.ex-seo-content__resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ex-seo-content__resource-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ex-seo-content__resource-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ex-seo-content__resource-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ex-lime);
    font-family: var(--ex-font-headline);
}

.ex-seo-content__resource-desc {
    font-size: 0.8125rem;
    color: var(--ex-grey-400);
    line-height: 1.4;
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-seo-content {
        padding: 3rem 2rem;
    }

    .ex-seo-content__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ex-seo-content__categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ex-seo-content__resources {
        padding: 2rem;
    }

    .ex-seo-content__resources-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ex-seo-content__resource-link {
        flex: 1 1 calc(50% - 0.375rem);
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .ex-seo-content {
        padding: 3.5rem 2rem;
    }

    .ex-seo-content__categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ex-seo-content__resource-link {
        flex: 1 1 calc(33.333% - 0.5rem);
    }
}

/* ==========================================================================
   SECTION 5: FREE TOOLS INTERLINKING
   ========================================================================== */

.ex-free-tools {
    background: var(--ex-grey-50);
    padding: 2.5rem 3rem;
}

.ex-free-tools__container {
    max-width: 1100px;
    margin: 0 auto;
}

.ex-free-tools__header {
    text-align: center;
    margin-bottom: 2rem;
}

.ex-free-tools__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 0.75rem;
    font-family: var(--ex-font-headline);
}

.ex-free-tools__subtitle {
    font-size: 1rem;
    color: var(--ex-grey-600);
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto;
}

.ex-free-tools__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ex-free-tools__card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--ex-white);
    border: 1px solid var(--ex-grey-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.ex-free-tools__card:hover {
    border-color: var(--ex-lime);
}

.ex-free-tools__card-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.ex-free-tools__card-content {
    flex: 1;
}

.ex-free-tools__card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 0.25rem;
    font-family: var(--ex-font-headline);
    line-height: 1.3;
}

.ex-free-tools__card-description {
    font-size: 0.875rem;
    color: var(--ex-grey-600);
    line-height: 1.5;
    margin: 0;
}

.ex-free-tools__cta {
    text-align: center;
}

.ex-free-tools__button {
    display: inline-block;
    background: var(--ex-black);
    color: var(--ex-white);
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--ex-font-headline);
}

.ex-free-tools__button:hover {
    background: var(--ex-lime);
    color: var(--ex-black);
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-free-tools {
        padding: 3rem 2rem;
    }

    .ex-free-tools__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .ex-free-tools__card {
        padding: 1.5rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .ex-free-tools {
        padding: 3.5rem 2rem;
    }

    .ex-free-tools__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .ex-free-tools__header {
        margin-bottom: 2.5rem;
    }

    .ex-free-tools__card-icon {
        font-size: 2rem;
    }
}

/* ==========================================================================
   SECTION 6: FAQ
   ========================================================================== */

.ex-faq {
    background: var(--ex-white);
    padding: 2.5rem 3rem;
}

.ex-faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.ex-faq__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--ex-black);
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--ex-font-headline);
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-faq {
        padding: 3rem 2rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .ex-faq {
        padding: 3.5rem 2rem;
    }
}

/* ===== EXTRA SMALL MOBILE: 360px ===== */
@media (max-width: 360px) {
    .ex-hero__container,
    .ex-filter__container,
    .ex-examples,
    .ex-seo-content,
    .ex-free-tools,
    .ex-faq,
    .ex-final-cta {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .ex-final-cta {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
}

/* ==========================================================================
   SECTION 7: FINAL CTA
   ========================================================================== */

.ex-final-cta {
    background: var(--ex-black);
    padding: 2.5rem 3rem;
    text-align: center;
    border-radius: 24px;
    margin: 1.5rem 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ex-final-cta__container {
    max-width: 700px;
    margin: 0 auto;
}

.ex-final-cta__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--ex-white);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: var(--ex-font-headline);
}

.ex-final-cta__subtitle {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ex-final-cta__button {
    display: inline-block;
    background: var(--ex-lime);
    color: var(--ex-black);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--ex-font-headline);
}

.ex-final-cta__button:hover {
    background: var(--ex-white);
    color: var(--ex-black);
}

.ex-final-cta__microcopy {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--ex-grey-400);
}

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .ex-final-cta {
        padding: 3rem 2rem;
        border-radius: 28px;
        margin: 2rem 2rem 0;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .ex-final-cta {
        padding: 3.5rem 3rem;
        border-radius: 32px;
        margin: 2.5rem auto 0;
        max-width: 1200px;
    }
}
