/* Meeja Metro Media - Custom Styles */

/* Force Glass Effect - Inline Styles Override - 80% Darkness */
nav.navbar-glass-effect {
    background: rgba(31, 41, 55, 0.8) !important; /* Gray-800 80% opacity */
    backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    border-bottom: 1px solid rgba(156, 163, 175, 0.2) !important;
}

/* Footer Glass Effect - Force Override All Tailwind Classes */
/* Footer Glass Effect - Simulasi Tanpa Backdrop Filter */
footer,
footer.mt-auto,
footer.py-12,
body footer,
html body footer {
    background: linear-gradient(135deg, 
        rgba(31, 41, 55, 0.85) 0%, 
        rgba(55, 65, 81, 0.8) 50%, 
        rgba(75, 85, 99, 0.75) 100%) !important;
    border-top: 2px solid rgba(156, 163, 175, 0.3) !important;
    position: relative !important;
    box-shadow: 
        0 -10px 40px rgba(0, 0, 0, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1), 
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Glass Effect Overlay */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Glass Shine Effect */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transform: skewX(-12deg);
    animation: glass-shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes glass-shine {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Additional Footer Glass Effect Overrides */
footer[class*="py-"],
footer[class*="mt-"],
footer[style] {
    background: rgba(31, 41, 55, 0.8) !important;
    backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
}

/* Override any Tailwind background utilities on footer */
footer.bg-slate-800,
footer.bg-slate-900,
footer.bg-gray-800,
footer.bg-gray-900,
footer[class*="bg-"] {
    background: rgba(31, 41, 55, 0.8) !important;
    backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
}

/* Ensure backdrop-filter support detection */
@supports (backdrop-filter: blur(1px)) {
    footer,
    .footer-glass-effect {
        background: rgba(31, 41, 55, 0.8) !important;
        backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    }
}

@supports (-webkit-backdrop-filter: blur(1px)) {
    footer,
    .footer-glass-effect {
        background: rgba(31, 41, 55, 0.8) !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    }
}

.dropdown-glass-effect {
    background: rgba(55, 65, 81, 0.85) !important; /* Gray-700 85% opacity */
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05) !important;
    border: 1px solid rgba(156, 163, 175, 0.15) !important;
}

.mobile-glass-effect {
    background: rgba(55, 65, 81, 0.8) !important; /* Gray-700 80% opacity */
    backdrop-filter: blur(22px) saturate(180%) brightness(1.08) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.08) !important;
    border-top: 1px solid rgba(156, 163, 175, 0.12) !important;
}

/* Navbar & Footer Enhancements with Glass Effect */
.navbar-glow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(156, 163, 175, 0.08),
                inset 0 1px 0 rgba(156, 163, 175, 0.15),
                0 4px 20px rgba(107, 114, 128, 0.1);
}

/* Force Footer Glass Effect with High Specificity */
body footer,
html body footer,
footer.mt-auto {
    background: rgba(31, 41, 55, 0.8) !important;
    backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1) !important;
    border-top: 1px solid rgba(156, 163, 175, 0.2) !important;
}

/* Remove duplicate - already covered above */

.logo-glow:hover {
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4)) 
            drop-shadow(0 0 20px rgba(156, 163, 175, 0.2));
}

/* Navbar Glass Effect - Transparan dengan Blur Abu-abu 60% */
.navbar-glass-effect {
    background: rgba(55, 65, 81, 0.6); /* Abu-abu 60% opacity */
    backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.navbar-glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(107, 114, 128, 0.15) 0%, /* Abu-abu blur overlay */
        rgba(75, 85, 99, 0.1) 50%, 
        rgba(55, 65, 81, 0.08) 100%);
    pointer-events: none;
    z-index: -1;
}

.navbar-glass-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(156, 163, 175, 0.4) 50%, /* Abu-abu highlight */
        transparent 100%);
    pointer-events: none;
}

/* Dropdown Glass Effect */
.dropdown-glass-effect {
    background: rgba(75, 85, 99, 0.65); /* Abu-abu sedikit lebih gelap untuk dropdown */
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(156, 163, 175, 0.15);
    position: relative;
}

.dropdown-glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(107, 114, 128, 0.12) 0%, 
        rgba(75, 85, 99, 0.08) 50%, 
        rgba(55, 65, 81, 0.06) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

/* Mobile Menu Glass Effect */
.mobile-glass-effect {
    background: rgba(75, 85, 99, 0.6); /* Abu-abu 60% untuk mobile */
    backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
    border: 1px solid rgba(156, 163, 175, 0.12);
    position: relative;
}

.mobile-glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(107, 114, 128, 0.1) 0%, 
        rgba(75, 85, 99, 0.06) 50%, 
        rgba(55, 65, 81, 0.04) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Warm Dark Theme Colors with Sky Blue Accent */
:root {
    --warm-dark-primary: #1e293b;
    --warm-dark-secondary: #334155;
    --warm-orange: #f97316;
    --warm-orange-light: #fb923c;
    --warm-blue: #0ea5e9;
    --warm-text-light: #f1f5f9;
    --warm-text-muted: #cbd5e1;
    --sky-blue-light: #87ceeb;
    --sky-blue-lighter: #add8e6;
    --sky-blue-subtle: rgba(135, 206, 235, 0.1);
}

