/* 24nex Theme System - CSS Variables Only */
/* All styling is done with Tailwind CSS utility classes */

:root {
    /* Light Mode Colors */
    --bg-primary: #f9fafb;
    /* Gray-50 */
    --bg-secondary: #ffffff;
    /* White */
    --bg-tertiary: #f3f4f6;
    /* Gray-100 */
    --bg-gradient-start: #fbbf24;
    --bg-gradient-end: #f97316;

    --text-primary: #111827;
    /* Gray-900 */
    --text-secondary: #4b5563;
    /* Gray-600 */
    --text-tertiary: #9ca3af;
    /* Gray-400 */

    --accent-gold: #fbbf24;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-dark-gold: #d97706;

    --border-color: #e5e7eb;
    /* Gray-200 */
    --shadow-color: rgba(0, 0, 0, 0.05);

    --card-bg: #ffffff;
    --card-hover: #f9fafb;

    --header-bg: #ffffff;
    --footer-bg: #f9fafb;

    --breaking-bg: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --featured-bg: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --category-bg: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-gradient-start: #d97706;
    --bg-gradient-end: #ea580c;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;

    --accent-gold: #fbbf24;
    --accent-orange: #fb923c;
    --accent-red: #f87171;
    --accent-dark-gold: #f59e0b;

    --border-color: #475569;
    --shadow-color: rgba(251, 191, 36, 0.2);

    --card-bg: #1e293b;
    --card-hover: #334155;

    --header-bg: #1e293b;
    --footer-bg: #020617;

    --breaking-bg: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --featured-bg: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --category-bg: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-dark-gold) 0%, var(--accent-red) 100%);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 1px solid var(--border-color);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast-icon {
    margin-right: 12px;
}