/* Search Modal CSS - Premium & Readable */

.search_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 12vh;
}

.search_modal_overlay.active {
    opacity: 1;
    visibility: visible;
}

.search_modal_container {
    width: 90%;
    max-width: 580px; /* Boyut dengelendi */
    background: #ffffff;
    border-radius: 32px;
    padding: 35px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    font-family: 'Nunito', sans-serif; /* Font geri getirildi */
}

/* Dark Theme Overrides */
[data-theme="dark"] .search_modal_container {
    background: #0f0f0f;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

.search_modal_overlay.active .search_modal_container {
    transform: translateY(0) scale(1);
}

.search_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search_modal_title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111111;
    margin: 0;
    letter-spacing: -1px;
}

[data-theme="dark"] .search_modal_title {
    color: #ffffff;
}

.search_modal_close {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .search_modal_close {
    background: #1a1a1a;
}

.search_modal_close svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

[data-theme="dark"] .search_modal_close svg {
    fill: #aaa;
}

.search_modal_close:hover {
    background: #ff3b3b;
    transform: rotate(90deg);
}

.search_modal_close:hover svg {
    fill: #ffffff;
}

.search_modal_input_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 20px;
    padding: 8px 10px;
    transition: all 0.3s ease;
    gap: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); /* Border yerine hafif gölge */
}

[data-theme="dark"] .search_modal_input_wrapper {
    background: #161616;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.search_modal_input_wrapper:focus-within {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Focus durumunda parlama efekti */
}

[data-theme="dark"] .search_modal_input_wrapper:focus-within {
    background: #000000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

.search_modal_input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 10px;
    font-size: 1.2rem;
    color: #111111;
    font-weight: 700;
    font-family: 'Rubik', sans-serif; /* Input fontu geri getirildi */
}

[data-theme="dark"] .search_modal_input {
    color: #ffffff;
}

.search_modal_input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .search_modal_input::placeholder {
    color: #334155;
}

.search_modal_button {
    background: var(--accent-color);
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    color: var(--accent-text);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-family: 'Nunito', sans-serif;
}

.search_modal_button:hover {
    filter: brightness(1.1);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.search_modal_button svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-text);
}

.search_modal_footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    font-weight: 600;
}

[data-theme="dark"] .search_modal_footer {
    color: #475569;
}

/* Error State */
.search_modal_input.error {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@media (max-width: 600px) {
    .search_modal_container {
        width: 95%;
        padding: 25px 20px;
        border-radius: 24px;
    }
    
    .search_modal_input_wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    
    .search_modal_button {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}

