@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Premium Blue & Gold */
    --color-primary: #1e3a8a;
    --color-primary-light: #2563eb;
    --color-primary-glow: rgba(30, 58, 138, 0.3);
    --color-accent: #d97706;
    --color-accent-hover: #b45309;
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Neutrals - Light Theme (Premium feel) */
    --color-bg: #fdfbf7;
    --color-surface: #ffffff;
    --color-surface-hover: #f8fafc;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-inv: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);

    /* Layout Constants */
    --header-height: 80px;
    --container-max-width: 1600px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Premium Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.btn-premium {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-text-inv);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-primary-glow);
    filter: brightness(1.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), #f59e0b);
    color: var(--color-text-inv);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

/* Monster Specifics */
.monster-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.stat-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 6px;
    transition: width 1s ease-out;
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Utilities */
.shadow-premium {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Table Enhancements */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.premium-table th {
    padding: 1rem;
    text-align: left;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
}

.premium-table td {
    padding: 1.25rem 1rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.premium-table td:first-child {
    border-left: 1px solid var(--color-border);
    border-radius: 12px 0 0 12px;
}

.premium-table td:last-child {
    border-right: 1px solid var(--color-border);
    border-radius: 0 12px 12px 0;
}

.premium-table tr {
    transition: transform var(--transition-speed);
}

.premium-table tr:hover td {
    background: var(--color-surface-hover);
    border-color: var(--color-primary-light);
}

/* ===== Dark Mode Overrides ===== */
.dark {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-surface-hover: #334155;
    --color-border: #334155;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-inv: #ffffff;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(51, 65, 85, 0.5);
    --color-primary: #60a5fa;
    --color-primary-light: #93c5fd;
    --color-primary-glow: rgba(96, 165, 250, 0.25);
}

/* Dark: Body & background */
.dark body {
    background-color: #0f172a;
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
}

/* Dark: Headings */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #f1f5f9;
}

/* Dark: Cards and surfaces */
.dark .bg-white {
    background-color: #1e293b;
}

.dark .bg-bg-body {
    background-color: #0f172a;
}

.dark .bg-slate-50,
.dark .bg-slate-50\/50 {
    background-color: #0f172a;
}

.dark .bg-slate-100 {
    background-color: #1e293b;
}

.dark .rounded-3xl.border.border-slate-200,
.dark .rounded-2xl.border.border-slate-200 {
    border-color: #334155;
    background-color: #1e293b;
}

/* Dark: Borders */
.dark .border-slate-200,
.dark .border-slate-100 {
    border-color: #334155;
}

.dark .border-slate-300 {
    border-color: #475569;
}

/* Dark: Text colors */
.dark .text-slate-900 {
    color: #f8fafc;
}

.dark .text-slate-800 {
    color: #f1f5f9;
}

.dark .text-slate-700 {
    color: #e2e8f0;
}

.dark .text-slate-600 {
    color: #cbd5e1;
}

.dark .text-slate-500 {
    color: #94a3b8;
}

.dark .text-slate-400 {
    color: #64748b;
}

/* Dark: Primary text */
.dark .text-primary {
    color: #60a5fa;
}

.dark .hover\:text-primary:hover {
    color: #93c5fd !important;
}

/* Dark: Info/Alert boxes */
.dark .bg-amber-50 {
    background-color: rgba(217, 119, 6, 0.1);
}

.dark .border-amber-200 {
    border-color: rgba(217, 119, 6, 0.3);
}

.dark .text-amber-800 {
    color: #fbbf24;
}

.dark .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.1);
}

.dark .bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.1);
}

.dark .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Dark: Stat bars */
.dark .stat-bar {
    background: #334155;
}

/* Dark: Scrollbars */
.dark .custom-scrollbar::-webkit-scrollbar-thumb,
.dark .table-container::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.dark .table-container::-webkit-scrollbar-track {
    background: #1e293b;
}

/* Dark: Inputs and forms */
.dark input,
.dark select,
.dark textarea {
    background-color: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #64748b;
}

/* Dark: Hover effects on cards */
.dark .hover\:bg-slate-50:hover {
    background-color: #334155 !important;
}

/* Dark: Divide colors */
.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #334155;
}

/* Dark: Shadow adjustments */
.dark .shadow-sm,
.dark .shadow-md,
.dark .shadow-lg,
.dark .shadow-xl {
    --tw-shadow-color: rgba(0, 0, 0, 0.4);
}

/* Dark: Badges and pills */
.dark .bg-slate-100.text-slate-600 {
    background-color: #334155;
    color: #cbd5e1;
}

/* Dark: Premium table */
.dark .premium-table td {
    background: #1e293b;
    border-color: #334155;
}

.dark .premium-table tr:hover td {
    background: #334155;
    border-color: #60a5fa;
}

/* Dark: Gradient top bar remains colorful */
.dark .bg-gradient-to-r.from-primary {
    opacity: 0.8;
}

/* Dark: Footer text improvements */
.dark footer h4 {
    color: #f1f5f9;
}

.dark footer a {
    color: #94a3b8;
}

.dark footer a:hover {
    color: #60a5fa;
}

/* ===== Responsive Upgrades ===== */

/* Mobile Hamburger & Navigation Slide-in Overrides (Native CSS for bulletproof loading) */
.nav-active {
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-active .nav-content {
    transform: translateX(0) !important;
}

/* Hamburger animations without relying on runtime Play CDN @apply preflight */
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg) !important;
    background-color: var(--color-accent) !important;
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0 !important;
    transform: translateX(-8px) !important;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
    background-color: var(--color-accent) !important;
}

/* Compact Tables on Mobile to prevent overflow issues */
@media (max-width: 640px) {
    .premium-table th, 
    .premium-table td,
    table th, 
    table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8125rem !important;
    }
}

/* Clean Custom Scrollbar for overflow horizontal wrappers on mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


