/* ============================================
   Affiliate Program Hero Section - Zencia.AI (CENTERED LAYOUT)
   ============================================ */

/* ===== AFFILIATE HERO SECTION ===== */
.affiliate-hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1419 0%, #082928 100%);
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

/* ===== ANIMATED BACKGROUND ===== */
.affiliate-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-image: url('../../images/zenciahero-background.svg');
    background-size: cover; /* Change from 110% 110% to cover */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: brightness(0.8);
}

/* Animated gradient overlay */
.affiliate-hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 213, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 139, 139, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes svgFloat {
    0%, 100% {
        transform: scale(1);
        background-position: center center;
    }
    50% {
        transform: scale(1.08);
        background-position: calc(center + 20px) calc(center + 15px);
    }
}

.affiliate-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

/* Floating particles effect */
.affiliate-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.affiliate-hero-particles .particle {
    position: absolute;
    background: #00D9D5;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}

.affiliate-hero-particles .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.affiliate-hero-particles .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.affiliate-hero-particles .particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.affiliate-hero-particles .particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 70%;
    animation-delay: 6s;
}

/* ===== HERO CONTENT (CENTERED) ===== */
.affiliate-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 0;
    text-align: center; /* Center align all content */
}

/* CHANGED: Single column centered layout instead of grid */
.affiliate-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    max-width: 900px; /* Limit max width for better readability */
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== CENTERED CONTENT ===== */
.affiliate-hero-text {
    max-width: 900px; /* Increased max width for centered layout */
    padding: 0; /* Remove right padding */
    text-align: center; /* Ensure text is centered */
}

.affiliate-hero-title {
    font-size: clamp(2.8rem, 4vw, 4.5rem); /* Slightly larger for centered layout */
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

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

.affiliate-hero-title .title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.affiliate-hero-title .highlight {
    display: block;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 217, 213, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.affiliate-hero-description {
    font-size: clamp(1.1rem, 1vw, 1.3rem); /* Slightly larger for centered layout */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-align: center;
    max-width: 800px; /* Limit width for better readability */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* ===== HERO BUTTONS (CENTERED) ===== */
.affiliate-hero-buttons {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    text-align: center;
}

.affiliate-cta {
    display: inline-block;
    padding: 1.4rem 3.5rem; /* Slightly larger padding */
    background: linear-gradient(135deg, #00D9D5 0%, #008B8B 100%);
    color: #FFFFFF;
    font-size: 1.2rem; /* Slightly larger font */
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 220px; /* Slightly wider */
}

.affiliate-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.5);
}

/* Text change on hover */
.affiliate-cta .btn-text-default,
.affiliate-cta .btn-text-hover {
    display: inline-block;
    transition: all 0.3s ease;
}

.affiliate-cta .btn-text-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
}

.affiliate-cta:hover .btn-text-default {
    transform: translateY(-100%);
    opacity: 0;
}

.affiliate-cta:hover .btn-text-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ===== TRUST INDICATORS (CENTERED) ===== */
.affiliate-stats {
    display: flex;
    gap: 3rem; /* Increased gap for centered layout */
    animation: fadeInUp 1s ease-out 0.6s backwards;
    justify-content: center; /* Center the stats */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.affiliate-stats .stat-item {
    text-align: center; /* Center align each stat */
}

.affiliate-stats .stat-number {
    font-size: clamp(2rem, 3.5vw, 2.8rem); /* Slightly larger for centered layout */
    font-weight: 800;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
    display: block;
}

.affiliate-stats .stat-label {
    font-size: 0.95rem; /* Slightly larger */
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* HIDE RIGHT VISUAL CONTENT */
.affiliate-hero-visual {
    display: none; /* Completely hide the visual container */
}

.affiliate-hero-image,
.hero-image,
.hero-visual-bg,
.bg-circle {
    display: none; /* Hide all visual elements */
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .affiliate-hero-grid {
        max-width: 800px;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .affiliate-hero {
        min-height: auto;
        height: auto;
        padding: 100px 0 50px;
    }
    
    .affiliate-hero-grid {
        padding: 0 1rem;
        min-height: 60vh;
    }
    
    .affiliate-hero-text {
        max-width: 100%;
    }
    
    .affiliate-stats {
        gap: 2rem;
        flex-direction: row; /* Keep horizontal on tablets */
    }
}

@media (max-width: 480px) {
    .affiliate-hero-grid {
        padding: 0 0.5rem;
    }
    
    .affiliate-stats {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 1.5rem;
    }
    
    .affiliate-cta {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.affiliate-cta:focus {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
}