/* TruckFin - CSS Variables & Global Styles */
:root {
    /* Brand Colors */
    --color-fuschia: #D9006C;
    --color-fuschia-600: #B8005D;
    --color-fuschia-700: #9C004F;
    --color-fuschia-800: #7D003F;
    --color-fuschia-900: #61002F;
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-850: #182132;
    --color-gray-900: #0B111E;
    
    /* Status Colors */
    --color-red: #EF4444;
    --color-yellow: #F59E0B;
    --color-green: #10B981;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Borders */
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glassmorphism */
    --glass-bg: rgba(24, 33, 50, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-850) 100%);
    color: var(--color-gray-100);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-300);
}

/* Links */
a {
    color: var(--color-fuschia);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-fuschia-600);
}

/* Main glassmorphism card */
.glassmorphism-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.glassmorphism-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Hero section specific styling */
.hero-button {
    background: linear-gradient(45deg, var(--color-fuschia), var(--color-fuschia-600));
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-button:hover::before {
    left: 100%;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 0, 108, 0.4);
}

.hero-gradient-text {
    background: linear-gradient(45deg, #F34FAB, var(--color-fuschia), var(--color-fuschia-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.btn-secondary {
    background: linear-gradient(135deg, #374151, #1f2937);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #4B5563, #374151);
}

/* Text utilities */
.text-center { text-align: center; }
.text-3xl { font-size: 2rem; line-height: 1.2; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.py-20 { padding: 5rem 0; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.font-bold { font-weight: 700; }

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-200);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(24, 33, 50, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-fuschia);
    box-shadow: 0 0 0 3px rgba(217, 0, 108, 0.1);
}

.form-input::placeholder {
    color: var(--color-gray-500);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(217, 0, 108, 0.1);
    color: var(--color-fuschia);
    border: 1px solid rgba(217, 0, 108, 0.2);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-800) 25%, var(--color-gray-700) 50%, var(--color-gray-800) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* Dashboard image responsive sizes - same as one/ folder */
.dashboard-img {
    width: 10rem; /* w-40 equivalent */
}

@media (min-width: 768px) {
    .dashboard-img {
        width: 14rem; /* md:w-56 equivalent */
    }
}

@media (min-width: 1024px) {
    .dashboard-img {
        width: 18rem; /* lg:w-72 equivalent */
    }
}

/* Footer Link Hover Effects */
footer a:hover {
    color: var(--color-fuschia) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.875rem; }
    .text-3xl { font-size: 1.75rem; }
    
    /* Hero section mobile - stack vertically like one/ folder */
    section[style*="min-height: 100vh"] .container {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    section[style*="min-height: 100vh"] .glassmorphism-card {
        max-width: none !important;
        text-align: center !important;
    }
    
    section[style*="min-height: 100vh"] h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    section[style*="min-height: 100vh"] p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    section[style*="min-height: 100vh"] {
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }
    
    .flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-button, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        min-width: auto;
    }
    
    .glassmorphism-card {
        padding: 1.5rem;
    }
    
    .py-20 {
        padding: 3rem 0;
    }
    
    /* Features grid mobile */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .glassmorphism-card {
        padding: 1.25rem;
    }
    
    h1 { font-size: 1.5rem; }
    .text-3xl { font-size: 1.5rem; }
    .text-lg { font-size: 1rem; }
    
    /* Hero section extra small mobile adjustments */
    section[style*="min-height: 100vh"] h1 {
        font-size: 1.75rem !important;
    }
    
    section[style*="min-height: 100vh"] div[style*="max-width: 18rem"] img {
        width: 8rem !important;
    }
    
    /* Button adjustments */
    .hero-button, .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Grid adjustments */
    #exchange-rates-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Exchange rates grid */
#exchange-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    #exchange-rates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    #exchange-rates-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-900);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-fuschia);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-fuschia);
    outline-offset: 2px;
}
