/* FinFin AI - Modern Theme System */
/* Mobil uygulama ile senkronize edilmiş tema renkleri */

:root {
    /* Primary Brand Colors - FinFinTheme'den alınmıştır */
    --primary-base: #6A35FE;
    --primary-dark: #5A2DD8;
    --primary-light: #8B5FFF;
    --secondary-base: #3498db;
    --secondary-dark: #2980b9;

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #6A35FE 0%, #3498db 100%);
    --gradient-primary-hover: linear-gradient(135deg, #5A2DD8 0%, #2980b9 100%);
    --gradient-appbar: linear-gradient(135deg, #6A35FE 0%, #7B4EFF 50%, #3498db 100%);
    --gradient-surface: linear-gradient(135deg, rgba(106, 53, 254, 0.03) 0%, rgba(52, 152, 219, 0.03) 100%);
    --gradient-button: linear-gradient(135deg, #6A35FE 0%, #8B5FFF 100%);

    /* Light Mode Colors */
    --text-primary-light: #1e293b;
    --text-secondary-light: #64748b;
    --text-tertiary-light: #94a3b8;
    --bg-scaffold-light: #f8fafc;
    --bg-surface-light: #ffffff;
    --bg-card-light: #ffffff;
    --border-light: #e2e8f0;
    --shadow-light: rgba(106, 53, 254, 0.12);

    /* Dark Mode Colors */
    --text-primary-dark: #f1f5f9;
    --text-secondary-dark: #cbd5e1;
    --text-tertiary-dark: #94a3b8;
    --bg-scaffold-dark: #0f172a;
    --bg-surface-dark: #1e293b;
    --bg-card-dark: #334155;
    --border-dark: #334155;
    --shadow-dark: rgba(0, 0, 0, 0.3);

    /* Status Colors */
    --status-success: #10b981;
    --status-success-strong: #059669;
    --status-danger: #ef4444;
    --status-warning: #f59e0b;
    --status-info: #3b82f6;
    --status-support: #8b5cf6;

    /* Accent Colors */
    --accent-teal: #14b8a6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;

    /* Spacing System */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(106, 53, 254, 0.08);
    --shadow-md: 0 4px 12px rgba(106, 53, 254, 0.12);
    --shadow-lg: 0 10px 25px rgba(106, 53, 254, 0.15);
    --shadow-xl: 0 20px 40px rgba(106, 53, 254, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Default to light mode */
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-tertiary: var(--text-tertiary-light);
    --bg-scaffold: var(--bg-scaffold-light);
    --bg-surface: var(--bg-surface-light);
    --bg-card: var(--bg-card-light);
    --border-color: var(--border-light);
    --shadow-color: var(--shadow-light);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: var(--text-primary-dark);
        --text-secondary: var(--text-secondary-dark);
        --text-tertiary: var(--text-tertiary-dark);
        --bg-scaffold: var(--bg-scaffold-dark);
        --bg-surface: var(--bg-surface-dark);
        --bg-card: var(--bg-card-dark);
        --border-color: var(--border-dark);
        --shadow-color: var(--shadow-dark);
    }
}

/* Dark Mode Class Override */
.dark-mode {
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-tertiary: var(--text-tertiary-dark);
    --bg-scaffold: var(--bg-scaffold-dark);
    --bg-surface: var(--bg-surface-dark);
    --bg-card: var(--bg-card-dark);
    --border-color: var(--border-dark);
    --shadow-color: var(--shadow-dark);
}

/* Typography System */
.text-heading-1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-heading-2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-heading-3 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.text-body-large {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

.text-body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.text-body-small {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Component Styles */
.btn-primary {
    background: var(--gradient-button);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-base);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-base);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--primary-base);
    color: white;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    background: rgba(106, 53, 254, 0.1);
    color: var(--primary-base);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--primary-base);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Animation Utilities */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Utility Classes */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-primary {
    box-shadow: 0 10px 30px rgba(106, 53, 254, 0.3);
}

.shadow-success {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.shadow-danger {
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 16px;
        --spacing-xl: 24px;
        --spacing-2xl: 32px;
        --spacing-3xl: 48px;
    }

    .text-heading-1 {
        font-size: 2rem;
    }

    .text-heading-2 {
        font-size: 1.5rem;
    }

    .text-heading-3 {
        font-size: 1.25rem;
    }
}