.sp-search-hero {
    padding: 50px 20px 70px;
    direction: rtl;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.sp-search-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.sp-search-title {
    margin: 0 0 14px;
    font-size: 58px;
    line-height: 1.08;
    font-weight: 900;
    color: #111111;
    letter-spacing: -0.5px;
}

.sp-search-subtitle {
    font-size: 21px;
    line-height: 1.9;
    color: #4b5563;
    max-width: 670px;
    margin-bottom: 30px;
}

.sp-search-box {
    position: relative;
    max-width: 680px;
}

.sp-search-input-wrap {
    position: relative;
}

.sp-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #f59e0b;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}


.sp-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 48px 18px 56px;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    font-size: 21px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}

.sp-search-input::placeholder {
    color: #9ca3af;
}

.sp-search-input:focus,
.sp-search-input.is-searching {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
    background: #fffefa;
}

.sp-search-status {
    min-height: 24px;
    margin-top: 10px;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.sp-search-status.is-success {
    color: #166534;
}

.sp-search-status.is-empty {
    color: #92400e;
}

.sp-search-status.is-error {
    color: #b91c1c;
}

.sp-search-results {
    position: absolute;
    top: calc(100% + 1px);
  right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    z-index: 999;
    display: none;
}

.sp-search-results.is-visible {
    display: block;
}

.sp-search-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #475569;
    font-size: 15px;
}

.sp-search-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #fde7b0;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spSearchSpin 0.7s linear infinite;
    flex: 0 0 auto;
}

@keyframes spSearchSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sp-search-result-item,
.sp-search-result-item:visited,
.sp-search-result-item:hover,
.sp-search-result-item:active,
.sp-search-result-item:focus {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #111827 !important;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.sp-search-result-item:last-child {
    border-bottom: 0;
}

.sp-search-result-item:hover,
.sp-search-result-item.is-active {
    background: #fff8eb;
}

.sp-search-result-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    flex-shrink: 0;
    border: 1px solid #ececec;
    padding: 4px;
    box-sizing: border-box;
}

.sp-search-result-thumb.is-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
}

.sp-search-result-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sp-search-result-name {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
}

.sp-search-result-name strong {
    color: #f59e0b;
    font-weight: 800;
}

.sp-search-result-hint {
    font-size: 13px;
    color: #64748b;
}

.sp-search-no-results {
    padding: 16px;
    text-align: right;
}

.sp-search-no-results-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.sp-search-no-results-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.sp-search-meta {
    margin-top: 28px;
    max-width: 680px;
}

.sp-search-meta-title {
    margin-bottom: 12px;
    font-size: 15px;
    color: #111827;
    font-weight: 800;
}

.sp-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-search-tag {
    border: 1px solid #ececec;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.03);
}

.sp-search-tag:hover {
    background: #fff8eb;
    border-color: #f59e0b;
    color: #111827;
    transform: translateY(-1px);
}

.sp-search-empty-tags {
    color: #94a3b8;
    font-size: 14px;
}

.sp-search-visual {
    position: relative;
    min-height: 520px;
}

.sp-search-shape {
    position: absolute;
    border-radius: 999px;
    opacity: 0.85;
}

.sp-search-shape-one {
    width: 250px;
    height: 250px;
    background: rgba(245, 158, 11, 0.12);
    top: 10px;
    right: 100px;
}

.sp-search-shape-two {
    width: 220px;
    height: 220px;
    background: rgba(17, 24, 39, 0.05);
    top: 140px;
    left: 50px;
}

.sp-search-card {
    position: absolute;
    background: rgba(255,255,255,0.8);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.6);
}

.sp-search-card-one {
    width: 240px;
    height: 280px;
    top: 90px;
    right: 110px;
}

.sp-search-card-two {
    width: 220px;
    height: 260px;
    top: 280px;
    left: 70px;
}

.sp-search-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, rgba(17,24,39,0.03) 100%);
    border-radius: 24px;
}

@media (max-width: 1024px) {
    .sp-search-hero-inner {
        grid-template-columns: 1fr;
    }

    .sp-search-visual {
        min-height: 300px;
    }

    .sp-search-title {
        font-size: 44px;
    }

    .sp-search-subtitle {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .sp-search-hero {
        padding: 30px 16px 42px;
    }

    .sp-search-title {
        font-size: 34px;
        line-height: 1.2;
    }

    .sp-search-subtitle {
        font-size: 16px;
        line-height: 1.8;
    }

    .sp-search-input {
        font-size: 18px;
    padding: 16px 18px 16px 50px;
    }

    .sp-search-icon {
        left: 16px;
        font-size: 20px;
    }



    .sp-search-results {
    top: calc(100% + 1px);
  }

    .sp-search-tab-button {
        font-size: 13px;
    }

    .sp-search-visual {
        display: none;
    }
}