
/* منع التمرير الأفقي على الأجهزة المحمولة */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* نظام التصفية الاحترافي */
.filter-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #7dd3fc, #58a6ff);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

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

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.filter-header h3 {
    color: #e6edf3;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #58a6ff, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.filter-header h3::before {
    content: '🎮';
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.clear-filters {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.clear-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.clear-filters:hover::before {
    left: 100%;
}

.clear-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333, #a71e2a);
}

.clear-icon {
    font-size: 1.1rem;
}

.filter-categories {
    display: grid;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    color: #8b949e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: right;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group h4::before {
    content: '📂';
    font-size: 1rem;
}

.filter-group h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #7dd3fc);
    border-radius: 1px;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
    align-items: stretch;
    justify-items: stretch;
}

.filter-btn {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: #e6edf3;
    border: 2px solid transparent;
    padding: 1rem 1.25rem;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    gap: 0.5rem;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    touch-action: manipulation;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
    border-color: #58a6ff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #58a6ff, #7dd3fc);
    color: #1a1a2e;
    border-color: #58a6ff;
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
    transform: translateY(-2px);
    position: relative;
}

.filter-btn.active::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.filter-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover .filter-icon {
    transform: scale(1.2);
}

.results-counter {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.results-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.results-counter:hover::before {
    left: 100%;
}

#resultsCount {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .filter-container {
        padding: 1.2rem;
        margin: 1rem 0;
        border-radius: 15px;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .filter-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .clear-filters {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .filter-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .filter-btn {
        padding: 0.8rem 0.6rem;
        font-size: 0.85rem;
        min-height: 55px;
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
        justify-content: center;
    }
    
    .filter-icon {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .results-counter {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }
    
    #resultsCount {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .filter-container {
        padding: 1rem;
        margin: 0.8rem 0;
    }
    
    .filter-header {
        gap: 0.8rem;
    }
    
    .filter-header h3 {
        font-size: 1.1rem;
    }
    
    .clear-filters {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
        min-height: 50px;
    }
    
    .filter-icon {
        font-size: 1rem;
    }
    
    .filter-group h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .results-counter {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    #resultsCount {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .filter-container {
        padding: 0.8rem;
    }
    
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
        min-height: 45px;
    }
    
    .filter-icon {
        font-size: 0.9rem;
    }
    
    .filter-header h3 {
        font-size: 1rem;
    }
    
    .clear-filters {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* تحسينات إضافية للتنظيم */
@media (max-width: 480px) {
    .filter-container {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
    
    .filter-group h4 {
        text-align: center;
        margin-bottom: 0.8rem;
    }
    
    .filter-group h4::after {
        right: 50%;
        transform: translateX(50%);
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 320px) {
    .filter-container {
        padding: 0.6rem;
        margin: 0.3rem;
    }
    
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
        min-height: 40px;
    }
    
    .filter-icon {
        font-size: 0.8rem;
    }
    
    .filter-header h3 {
        font-size: 0.9rem;
    }
    
    .clear-filters {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .results-counter {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* تحسينات للأجهزة اللوحية */
@media (min-width: 769px) and (max-width: 1024px) {
    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .filter-btn {
        padding: 0.9rem 1.1rem;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1025px) {
    .filter-container {
        padding: 2.5rem;
    }
    
    .filter-buttons {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 1.1rem 1.4rem;
        font-size: 1rem;
    }
}

/* تأثيرات إضافية للتفاعل */
.filter-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* تأثير التحميل */
.games-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.games-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid #58a6ff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* تأثير ظهور البطاقات */
.games-grid { position: relative; }

.game-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.game-card.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأثير التصفية النشط */
.filter-btn.filtering {
    animation: filtering 0.5s ease;
}

@keyframes filtering {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* لاحتواء العناصر المطلقة مثل مؤشر التحميل */
}

.game-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #404040;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card h3 {
    margin: 1rem 0.5rem;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
}

/* تحسين تصميم الأزرار */
.card-buttons {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* زر التحميل - أخضر جذاب */
.btn {
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

/* زر "احصل عليها" - أخضر جذاب */
.btn:not(.btn-details) {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn:not(.btn-details):hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn:not(.btn-details):active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* زر "التفاصيل" - أزرق أنيق */
.btn-details {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-details:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-details:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* تأثير النبض للأزرار */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* تحسين للأجهزة المحمولة */
@media (max-width: 768px) {
    .card-buttons {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .game-card h3 {
        font-size: 1rem;
        margin: 0.8rem 0.3rem;
    }
    
    .btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
}

/* تحسين للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .game-card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .btn:not(.btn-details) {
        background: linear-gradient(135deg, #059669, #047857);
    }
    
    .btn:not(.btn-details):hover {
        background: linear-gradient(135deg, #047857, #065f46);
    }
    
    .btn-details {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }
    
    .btn-details:hover {
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
    }
}

/* تأثير التحميل للأزرار */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* تحسين إمكانية الوصول */
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* تأثير النقر */
.btn:active {
    transform: scale(0.98);
}

/* نظام التصفية الاحترافي */
.filter-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.filter-header h3 {
    color: #e6edf3;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #58a6ff, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clear-filters {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.clear-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333, #a71e2a);
}

.clear-icon {
    font-size: 1.1rem;
}

.filter-categories {
    display: grid;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    color: #8b949e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: right;
    position: relative;
}

.filter-group h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #7dd3fc);
    border-radius: 1px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: #e6edf3;
    border: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    gap: 0.5rem;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    touch-action: manipulation;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
    border-color: #58a6ff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #58a6ff, #7dd3fc);
    color: #1a1a2e;
    border-color: #58a6ff;
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #4a9eff, #6bc7f0);
    transform: translateY(-3px);
}

.filter-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover .filter-icon {
    transform: scale(1.2);
}

.filter-btn.active .filter-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.results-counter {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(125, 211, 252, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    color: #e6edf3;
    font-weight: 600;
    font-size: 1.1rem;
}

.results-counter span {
    color: #58a6ff;
    font-weight: 700;
    font-size: 1.3rem;
}

/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .filter-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-categories {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .filter-container {
        padding: 1rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .filter-icon {
        font-size: 1rem;
    }
}

/* تأثيرات إضافية للتفاعل */
.filter-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* تأثير التحميل */
.games-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.games-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid #58a6ff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* تأثير ظهور البطاقات */
.game-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.game-card.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأثير التصفية النشط */
.filter-btn.filtering {
    animation: filtering 0.5s ease;
}

@keyframes filtering {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}
