/* Custom CSS for Hadits Online Application */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-emerald {
    background: rgba(5, 150, 105, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Arabic text enhancements */
.arabic-text {
    font-family: 'Noto Naskh Arabic', 'Amiri Quran', serif;
    line-height: 2.5;
    font-size: 1.5rem;
    text-align: right;
    direction: rtl;
}

.arabic-text.small {
    font-size: 1.25rem;
}

.arabic-text.large {
    font-size: 1.75rem;
}

/* Indonesian text enhancements */
.indonesian-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
}

/* Hover effects for cards */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Search highlight */
.search-highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fef3c7 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 60%;
    border-radius: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

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

/* Focus states for accessibility */
.focus-ring:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Dark mode preparation (if implemented later) */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        /* Dark mode styles would go here */
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .arabic-text {
        font-size: 1.25rem !important;
    }

    body {
        font-size: 12pt;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .arabic-text {
        font-size: 1.25rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}