/**
 * Search Guide Modal Styles
 * Beautiful onboarding modal for first-time search users
 */

.search-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-guide-modal.search-guide-visible {
    opacity: 1;
    visibility: visible;
}

.search-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.search-guide-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    color: white;
}

.search-guide-visible .search-guide-content {
    transform: scale(1);
}

.search-guide-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.search-guide-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

[dir="rtl"] .search-guide-close {
    right: auto;
    left: 1.5rem;
}

.search-guide-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-guide-header h2 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-guide-subtitle {
    margin: 0;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.search-guide-body {
    padding: 2rem 3rem;
}

.search-guide-feature {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-guide-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.search-guide-feature-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px;
}

.search-guide-feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.search-guide-feature-content {
    flex: 1;
}

.search-guide-feature-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.search-guide-feature-content p {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.search-guide-feature-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-guide-feature-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.5;
}

.search-guide-feature-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

[dir="rtl"] .search-guide-feature-content li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .search-guide-feature-content li::before {
    left: auto;
    right: 0;
}

.search-guide-tips {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
}

.search-guide-tips-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-guide-tips-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-guide-tips-icon svg {
    width: 100%;
    height: 100%;
    stroke: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.search-guide-tips h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fbbf24;
}

.search-guide-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-guide-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.5;
}

.search-guide-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

[dir="rtl"] .search-guide-tips li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .search-guide-tips li::before {
    left: auto;
    right: 0;
}

.search-guide-footer {
    padding: 2rem 3rem 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-guide-btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.search-guide-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-guide-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.search-guide-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.search-guide-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-guide-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-guide-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .search-guide-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .search-guide-header h2 {
        font-size: 1.75rem;
    }
    
    .search-guide-subtitle {
        font-size: 1rem;
    }
    
    .search-guide-body {
        padding: 1.5rem 1.5rem;
    }
    
    .search-guide-feature {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .search-guide-feature-icon {
        width: 56px;
        height: 56px;
        padding: 10px;
    }
    
    .search-guide-feature-content h3 {
        font-size: 1.25rem;
    }
    
    .search-guide-tips-icon {
        width: 32px;
        height: 32px;
    }
    
    .search-guide-footer {
        padding: 1.5rem 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-guide-btn {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .search-guide-checkbox {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .search-guide-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    [dir="rtl"] .search-guide-close {
        right: auto;
        left: 1rem;
    }
}

/* Scrollbar styling */
.search-guide-content::-webkit-scrollbar {
    width: 8px;
}

.search-guide-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.search-guide-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.search-guide-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Dark theme adjustments */
[data-theme="dark"] .search-guide-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Animation for feature items */
.search-guide-visible .search-guide-feature {
    animation: slideInUp 0.5s ease-out backwards;
}

.search-guide-visible .search-guide-feature:nth-child(1) {
    animation-delay: 0.1s;
}

.search-guide-visible .search-guide-feature:nth-child(2) {
    animation-delay: 0.2s;
}

.search-guide-visible .search-guide-feature:nth-child(3) {
    animation-delay: 0.3s;
}

.search-guide-visible .search-guide-feature:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
