/* تحسين منطقة البحث */
:root {
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-button {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
}

.search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.search-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* تأثيرات إضافية */
.search-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, 
        rgba(var(--primary-rgb), 0.2),
        rgba(var(--primary-rgb), 0.1),
        transparent 60%
    );
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.search-container:focus-within::before {
    opacity: 1;
}

/* تحسين الوضع الليلي */
@media (prefers-color-scheme: dark) {
    .search-input {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .search-input:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-color);
    }

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

/* تحسين التصميم على الموبايل */
@media (max-width: 768px) {
    .search-container {
        margin: 1rem auto;
    }

    .search-input {
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
        font-size: 1rem;
    }

    .search-button {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
        left: 1rem;
    }
}
