/* ===== SEARCH PAGE STYLES - ADMIN DASHBOARD DESIGN ===== */

/* Main Search Page Container */
.search-page {
    padding: 0;
    margin: 0;
    margin-top: -30px;
}

/* Hero Search Section */
.search-hero-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 40px;
    margin-bottom: 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.search-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.search-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.search-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Icon */
.search-hero-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-hero-icon i {
    font-size: 40px;
    color: white;
}

/* Hero Text */
.search-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.search-hero-title i {
    font-size: 40px;
}

.search-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Main Search Card */
.search-main-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 45px;
    position: relative;
    z-index: 2;
}

/* Modern Search Form */
.search-form-modern {
    margin: 0;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #4285f4;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 0 0 4px rgba(66, 133, 244, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.2);
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: 5px;
}

.search-icon-wrapper i {
    color: #4285f4;
    font-size: 18px;
}

.search-input-modern {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #ffffff;
    padding: 12px 10px;
    outline: none;
    font-weight: 500;
}

.search-input-modern::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-button-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    flex-shrink: 0;
}

.search-button-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.search-button-modern:active {
    transform: translateY(0);
}

.search-button-modern i {
    font-size: 18px;
}

/* Supported Merchants Section */
.search-merchants-section {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
}

.merchants-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 18px;
    margin-left: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.merchants-label i {
    font-size: 14px;
    margin: 0;
}

.merchants-grid {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 600px;
    flex-direction: row !important;
}

.merchant-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: auto;
    height: 50px;
    position: relative !important;
}

.merchant-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.merchant-badge img {
    width: auto;
    height: 45px;
    max-width: 80px;
    object-fit: contain;
    display: block;
}

.merchant-badge span {
    display: none;
}

/* Features Section */
.search-features-section {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon-primary {
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
}

.feature-icon-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.feature-icon-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.feature-icon-info {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* Stats/Steps Section */
.search-stats-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.section-title i {
    font-size: 28px;
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.step-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Search Modals */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.search-modal-close:hover {
    background: #eb3349;
    border-color: #eb3349;
    color: white;
    transform: rotate(90deg);
}

.search-modal-close i {
    font-size: 18px;
}

.search-modal-body {
    padding-right: 20px;
}

/* Loading Modal Specific */
.search-modal-loading .search-modal-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 400px;
}

.loading-spinner-modern {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid #e2e8f0;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button spinner rotation */
.spinner-rotate {
    animation: spin 1s linear infinite;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4285f4 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.loading-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.loading-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* Error Modal Specific */
.search-modal-error .search-modal-body {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-hero-section {
        padding: 40px 25px;
    }

    .search-hero-title {
        font-size: 32px;
    }

    .search-hero-subtitle {
        font-size: 16px;
    }

    .search-main-card {
        padding: 25px;
    }

    .search-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .search-input-modern {
        text-align: center;
        padding: 15px;
    }

    .search-button-modern {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .merchants-grid {
        flex-direction: column;
    }

    .merchant-badge {
        width: 100%;
        justify-content: center;
    }

    .search-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .search-hero-title {
        font-size: 26px;
    }

    .search-hero-icon {
        width: 70px;
        height: 70px;
    }

    .search-hero-icon i {
        font-size: 32px;
    }

    .search-stats-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }
}

/* Print Styles */
@media print {
    .search-hero-section,
    .search-features-section,
    .search-stats-section {
        break-inside: avoid;
    }

    .search-modal {
        display: none;
    }
}

/* Accessibility */
.search-button-modern:focus,
.search-input-modern:focus,
.search-modal-close:focus {
    outline: 3px solid #4285f4;
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .search-main-card {
        background: #2d3748;
    }

    .search-input-group {
        background: #1a202c;
        border-color: #4a5568;
    }

    .search-input-modern {
        color: #e2e8f0;
    }

    .search-input-modern::placeholder {
        color: #718096;
    }

    .feature-card,
    .search-stats-section,
    .search-modal-content {
        background: #2d3748;
        border-color: #4a5568;
    }

    .feature-title,
    .step-card h4,
    .section-title,
    .loading-title {
        color: #e2e8f0;
    }

    .feature-description,
    .step-card p,
    .loading-subtitle {
        color: #a0aec0;
    }

    .step-card {
        background: #1a202c;
    }
}