/* Navigation Enhancements with Glass Effect */
nav {
    backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
}

.dropdown-menu {
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
}

/* Enhanced dropdown with glass effect */
nav .group:hover .absolute {
    background: rgba(75, 85, 99, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(156, 163, 175, 0.15);
}

nav .group:hover .absolute::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(107, 114, 128, 0.12) 0%, 
        rgba(75, 85, 99, 0.08) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* Mobile Menu Animations with Sky Blue Accent */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 30%, rgba(71, 85, 105, 0.95) 60%, rgba(135, 206, 235, 0.2) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
}

#mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.08) 0%, rgba(173, 216, 230, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

#mobile-menu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}

/* Button Hover Effects with Sky Blue Accent */
.btn-warm-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-warm-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-warm-orange:hover::before {
    left: 100%;
}

.btn-warm-orange:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.25), 0 0 20px rgba(135, 206, 235, 0.1);
}

/* Scrollbar Styling with Sky Blue Accent */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--warm-dark-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--warm-orange), var(--sky-blue-light));
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--warm-orange-light), var(--sky-blue-lighter));
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

/* Custom Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Content Styling */
.article-content {
    line-height: 1.8;
    color: #0f172a;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #0f172a;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }

.article-content p {
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--warm-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #334155;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-content a {
    color: var(--warm-orange);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--warm-orange-light);
}

/* CKEditor Styling */
.ck-editor__editable {
    min-height: 300px;
}

/* Loading Animation with Sky Blue Accent */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(249, 115, 22, 0.3);
    border-radius: 50%;
    border-top-color: var(--warm-orange);
    border-right-color: var(--sky-blue-light);
    animation: spin 1s ease-in-out infinite;
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 50%;
    animation: spin 2s ease-in-out infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Hover Effects with Sky Blue Accent */
.btn-primary {
    background: linear-gradient(135deg, var(--warm-orange), #ea580c);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3), 0 0 20px rgba(135, 206, 235, 0.2);
}

/* Card Hover Effects with Sky Blue Accent */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sky-blue-subtle);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 20px rgba(135, 206, 235, 0.1);
}

/* Warm gradient backgrounds with sky blue accent */
.bg-warm-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
}

.bg-warm-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.05) 0%, rgba(173, 216, 230, 0.03) 50%, rgba(135, 206, 235, 0.02) 100%);
    pointer-events: none;
}

.bg-warm-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    position: relative;
}

.bg-warm-gradient-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(173, 216, 230, 0.05) 100%);
    pointer-events: none;
}

/* Text contrast utilities */
.text-dark {
    color: #0f172a !important;
}

.text-dark-secondary {
    color: #334155 !important;
}

.text-dark-muted {
    color: #64748b !important;
}

.text-warm-light {
    color: var(--warm-text-light) !important;
}

.text-warm-muted {
    color: var(--warm-text-muted) !important;
}

/* Dark mode specific styles */
@media (prefers-color-scheme: dark) {
    .article-content blockquote {
        color: #9ca3af;
    }
}

/* Mobile Responsive Adjustments with Sky Blue Accent */
@media (max-width: 640px) {
    .article-content h1 { font-size: 1.75rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.25rem; }
    .article-content h4 { font-size: 1.125rem; }
    
    /* Mobile navbar adjustments */
    nav {
        backdrop-filter: blur(8px);
    }
    
    /* Enhanced mobile menu with sky blue accent */
    #mobile-menu {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.98) 100%);
    }
    
    /* Mobile card hover effects */
    .card-hover:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 15px rgba(135, 206, 235, 0.1);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .article-content {
        color: black !important;
    }
    
    .article-content a {
        color: black !important;
        text-decoration: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility with sky blue accent */
a:focus,
button:focus {
    outline: 2px solid var(--warm-orange);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.2);
}

/* Enhanced focus for navigation elements */
nav a:focus,
nav button:focus {
    outline: 2px solid var(--sky-blue-light);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-slate-300 {
        color: #ffffff !important;
    }
    
    .text-slate-400 {
        color: #e5e7eb !important;
    }
}

/* Footer Glass Effect - Tambahan untuk Memastikan Terlihat */
footer {
    min-height: 200px !important;
}

/* Override semua kemungkinan class Tailwind */
footer[class*="bg-"],
footer.bg-transparent,
footer.bg-slate-800,
footer.bg-gray-800 {
    background: linear-gradient(135deg, 
        rgba(31, 41, 55, 0.85) 0%, 
        rgba(55, 65, 81, 0.8) 50%, 
        rgba(75, 85, 99, 0.75) 100%) !important;
}

/* Test - Warna yang sangat berbeda untuk memastikan CSS bekerja */
footer.test-visible {
    background: linear-gradient(135deg, 
        rgba(220, 38, 127, 0.8) 0%, 
        rgba(147, 51, 234, 0.8) 50%, 
        rgba(59, 130, 246, 0.8) 100%) !important;
    border-top: 3px solid #ff0000 !important;
}