/*
Theme Name: AffiliateEngine
Theme URI: https://affiliateengine.dev
Author: Developer
Author URI: https://affiliateengine.dev
Description: WordPress Theme Framework tối ưu tốc độ build web Affiliate. Trang chủ clone-ready, Blog & Single có sẵn khung sườn tiêu chuẩn.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor
*/

/* ═══════════════════════════════════════════════
   ROOT VARIABLES — BitStarz Dark Purple Theme
   ═══════════════════════════════════════════════ */
:root {
    --brand: #7B29FF;
    --brand-hover: #6318E0;
    --cta: #FFD700;
    --cta-hover: #E5C200;
    --dark: #0f0d1a;
    --dark-2: #1a1730;
    --dark-3: #252040;
    --dark-4: #302a52;
    --accent: #00D4FF;
    --success: #00E676;
}

/* Reset & Base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-hover); }

/* ═══════════════════════════════════════════════
   GLOW EFFECTS
   ═══════════════════════════════════════════════ */
.glow-brand {
    box-shadow: 0 0 20px rgba(123, 41, 255, 0.3), 0 0 60px rgba(123, 41, 255, 0.1);
}
.glow-brand:hover {
    box-shadow: 0 0 30px rgba(123, 41, 255, 0.5), 0 0 80px rgba(123, 41, 255, 0.2);
}
.glow-cta {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.1);
}
.glow-cta:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 215, 0, 0.2);
}

/* ═══════════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════════ */
.text-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-purple {
    background: linear-gradient(135deg, #9B59FF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════
   GLASS CARD
   ═══════════════════════════════════════════════ */
.glass-card {
    background: rgba(37, 32, 64, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(123, 41, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(37, 32, 64, 0.85);
    border-color: rgba(123, 41, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(123, 41, 255, 0.15);
}

/* ═══════════════════════════════════════════════
   CTA BUTTON STYLES
   ═══════════════════════════════════════════════ */
.btn-cta {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0f0d1a;
    font-weight: 800;
    padding: 14px 36px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFED4A 0%, #FFD700 100%);
}
.btn-cta:active {
    transform: translateY(0) scale(0.98);
}

.btn-brand {
    background: linear-gradient(135deg, #7B29FF 0%, #6318E0 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(123, 41, 255, 0.3);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(123, 41, 255, 0.5);
    background: linear-gradient(135deg, #9B59FF 0%, #7B29FF 100%);
}

/* ═══════════════════════════════════════════════
   ANIMATED BORDER
   ═══════════════════════════════════════════════ */
.animated-border {
    position: relative;
    overflow: hidden;
}
.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #7B29FF, #00D4FF, #FFD700, #7B29FF);
    background-size: 300% 300%;
    animation: borderRotate 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════════
   STAT COUNTER
   ═══════════════════════════════════════════════ */
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════
   BONUS STEP CARD
   ═══════════════════════════════════════════════ */
.bonus-step {
    position: relative;
    counter-increment: step;
}
.bonus-step::before {
    content: counter(step);
    position: absolute;
    top: -14px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7B29FF, #00D4FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    z-index: 2;
}

/* ═══════════════════════════════════════════════
   SECTION DIVIDER
   ═══════════════════════════════════════════════ */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(123,41,255,0.5) 50%, transparent 100%);
    margin: 0 auto;
    max-width: 600px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.75rem;
    }
    .btn-cta {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS (IntersectionObserver activated)  
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }