/**
 * NUMLFound - Custom Styling & Component Layer
 * Complements the compiled Tailwind CSS bundle with university brand styling,
 * touch ergonomics, and animations.
 */

:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Academic University Palette */
    --numl-navy: #0f2b5c;
    --numl-blue: #1e3a8a;
    --numl-blue-light: #2563eb;
    --numl-amber: #f59e0b;
    --numl-emerald: #10b981;
    --numl-rose: #ef4444;

    /* Mobile Bottom Bar Clearance */
    --bottom-nav-height: 64px;
}

/* Base Font Families */
body {
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Safe Bottom Padding for Mobile Devices */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Mobile 3-Column Navigation Grid */
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Custom Scrollbar for Smooth Touch & Desktop */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

/* Horizontal Scroll Bar Hide (for category pills on mobile) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Touch Target Minimum (Accessibility) */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Form Controls Consistency */
.form-input-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

/* Subtle Card Glow */
.card-hover-glow:hover {
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
}

/* Image Shimmer on Loading */
.img-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .img-shimmer {
    background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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