/* Aurora Background for Regulation Pages - Override wattsup.css */

/* Aurora Background Animation */
.aurora-bg,
.aurora-bg-category,
.aurora-bg-tag,
.aurora-bg-detail,
.aurora-bg-search {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Override wattsup.css forcing white text - ensure proper contrast */
.aurora-bg,
.aurora-bg *,
.aurora-bg h1,
.aurora-bg p,
.aurora-bg span,
.aurora-bg div,
.aurora-bg-category,
.aurora-bg-category *,
.aurora-bg-tag,
.aurora-bg-tag *,
.aurora-bg-detail,
.aurora-bg-detail *,
.aurora-bg-search,
.aurora-bg-search * {
    color: inherit !important;
}

/* Exception: Badge and other white text elements must stay white */
.aurora-bg .text-white,
.aurora-bg-category .text-white,
.aurora-bg-tag .text-white,
.aurora-bg-detail .text-white,
.aurora-bg-search .text-white {
    color: white !important;
}

/* Force light colors for breadcrumbs, badges, and meta text on dark Aurora backgrounds */
.aurora-bg-detail .text-slate-300,
.aurora-bg-detail .text-slate-400,
.aurora-bg-detail .text-slate-500 {
    color: #cbd5e1 !important;
}

.aurora-bg-detail .text-turquoise-300 {
    color: #5eead4 !important;
}

.aurora-bg-detail nav a {
    color: #cbd5e1 !important;
}

.aurora-bg-detail nav a:hover {
    color: white !important;
}

.aurora-bg h1,
.aurora-bg h2,
.aurora-bg-category h1,
.aurora-bg-category h2,
.aurora-bg-tag h1,
.aurora-bg-tag h2,
.aurora-bg-detail h1,
.aurora-bg-detail h2,
.aurora-bg-search h1,
.aurora-bg-search h2 {
    color: white !important;
}

.aurora-bg p,
.aurora-bg-category p,
.aurora-bg-tag p,
.aurora-bg-detail p,
.aurora-bg-search p {
    color: #cbd5e1 !important;
}

/* Ensure stats cards have proper text colors */
.glass-card-dark {
    color: white !important;
}

.glass-card-dark .text-yellow-400 {
    color: #fbbf24 !important;
}

.glass-card-dark .text-turquoise-400 {
    color: #2dd4bf !important;
}

.glass-card-dark .text-pink-400 {
    color: #f472b6 !important;
}

.glass-card-dark .text-blue-400 {
    color: #60a5fa !important;
}

.glass-card-dark .text-slate-400 {
    color: #94a3b8 !important;
}

/* Aurora blob animations */
.aurora-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(10deg); }
}

.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #2A9D8F; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: #264653; animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: rgba(255, 209, 0, 0.2); animation-delay: -10s; }

.blob-detail-1 { top: -20%; right: -10%; width: 50vw; height: 50vw; background: #2A9D8F; animation-delay: 0s; }
.blob-detail-2 { bottom: -20%; left: -10%; width: 40vw; height: 40vw; background: #264653; animation-delay: -5s; }

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(42, 157, 143, 0.3);
}

/* Dark Mode Cards for Hero */
.glass-card-dark {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    transition: all 0.3s ease;
}
.search-input-wrapper:focus-within {
    transform: scale(1.02);
}

/* Category Grid Hover */
.category-grid-item {
    position: relative;
    overflow: hidden;
}
.category-grid-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(42, 157, 143, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.category-grid-item:hover::after {
    opacity: 1;
}

/* Tag Styling */
.modern-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s ease;
}
.modern-tag:hover {
    background: #2A9D8F;
    border-color: #2A9D8F;
    color: white;
    transform: translateY(-1px);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Search Results */
#search-results {
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
}
