/**
 * CreatorFlow Affiliate Program Page
 *
 * Brand Colors:
 * - Primary Accent: #d1fe17 (Lime Green)
 * - Dark Background: #000000 (Pure Black ONLY)
 * - Light Background: #ffffff (White)
 * - Grey Backgrounds: #f9fafb, #f3f4f6
 *
 * Typography:
 * - Headings: "Stack Sans Headline" (weights 600-700)
 * - Body: System fonts
 *
 * CRITICAL RULES:
 * - NO box-shadows (except box-shadow: none to remove inherited)
 * - NO gradients on dark backgrounds
 * - ONLY #000000 for dark backgrounds (no #111827, #2d2d2d, etc.)
 */

/* ========================================
   GLOBAL STYLES & RESETS
   ======================================== */

* {
    box-sizing: border-box;
}

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

.affiliate-hero {
    background: #ffffff;
    padding: 6rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.affiliate-hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-hero__badge {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.affiliate-hero__badge span {
    margin-right: 0.25rem;
}

.affiliate-hero__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.affiliate-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.affiliate-hero__cta {
    background: #000000;
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.affiliate-hero__cta:hover {
    background: #d1fe17;
    color: #000000;
    transform: translateY(-2px);
}

.affiliate-hero__microcopy {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

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

.affiliate-stats {
    background: #f9fafb;
    padding: 4rem 2rem;
}

.affiliate-stats__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #d1fe17;
}

.stat-card__number {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d1fe17;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card__label {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.stat-card__description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ========================================
   SECTION BADGES & TITLES (REUSABLE)
   ======================================== */

.section-badge {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 3rem;
    max-width: 700px;
}

/* ========================================
   WHAT YOU'LL PROMOTE SECTION
   ======================================== */

.affiliate-promote {
    background: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
}

.affiliate-promote__container {
    max-width: 1200px;
    margin: 0 auto;
}

.promote-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.promote-feature {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: left;
}

.promote-feature:hover {
    border-color: #d1fe17;
    background: #ffffff;
}

.promote-feature__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.promote-feature__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.promote-feature__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

/* ========================================
   MARKETING ASSETS SECTION
   ======================================== */

.affiliate-assets {
    background: #f9fafb;
    padding: 5rem 2rem;
    text-align: center;
}

.affiliate-assets__container {
    max-width: 1200px;
    margin: 0 auto;
}

.assets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.asset-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.asset-card:hover {
    border-color: #d1fe17;
    transform: translateY(-4px);
}

.asset-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.asset-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-card__badge {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.75rem;
}

.asset-card__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
    padding: 0 1.5rem;
}

.asset-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    padding: 0 1.5rem 1.5rem;
}

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

.affiliate-benefits {
    background: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
}

.affiliate-benefits__container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #d1fe17;
    background: #ffffff;
}

.benefit-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.benefit-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.affiliate-how-it-works {
    background: #f9fafb;
    padding: 5rem 2rem;
    text-align: center;
}

.affiliate-how-it-works__container {
    max-width: 900px;
    margin: 0 auto;
}

.steps-container {
    margin-top: 3rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: #d1fe17;
}

.step-item__number {
    width: 52px;
    height: 52px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.step-item__content {
    flex: 1;
}

.step-item__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.step-item__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

/* ========================================
   COMMISSION STRUCTURE SECTION
   ======================================== */

.affiliate-commission {
    background: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
}

.affiliate-commission__container {
    max-width: 1200px;
    margin: 0 auto;
}

.commission-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.tier-card {
    background: #f9fafb;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
}

.tier-card:hover {
    border-color: #d1fe17;
}

.tier-card--featured {
    background: #ffffff;
    border: 3px solid #d1fe17;
}

.tier-card__badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #d1fe17;
    color: #000000;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-card__badge {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.tier-card__rate {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tier-card__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.tier-card__description {
    text-align: left;
}

.tier-card__description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-features li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
    padding-left: 0;
}

/* Commission Example */

.commission-example {
    background: #f9fafb;
    padding: 3rem 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    max-width: 800px;
    margin: 0 auto;
}

.commission-example__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2rem;
}

.example-calculation {
    text-align: left;
}

.example-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.example-item:last-child {
    border-bottom: none;
}

.example-item--highlight {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid #d1fe17;
    margin-top: 1rem;
}

.example-label {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.example-value {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.example-value strong {
    color: #d1fe17;
}

/* ========================================
   WHO SHOULD APPLY SECTION
   ======================================== */

.affiliate-who {
    background: #f9fafb;
    padding: 5rem 2rem;
    text-align: center;
}

.affiliate-who__container {
    max-width: 1200px;
    margin: 0 auto;
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.who-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    transition: all 0.3s ease;
}

.who-card:hover {
    border-color: #d1fe17;
    transform: translateY(-4px);
}

.who-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.who-card__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.who-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

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

.affiliate-faq {
    background: #ffffff;
    padding: 5rem 2rem;
}

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

.faq-title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* FAQ styles come from faq-unified.css */

/* ========================================
   FINAL CTA SECTION
   ======================================== */

.affiliate-final-cta {
    background: #000000; /* ONLY #000000 - pure black */
    padding: 60px 40px;
    text-align: center;
    border-radius: 32px;
    margin: 40px auto;
    max-width: 1400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.affiliate-final-cta__container {
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-final-cta__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.affiliate-final-cta__description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.final-cta-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.cta-feature {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.affiliate-final-cta__button {
    background: #d1fe17;
    color: #000000;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.affiliate-final-cta__button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.affiliate-final-cta__microcopy {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: 1rem;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #d1fe17;
    color: #000000;
}

.modal-content {
    width: 100%;
    height: 90vh;
    max-height: 800px;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .affiliate-hero {
        padding: 7rem 2rem 5rem;
    }

    .affiliate-stats__container {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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

    .final-cta-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .affiliate-hero {
        padding: 8rem 2rem 6rem;
    }

    .promote-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .assets-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .who-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .step-item {
        gap: 2rem;
        padding: 2.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .affiliate-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .affiliate-hero__cta {
        width: 100%;
        padding: 16px 32px;
    }

    .affiliate-stats,
    .affiliate-promote,
    .affiliate-assets,
    .affiliate-benefits,
    .affiliate-how-it-works,
    .affiliate-commission,
    .affiliate-who,
    .affiliate-faq {
        padding: 3rem 1.5rem;
    }

    .affiliate-final-cta {
        padding: 40px 24px;
        border-radius: 24px;
        margin: 30px auto;
    }

    .affiliate-final-cta__button {
        width: 100%;
        padding: 16px 32px;
    }

    .step-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-item__number {
        width: 48px;
        height: 48px;
        font-size: 1.375rem;
    }

    .tier-card__rate {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .affiliate-final-cta {
        padding: 30px 20px;
        border-radius: 20px;
        margin: 20px auto;
    }
}
