/* Camel Racing & Heritage Colors - الألوان الطبيعية */
:root {
    --desert-gold: #D4AF37;
    --desert-dark: #8B7500;
    --sand-light: #F5DEB3;
    --sand-dark: #DEB887;
    --camel-brown: #8B4513;
    --accent-color: #CD853F;
    --sand-bg: #FFFEF0;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom, #FFFEF0 0%, #F5E6D3 100%);
    min-height: 100vh;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowBorder {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
}

@keyframes hover-lift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-gold {
    0%, 100% {
        color: var(--desert-gold);
    }
    50% {
        color: var(--accent-color);
    }
}

/* ==================== Navbar Styles ==================== */

.navbar {
    animation: fadeInDown 0.6s ease;
}

.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--desert-gold);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* ==================== Dropdown Menus ==================== */

.dropdown-menu {
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.2);
    animation: fadeInUp 0.3s ease;
}

.dropdown-menu a:hover {
    transform: translateX(5px);
    background: linear-gradient(to left, rgba(212, 175, 55, 0.2), transparent);
}

/* ==================== Post Cards ==================== */

.post-card {
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    animation: hover-lift 0.3s ease forwards;
}

/* ==================== Badges ==================== */

.badge-category, .badge-country {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category:hover, .badge-country:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ==================== Featured Items ==================== */

.featured-badge {
    animation: pulse-gold 2s infinite;
}

.slider-container {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.slider-container:hover::before {
    opacity: 1;
}

.slider-container:hover {
    transform: scale(1.03);
    animation: glowBorder 2s infinite;
}

/* ==================== Section Headers ==================== */

.section-header {
    position: relative;
    animation: slideInRight 0.5s ease;
    padding-bottom: 0.75rem;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--desert-gold), var(--accent-color));
    animation: slide-left 0.6s ease forwards;
}

@keyframes slide-left {
    to {
        width: 100%;
    }
}

/* ==================== Filter Section ==================== */

.filter-section {
    transition: all 0.3s ease;
}

/* ==================== Hover Effects ==================== */

a[style*="color: #FFE4B5"]:hover {
    filter: brightness(1.2);
}

/* ==================== Loading Animation ==================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ==================== Responsive Images ==================== */

img {
    transition: filter 0.3s ease;
}

.post-card:hover img {
    filter: brightness(1.05);
}

/* ==================== Text Styles ==================== */

a {
    position: relative;
}

a[style*="text-decoration: none"]::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--desert-gold);
    transition: width 0.3s ease;
}

a[style*="text-decoration: none"]:hover::before {
    width: 100%;
}

/* ==================== Scrollbar Styles ==================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--desert-gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ==================== Print Styles ==================== */

@media print {
    .navbar, .footer {
        display: none;
    }
}

/* ==================== Dark Mode Support ==================== */

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(to bottom, #3d2817 0%, #2d1b0f 100%);
    }
    
    .post-card {
        background: #4a3728;
        color: #FFE4B5;
    }
}

/* ==================== Accessibility ==================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== Print Friendly ==================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    .navbar, footer {
        display: none !important;
    }
    
    .post-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
