﻿/* shaddai-search.css - Premium Search Overlay */
:root {
    --search-bg: rgba(255, 255, 255, 0.9);
    --search-blur: 15px;
    --search-accent: #39533B;
    --search-text: #1B4432;
}

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

.shaddai-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    width: 90%;
    max-width: 650px;
    background: var(--search-bg);
    backdrop-filter: blur(var(--search-blur));
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shaddai-search-overlay.is-active .search-modal {
    transform: translateY(0) scale(1);
}

.search-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-icon {
    color: var(--search-accent);
    width: 24px;
    height: 24px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--search-text);
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(27, 68, 50, 0.4);
}

.search-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--search-accent);
    transition: background 0.2s;
}

.search-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.search-result-item:hover {
    background: rgba(117, 173, 79, 0.1);
}

.result-image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f5;
}

.result-info {
    flex: 1;
}

.result-title {
    display: block;
    font-weight: 600;
    color: var(--search-text);
    font-size: 16px;
    margin-bottom: 2px;
}

.result-price {
    font-size: 14px;
    color: var(--search-accent);
    font-weight: 500;
}

.search-empty,
.search-loading {
    padding: 40px;
    text-align: center;
    color: var(--search-accent);
    font-weight: 500;
}

.search-shortcuts {
    background: #f9f9fb;
    padding: 12px 24px;
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 6px;
}

kbd {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: sans-serif;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .shaddai-search-overlay {
        padding-top: 0;
    }

    .search-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
    }

    .search-header {
        padding: 16px;
    }

    .search-results {
        max-height: calc(100vh - 150px);
    }

    .search-shortcuts {
        display: none;
    }
}
