/* Global Styles */
/* Base styles for Trend IQ */

/* ========================================
   ENTRANCE ANIMATIONS - Page Load & Scroll
   ======================================== */

/* Base state for animated elements - ONLY on pages with .has-scroll-animations */
body.has-scroll-animations .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.has-scroll-animations .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Up Animation */
body.has-scroll-animations .fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

body.has-scroll-animations .fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animation */
body.has-scroll-animations .fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

body.has-scroll-animations .fade-in.animated {
    opacity: 1;
}

/* Slide from Left */
body.has-scroll-animations .slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

body.has-scroll-animations .slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from Right */
body.has-scroll-animations .slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

body.has-scroll-animations .slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Up Animation */
body.has-scroll-animations .scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.has-scroll-animations .scale-up.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation delays */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* Page Load Animation */
@keyframes pageLoadFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-load-animate {
    animation: pageLoadFadeUp 0.8s ease-out both;
}

.page-load-animate-delay-1 {
    animation: pageLoadFadeUp 0.8s ease-out 0.1s both;
}

.page-load-animate-delay-2 {
    animation: pageLoadFadeUp 0.8s ease-out 0.2s both;
}

.page-load-animate-delay-3 {
    animation: pageLoadFadeUp 0.8s ease-out 0.3s both;
}

.page-load-animate-delay-4 {
    animation: pageLoadFadeUp 0.8s ease-out 0.4s both;
}

/* ======================================== */

:root {
    --primary-color: #f97316;
    --secondary-color: #3b82f6;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #eab308;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #1f2937;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fb923c;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 
        0 0 0 2px rgba(249, 115, 22, 0.3),
        0 0 15px rgba(249, 115, 22, 0.5),
        0 0 30px rgba(249, 115, 22, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: orangeGlow 2s ease-in-out infinite;
}

.btn-primary:hover {
    background-color: #ea580c;
    box-shadow: 
        0 0 0 3px rgba(249, 115, 22, 0.6),
        0 0 30px rgba(249, 115, 22, 0.8),
        0 0 60px rgba(249, 115, 22, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Orange Button Glow Effect 光圈 - Edge Glow */
@keyframes orangeGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 2px rgba(249, 115, 22, 0.3),
            0 0 15px rgba(249, 115, 22, 0.5),
            0 0 30px rgba(249, 115, 22, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 0 3px rgba(249, 115, 22, 0.5),
            0 0 25px rgba(249, 115, 22, 0.7),
            0 0 50px rgba(249, 115, 22, 0.4),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
}

/* Glow for all orange buttons (Tailwind bg-orange-500) */
.bg-orange-500,
a.bg-orange-500,
button.bg-orange-500 {
    position: relative;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 2px rgba(249, 115, 22, 0.3),
        0 0 15px rgba(249, 115, 22, 0.5),
        0 0 30px rgba(249, 115, 22, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: orangeGlow 2s ease-in-out infinite;
}

.bg-orange-500:hover,
a.bg-orange-500:hover,
button.bg-orange-500:hover {
    box-shadow: 
        0 0 0 3px rgba(249, 115, 22, 0.6),
        0 0 30px rgba(249, 115, 22, 0.8),
        0 0 60px rgba(249, 115, 22, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #1a1a1a;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Forms */
input, select, textarea {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Utility classes */
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-muted { color: var(--text-secondary); }

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #374151;
}



