/* Affiliates Page - Completely Standalone CSS */
/* All base styles, variables, and page-specific styles included */

/* ==================== CSS Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fixed header spacing - ensure content doesn't hide under header */
.affiliates-page {
    padding-top: 100px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== Color Variables ==================== */
.affiliates-page {
    --primary-red: #A01D26;
    --primary-red-dark: #8b1920;
    --primary-red-light: #c92434;
    --dark-text: #1a1a1a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* ==================== Common Button Styles ==================== */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #A01D26 0%, #8b1920 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(160, 29, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(160, 29, 38, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #A01D26;
    border: 2px solid #A01D26;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #A01D26;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==================== Section Base Styles ==================== */
.section {
    padding: 80px 0;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== Hero Section ==================== */
.affiliates-hero {
    padding: 80px 0 80px;
    margin-top: 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.affiliates-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(160, 29, 38, 0.05) 0%, transparent 100%);
    z-index: 0;
}

.affiliates-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #A01D26;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-graphic {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #A01D26 0%, #8b1920 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(160, 29, 38, 0.3);
    animation: float 3s ease-in-out infinite;
}

.hero-graphic i {
    font-size: 8rem;
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==================== Benefits Section ==================== */
.affiliates-benefits {
    background: #ffffff;
}

.benefit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s;
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #A01D26;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #A01D26 0%, #8b1920 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon i {
    font-size: 1.75rem;
    color: white;
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.benefit-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ==================== How It Works Section ==================== */
.affiliates-how-it-works {
    background: #f9fafb;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    height: 100%;
    text-align: center;
    position: relative;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: #A01D26;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #A01D26 0%, #8b1920 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(160, 29, 38, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #f9fafb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
}

.step-icon i {
    font-size: 2rem;
    color: #A01D26;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.step-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ==================== Commission Structure ==================== */
.affiliates-commissions {
    background: #ffffff;
}

.commission-tier {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.commission-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.commission-tier.featured {
    border-color: #A01D26;
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(160, 29, 38, 0.15);
}

.tier-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.commission-tier.featured .tier-badge {
    background: linear-gradient(135deg, #A01D26 0%, #8b1920 100%);
    color: white;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.tier-commission {
    font-size: 4rem;
    font-weight: 800;
    color: #A01D26;
    line-height: 1;
    margin-bottom: 15px;
}

.tier-description {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 30px;
}

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

.tier-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features i {
    color: #10b981;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.commissions-note {
    margin-top: 40px;
    padding: 25px;
    background: #f9fafb;
    border-left: 4px solid #A01D26;
    border-radius: 8px;
}

.commissions-note p {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

.commissions-note i {
    color: #A01D26;
    margin-right: 8px;
}

/* ==================== Brands Section ==================== */
.affiliates-brands {
    background: #f9fafb;
}

.brand-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 35px 25px;
    height: 100%;
    text-align: center;
    transition: all 0.3s;
}

.brand-card:hover {
    border-color: #A01D26;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-logo h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #A01D26;
    margin: 0;
}

.brand-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}

.brand-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== Features Section ==================== */
.affiliates-features {
    background: #ffffff;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #A01D26 0%, #8b1920 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.dashboard-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
}

.preview-header i {
    font-size: 1.5rem;
    color: #A01D26;
}

.preview-header span {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.preview-stat {
    text-align: center;
}

.preview-stat .stat-label {
    font-size: 0.75rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.preview-stat .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #A01D26;
    line-height: 1;
}

/* ==================== FAQ Section ==================== */
.affiliates-faq {
    background: #f9fafb;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item.expanded {
    border-color: #A01D26;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    background: white;
    font-weight: 600;
    color: #1a1a1a;
    gap: 15px;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-item.expanded .faq-question {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.faq-question span {
    flex: 1;
    font-size: 1.0625rem;
}

.faq-question i {
    font-size: 0.875rem;
    color: #A01D26;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.expanded .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 20px 25px;
    background: white;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.expanded .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== CTA Section ==================== */
.affiliates-cta {
    background: #ffffff;
}

.cta-box {
    background: linear-gradient(135deg, #A01D26 0%, #8b1920 100%);
    color: white;
    padding: 60px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(160, 29, 38, 0.3);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-box .btn-primary {
    background: white;
    color: #A01D26;
}

.cta-box .btn-primary:hover {
    background: #f9fafb;
    color: #A01D26;
}

.cta-box .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-box .btn-secondary:hover {
    background: white;
    color: #A01D26;
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.cta-note a {
    color: white;
    text-decoration: underline;
}

.cta-note a:hover {
    opacity: 0.8;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-graphic {
        width: 250px;
        height: 250px;
    }

    .hero-graphic i {
        font-size: 6rem;
    }

    .features-list {
        margin-bottom: 40px;
    }

    .cta-box {
        padding: 50px 40px;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .affiliates-page {
        padding-top: 80px;
    }

    .affiliates-hero {
        padding: 60px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-graphic {
        width: 200px;
        height: 200px;
    }

    .hero-graphic i {
        font-size: 5rem;
    }

    .benefit-card,
    .step-card,
    .commission-tier,
    .brand-card {
        margin-bottom: 20px;
    }

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

    .preview-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }

    .faq-question {
        padding: 16px 20px;
    }

    .faq-answer {
        padding: 16px 20px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .benefit-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .benefit-icon i,
    .feature-icon i {
        font-size: 1.25rem;
    }

    .step-icon {
        width: 70px;
        height: 70px;
    }

    .step-icon i {
        font-size: 1.75rem;
    }
}
