/* ==========================================================================
   SlashWeb - Category, Tag & Search Results Styles (style-category.css)
   ========================================================================== */

/* رأس صفحة التصنيف والوسم والبحث */
.category-header,
.tag-header,
.search-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 2.25rem 2.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.category-header::before,
.tag-header::before,
.search-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.category-header h1,
.tag-header h1,
.search-header h1 {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.category-header h1 i,
.tag-header h1 i,
.search-header h1 i {
    color: var(--color-primary);
}

.category-header p,
.tag-header p,
.search-header p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.category-header .count,
.tag-header .count,
.search-header .result-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.category-header .count i,
.tag-header .count i,
.search-header .result-count i {
    color: var(--color-primary);
}

/* نموذج البحث في الرأس */
.search-form-large {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .search-form-large {
        flex-direction: column;
    }
}

.search-form-large input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: all var(--transition-normal);
}

.search-form-large input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-form-large input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.search-form-large button {
    padding: 0.85rem 1.75rem;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.search-form-large button:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}

/* حالة الفراغ وعدم وجود نتائج */
.empty-results-box {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.empty-results-box .icon {
    font-size: 3.5rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: block;
}

.empty-results-box h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.empty-results-box p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}