/**
 * GREDOEX - Modern Fintech Design System
 * Professional Cryptocurrency Exchange Platform
 * Version: 2.0
 */

/* ============================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Brand Colors */
    --primary-500: #0083FF;
    --primary-600: #0066CC;
    --primary-700: #004C99;
    --primary-400: #339FFF;
    --primary-300: #66B8FF;
    
    /* Secondary Colors */
    --secondary-500: #00C27A;
    --secondary-600: #00A368;
    --secondary-700: #008556;
    
    /* Accent Colors */
    --accent-purple: #8B5CF6;
    --accent-orange: #F59E0B;
    --accent-pink: #EC4899;
    
    /* Neutral Colors - Light Mode */
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --text-inverse: #FFFFFF;
    
    /* Border & Divider */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --border-dark: #9CA3AF;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 131, 255, 0.3);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Theme Variables */
body.dark-theme {
    /* Background Colors */
    --bg-primary: #0A0E27;
    --bg-secondary: #0F1420;
    --bg-tertiary: #1A1F35;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    /* Text Colors */
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-tertiary: #9CA3AF;
    --text-inverse: #111827;
    
    /* Border & Divider */
    --border-light: #374151;
    --border-medium: #4B5563;
    --border-dark: #6B7280;
    
    /* Neutral Adjustments for Dark Mode */
    --neutral-50: #1F2937;
    --neutral-100: #374151;
    --neutral-800: #E5E7EB;
    --neutral-900: #F9FAFB;
    
    /* Shadows for Dark Mode */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* ============================================
   2. GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */
.fintech-h1, .ft-h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.fintech-h2, .ft-h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.fintech-h3, .ft-h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.fintech-h4, .ft-h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.fintech-h5, .ft-h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

.fintech-body-lg {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.fintech-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.fintech-body-sm {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-tertiary);
}

.fintech-caption {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   4. MODERN BUTTON SYSTEM
   ============================================ */
.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.ft-btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(0, 131, 255, 0.4);
}

.ft-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.ft-btn-secondary {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.ft-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 194, 122, 0.3);
}

.ft-btn-outline {
    background: transparent;
    color: var(--primary-500);
    border: 2px solid var(--primary-500);
}

.ft-btn-outline:hover {
    background: var(--primary-500);
    color: var(--text-inverse);
    border-color: var(--primary-500);
}

.ft-btn-ghost {
    background: rgba(0, 131, 255, 0.1);
    color: var(--primary-500);
}

.ft-btn-ghost:hover {
    background: rgba(0, 131, 255, 0.2);
}

.ft-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.ft-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.ft-btn-block {
    display: flex;
    width: 100%;
}

/* ============================================
   5. CARD COMPONENTS
   ============================================ */
.ft-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.ft-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.ft-card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.ft-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ft-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.ft-card-body {
    margin-bottom: var(--space-lg);
}

.ft-card-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

/* Premium Card Variants */
.ft-card-premium {
    background: linear-gradient(135deg, rgba(0, 131, 255, 0.05) 0%, rgba(0, 194, 122, 0.05) 100%);
    border: 1px solid rgba(0, 131, 255, 0.2);
}

.ft-card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .ft-card-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   6. BADGE COMPONENTS
   ============================================ */
.ft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ft-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.ft-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.ft-badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.ft-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.ft-badge-primary {
    background: rgba(0, 131, 255, 0.1);
    color: var(--primary-500);
}

/* ============================================
   7. TRUST & CREDIBILITY ELEMENTS
   ============================================ */
.ft-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
}

.ft-trust-badge i {
    font-size: 1.125rem;
}

.ft-security-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
}

.ft-security-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--success) 0%, var(--info) 100%);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.25rem;
}

/* ============================================
   8. STATS & METRICS DISPLAY
   ============================================ */
.ft-stat-card {
    text-align: center;
    padding: var(--space-xl);
}

.ft-stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.ft-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   9. GRADIENT OVERLAYS & EFFECTS
   ============================================ */
.ft-gradient-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.ft-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
}

.ft-gradient-multi {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-purple) 50%, var(--secondary-500) 100%);
}

.ft-text-gradient {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ft-animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.ft-animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.ft-animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.ft-animate-slideInRight {
    animation: slideInRight 0.6s ease-out;
}

.ft-animate-scaleIn {
    animation: scaleIn 0.6s ease-out;
}

.ft-animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger Animation Delays */
.ft-delay-100 { animation-delay: 0.1s; }
.ft-delay-200 { animation-delay: 0.2s; }
.ft-delay-300 { animation-delay: 0.3s; }
.ft-delay-400 { animation-delay: 0.4s; }
.ft-delay-500 { animation-delay: 0.5s; }

/* ============================================
   11. SECTION LAYOUTS
   ============================================ */
.ft-section {
    padding: 5rem 0;
    position: relative;
}

.ft-section-sm {
    padding: 3rem 0;
}

.ft-section-lg {
    padding: 7rem 0;
}

.ft-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.ft-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.ft-section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.ft-section-bg-gradient {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* ============================================
   12. RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 1199px) {
    .fintech-h1, .ft-h1 { font-size: 3rem; }
    .fintech-h2, .ft-h2 { font-size: 2.25rem; }
    .ft-section-title { font-size: 2.25rem; }
}

@media (max-width: 991px) {
    .fintech-h1, .ft-h1 { font-size: 2.5rem; }
    .fintech-h2, .ft-h2 { font-size: 2rem; }
    .ft-section-title { font-size: 2rem; }
    .ft-section { padding: 4rem 0; }
}

@media (max-width: 767px) {
    .fintech-h1, .ft-h1 { font-size: 2rem; }
    .fintech-h2, .ft-h2 { font-size: 1.75rem; }
    .ft-section-title { font-size: 1.75rem; }
    .ft-section { padding: 3rem 0; }
    .ft-btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
    .ft-btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
}

/* ============================================
   13. UTILITY CLASSES
   ============================================ */
.ft-text-center { text-align: center; }
.ft-text-left { text-align: left; }
.ft-text-right { text-align: right; }

.ft-mb-xs { margin-bottom: var(--space-xs); }
.ft-mb-sm { margin-bottom: var(--space-sm); }
.ft-mb-md { margin-bottom: var(--space-md); }
.ft-mb-lg { margin-bottom: var(--space-lg); }
.ft-mb-xl { margin-bottom: var(--space-xl); }

.ft-mt-xs { margin-top: var(--space-xs); }
.ft-mt-sm { margin-top: var(--space-sm); }
.ft-mt-md { margin-top: var(--space-md); }
.ft-mt-lg { margin-top: var(--space-lg); }
.ft-mt-xl { margin-top: var(--space-xl); }

.ft-rounded-sm { border-radius: var(--radius-sm); }
.ft-rounded-md { border-radius: var(--radius-md); }
.ft-rounded-lg { border-radius: var(--radius-lg); }
.ft-rounded-xl { border-radius: var(--radius-xl); }
.ft-rounded-full { border-radius: var(--radius-full); }

.ft-shadow-sm { box-shadow: var(--shadow-sm); }
.ft-shadow-md { box-shadow: var(--shadow-md); }
.ft-shadow-lg { box-shadow: var(--shadow-lg); }
.ft-shadow-xl { box-shadow: var(--shadow-xl); }
