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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

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

/* Game Card Hover Effect */
.game-card {
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Hero Gradient Animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Price Tag */
.price-tag {
    position: relative;
    display: inline-block;
}

.price-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    transform: rotate(-5deg);
}

/* Custom Selection */
::selection {
    background: #3b82f6;
    color: white;
}

/* Focus Styles */
input:focus, button:focus {
    outline: none;
    ring: 2px solid #3b82f6;
}

/* RTL Specific Adjustments */
[dir="rtl"] .lucide {
    transform: scaleX(-1);
}

[dir="rtl"] .lucide:not([data-lucide="search"]):not([data-lucide="menu"]):not([data-lucide="x"]) {
    transform: scaleX(1);
}