/* Custom CSS for Affiliate Network */
/* Professional color palette and refined styling */

/* ========================================
   COLOR PALETTE (CSS Custom Properties)
   ======================================== */
:root {
    /* Primary - Deep Indigo */
    --color-primary: #4F46E5;
    --color-primary-dark: #4338CA;
    --color-primary-light: #6366F1;
    
    /* Accent - Emerald/Teal */
    --color-accent: #10B981;
    --color-accent-dark: #059669;
    --color-accent-light: #34D399;
    
    /* Neutrals */
    --color-slate-50: #F8FAFC;
    --color-slate-100: #F1F5F9;
    --color-slate-200: #E2E8F0;
    --color-slate-300: #CBD5E1;
    --color-slate-400: #94A3B8;
    --color-slate-500: #64748B;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1E293B;
    --color-slate-900: #0F172A;
}

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

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

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Staggered animations for cards */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ========================================
   PROFESSIONAL COMPONENT OVERRIDES
   ======================================== */

/* Primary button - refined */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.5);
}

/* Secondary/outline button */
.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--color-slate-300);
    color: var(--color-slate-700);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Professional card styling */
.card-professional {
    background: white;
    border: 1px solid var(--color-slate-200);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-professional:hover {
    border-color: var(--color-slate-300);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Icon containers */
.icon-container {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: white;
}

.icon-container-accent {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle background pattern */
.hero-pattern {
    background-color: var(--color-slate-50);
    background-image: 
        radial-gradient(at 40% 20%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(79, 70, 229, 0.03) 0px, transparent 50%);
}

/* Stats bar styling */
.stats-bar {
    background: var(--color-slate-900);
    color: white;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-slate-700);
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
    color: var(--color-slate-600);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Section styling */
.section-heading {
    color: var(--color-slate-900);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-subheading {
    color: var(--color-slate-500);
    font-weight: 400;
}

/* Feature badge/pill */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Timeline/steps styling */
.step-line {
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-dot-accent {
    background: var(--color-accent);
}

/* Footer professional styling */
.footer-professional {
    background: var(--color-slate-900);
    color: var(--color-slate-300);
}

.footer-link {
    color: var(--color-slate-400);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

/* Chart container sizing */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* CTA section gradient */
.cta-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* Trust badges */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-slate-500);
    font-size: 14px;
}
