/* This CSS complements index.css with header-specific styles */

/* Use variables from index.css */
:root {
    /* Add header-specific variables */
    --badge-airing: #16a34a;     /* أخضر أكثر إشراقًا */
    --badge-completed: #eab308;  /* أصفر ذهبي أكثر وضوحًا */
    --badge-all: #64748b;        /* رمادي أزرق أكثر حداثة */
    --primary-shadow: rgba(139, 92, 246, 0.15);
    --search-bg: rgba(17, 24, 39, 0.4);
    --card-blur: 10px;
    --card-border: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Glass design variables */
    --glass-bg: rgba(26, 36, 54, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

/* Loading Animation */
.status-badge.loading,
.type-badge.loading {
    position: relative;
    overflow: hidden;
}

.status-badge.loading::after,
.type-badge.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: loading-shine 1.5s infinite;
}

@keyframes loading-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .filter-groups {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .search-filter-container {
        padding: 0.8rem;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .search-filter-container {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .active-filters-badges-modern {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .clear-all-filters-modern {
        margin-top: 0.4rem;
    }
}

@media (max-width: 480px) {
    .search-filter-container {
        padding: 0.6rem;
        border-radius: 10px;
        margin-top: 0.5rem;
    }
    
    .status-badges,
    .type-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .status-badges::-webkit-scrollbar,
    .type-badges::-webkit-scrollbar {
        display: none;
    }
    
    .status-badge,
    .type-badge {
        flex-shrink: 0;
    }
    
    .filter-value-modern {
        max-width: 70px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .active-filters-container-modern {
        padding: 0.5rem;
    }
}

/* Extremely small screens */
@media (max-width: 320px) {
    .search-filter-container {
        padding: 8px;
        border-radius: 8px;
        margin: 5px auto;
    }
    
    .search-input {
        padding: 0.5rem 2rem;
        font-size: 0.8rem;
    }
    
    .search-icon,
    .search-clear-btn {
        font-size: 0.75rem;
    }
    
    .filters-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .filter-group label {
        font-size: 0.7rem;
    }
    
    .filter-group select {
        padding: 0.4rem 0.6rem;
        padding-left: 1.8rem;
        font-size: 0.75rem;
        background-size: 15px;
        background-position: left 5px center;
    }
    
    .status-badge,
    .type-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .status-badge i,
    .type-badge i {
        font-size: 0.65rem;
    }
    
    .filter-actions {
        gap: 5px;
    }
    
    .filter-apply-btn,
    .filter-reset-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .active-filters-header {
        font-size: 0.75rem;
        padding: 5px;
    }
    
    .active-filter-badge-modern {
        padding: 3px;
        font-size: 0.65rem;
    }
    
    .filter-label-modern,
    .filter-value-modern {
        font-size: 0.65rem;
    }
    
    .clear-all-filters-modern {
        font-size: 0.65rem;
        padding: 3px 5px;
    }
}

/* Custom Toast Style from Gemini */
.swal2-toast.custom-toast-style {
    background: linear-gradient(135deg, #2c3e50, #1a2533) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 1.25rem !important;
}
.swal2-toast.custom-toast-style .swal2-title {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
}
.swal2-toast.custom-toast-style .swal2-timer-progress-bar {
    background: #8b5cf6 !important;
}
.swal2-toast.custom-toast-style .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(139, 92, 246, 0.5) !important;
}
.swal2-toast.custom-toast-style .swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-toast.custom-toast-style .swal2-icon.swal2-success .swal2-success-line-long {
    stroke: #8b5cf6 !important;
}

/* Blinking dot for airing anime */
.airing-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2ecc71; /* Vibrant green */
    border-radius: 50%;
    margin-right: 6px; /* Adjusted for RTL */
    animation: blink-animation 1.5s infinite;
    box-shadow: 0 0 5px #2ecc71, 0 0 10px #2ecc71;
    vertical-align: middle;
}

@keyframes blink-animation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}