/* ============================================
   نُزه - Nuzha App
   شريط التنقل السفلي والحركات
   navbar.css
   ============================================ */

/* --- Bottom Navigation Bar --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    background: linear-gradient(to top, var(--color-bg-darker), var(--scrim-97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0 12px;
    z-index: 100;
    height: var(--navbar-height);
    box-shadow: var(--shadow-nav);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    position: relative;
    color: var(--color-text-muted);
}

.nav-item:hover {
    color: var(--color-gold-light);
}

.nav-item--active {
    color: var(--color-gold);
}

.nav-item--active::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 4px 4px 0 0;
}

.nav-item__icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.nav-item__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-item:hover .nav-item__icon {
    transform: translateY(-2px);
}

.nav-item__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Cards entrance animation */
.featured-card {
    animation: fadeInUp 0.5s ease forwards;
}

.trip-card:nth-child(1) {
    animation: fadeInUp 0.5s ease 0.1s forwards;
}

.trip-card:nth-child(2) {
    animation: fadeInUp 0.5s ease 0.2s forwards;
}

/* --- Responsive Adjustments --- */
@media (max-width: 380px) {
    :root {
        --font-size-xxl: 1.4rem;
        --font-size-xl: 1.15rem;
    }

    .featured-card__image {
        height: 180px;
    }

    /* حُذف هنا ‎.trip-card { height: 150px }‎ و‎.trip-card__image‎:
       بقايا تصميمٍ قديم كانت البطاقة فيه أفقيةً صورتُها إلى جانبها.
       والصنف ‎trip-card__image‎ لا وجود له في أي قالب اليوم، وارتفاع
       150px كان يُقصّ السعر والعنوان على كل شاشةٍ دون 380px — أي أكثر
       الأندرويد. ولم يظهر أثره لأن ‎min-height: 270px‎ كان يعلو عليه،
       فلمّا رُفع القيد الأعمى ظهر ما كان تحته. */

    .filter-tab {
        padding: 6px 16px;
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 340px) {
    .bottom-nav {
        padding: 6px 0 10px;
    }
}

/* --- Decorative Islamic Pattern (SVG background) --- */
/* تملأ الشاشة لا الحاوية: بعرض الحاوية ينتهي النقش عند حدّها فيرتسم
   مستطيل مختلف الملمس داخل صفحة ملساء — وهو آخر ما بقي من «الحدّ»
   بعد توحيد الخلفية وتوسيع الطبقة الزخرفية. */
.islamic-pattern-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23c9a84c' stroke-width='0.5'/%3E%3Cpath d='M30 10L50 30L30 50L10 30Z' fill='none' stroke='%23c9a84c' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}
