/* =====================================================
   MODERN SEARCH MODAL - Professional & Clean
   ===================================================== */

/* Overlay Background - Full screen with top alignment */
.glamzn-search-overlay {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    padding: 0;
    overflow-y: auto;
}

.dark .glamzn-search-overlay {
    background: rgba(15, 23, 42, 0.98) !important;
}

/* Close Button */
.glamzn-search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.glamzn-search-close:hover {
    background: #fee2e2;
    transform: rotate(90deg);
    border-color: #ef4444;
    color: #ef4444;
}

.dark .glamzn-search-close {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.dark .glamzn-search-close:hover {
    background: #450a0a;
    border-color: #ef4444;
    color: #ef4444;
}

/* Search Container - Full width optimized */
.glamzn-search-container {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 0;
    padding: 80px 60px 60px 60px;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Container */
.dark .glamzn-search-container {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

/* Header Section */
.glamzn-search-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glamzn-search-icon-large {
    font-size: 48px;
    color: #4f46e5;
    margin-bottom: 16px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.glamzn-search-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.dark .glamzn-search-title {
    color: #fff;
}

.glamzn-search-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.dark .glamzn-search-subtitle {
    color: #94a3b8;
}

/* Search Form */
.glamzn-search-form-modern {
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glamzn-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
}

.glamzn-search-input-wrapper:focus-within {
    background: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.dark .glamzn-search-input-wrapper {
    background: #0f172a;
    border-color: #334155;
}

.dark .glamzn-search-input-wrapper:focus-within {
    background: #1e293b;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.glamzn-search-input-icon {
    font-size: 20px;
    color: #94a3b8;
    margin-right: 12px;
    flex-shrink: 0;
}

.glamzn-search-input-wrapper:focus-within .glamzn-search-input-icon {
    color: #4f46e5;
}

.dark .glamzn-search-input-wrapper:focus-within .glamzn-search-input-icon {
    color: #818cf8;
}

.glamzn-search-input-modern {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    padding: 14px 0;
}

.glamzn-search-input-modern::placeholder {
    color: #94a3b8;
}

.dark .glamzn-search-input-modern {
    color: #fff;
}

.dark .glamzn-search-input-modern::placeholder {
    color: #64748b;
}

.glamzn-search-submit-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.glamzn-search-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateX(2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Shortcuts - Removed */

/* Suggestions */
.glamzn-search-suggestions-wrapper {
    max-height: none;
    overflow-y: visible;
    margin-top: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glamzn-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.glamzn-suggestions-list li {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.glamzn-suggestions-list li:hover {
    background: #fff;
    border-color: #e2e8f0;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dark .glamzn-suggestions-list li {
    background: #0f172a;
}

.dark .glamzn-suggestions-list li:hover {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.glamzn-suggestions-list li::before {
    content: '→';
    font-size: 16px;
    color: #4f46e5;
    font-weight: bold;
}

.dark .glamzn-suggestions-list li::before {
    color: #818cf8;
}

/* Responsive - Mobile Optimization */
@media (max-width: 768px) {
    .glamzn-search-container {
        padding: 50px 16px 30px 16px;
        min-height: 100vh;
    }

    .glamzn-search-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .glamzn-search-header {
        margin-bottom: 30px;
    }

    .glamzn-search-icon-large {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .glamzn-search-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .glamzn-search-subtitle {
        font-size: 13px;
    }

    .glamzn-search-form-modern {
        margin-bottom: 20px;
    }

    .glamzn-search-input-wrapper {
        padding: 4px 4px 4px 14px;
        border-radius: 12px;
    }

    .glamzn-search-input-icon {
        font-size: 18px;
        margin-right: 10px;
    }

    .glamzn-search-input-modern {
        font-size: 16px;
        padding: 12px 0;
    }

    .glamzn-search-submit-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 10px;
    }

    .glamzn-search-header,
    .glamzn-search-form-modern,
    .glamzn-search-suggestions-wrapper {
        max-width: 100%;
    }

    .glamzn-suggestions-list li {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 6px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .glamzn-search-container {
        padding: 45px 12px 25px 12px;
    }

    .glamzn-search-title {
        font-size: 20px;
    }

    .glamzn-search-subtitle {
        font-size: 12px;
    }

    .glamzn-search-input-wrapper {
        padding: 3px 3px 3px 12px;
    }

    .glamzn-search-input-modern {
        font-size: 15px;
        padding: 10px 0;
    }

    .glamzn-search-submit-btn {
        width: 40px;
        height: 40px;
    }
}
