/* Modern Islamic UI - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Outfit:wght@300;500;700&family=Inter:wght@400;500;600&family=Reem+Kufi:wght@400;500;600;700&display=swap');

:root {
    --color-bg: #022c22;
    /* Deep Midnight Green */
    --color-primary: #10b981;
    /* Emerald 500 */
    --color-accent: #fbbf24;
    /* Amber 400 */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --nav-height: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    background-image:
        linear-gradient(to bottom, rgba(2, 44, 34, 0.85), rgba(2, 44, 34, 0.95)),
        url('../images/pattern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    min-height: 100vh;
    padding-bottom: var(--nav-height);
    /* Space for bottom nav */
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    /* Prevent pull-to-refresh if not desired, or bounce on body */
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Outfit', sans-serif;
}

.font-arabic {
    font-family: 'Amiri', serif;
}

.font-brand {
    font-family: 'Reem Kufi', sans-serif;
}

/* Glassmorphism Utilities */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Accent Glow for active/highlighted cards */
.glass-card.accent-glow {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.glass-nav {
    background: rgba(2, 44, 34, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-out {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(4px);
    }
}

@keyframes pulse-in {
    0% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

.animate-pulse-out {
    animation: pulse-out 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-pulse-in {
    animation: pulse-in 0.3s cubic-bezier(0, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.view-transition {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.transition-spring {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Springy */
    transition-duration: 0.5s;
}

/* Progress Ring */
.progress-ring circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Utility Overrides */
.text-neon {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.hide-scrollbar::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar,
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation Active State */
.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active svg {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}


/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animations for Dropdowns */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}