/* Search Pro V1 Stylesheet */

/* TRIGGER CONTAINER SYSTEM */
.sp-9939cd93-container {
    display: flex;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* HIGHLY PARAMETERIZED TRIGGER (BUTTON & ICON NATIVE EQUIVALENT STYLE WRAPPER) */
.sp-9939cd93-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    transition: all 0.3s ease;
    transform-origin: center center;
    position: relative;
    overflow: hidden;
}

/* Flex positions for trigger contents based on selection */
.sp-9939cd93-trigger-icon-pos-left .sp-9939cd93-trigger { flex-direction: row; }
.sp-9939cd93-trigger-icon-pos-right .sp-9939cd93-trigger { flex-direction: row-reverse; }
.sp-9939cd93-trigger-icon-pos-above .sp-9939cd93-trigger { flex-direction: column; }
.sp-9939cd93-trigger-icon-pos-below .sp-9939cd93-trigger { flex-direction: column-reverse; }

.sp-9939cd93-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.sp-9939cd93-trigger-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.sp-9939cd93-trigger-text {
    display: inline-block;
    transition: color 0.3s ease;
}

/* NATIVE HOVER ANIMATIONS FOR TRIGGER */
.sp-9939cd93-trigger-anim-grow .sp-9939cd93-trigger:hover {
    transform: scale(1.05);
}
.sp-9939cd93-trigger-anim-shrink .sp-9939cd93-trigger:hover {
    transform: scale(0.95);
}
.sp-9939cd93-trigger-anim-float .sp-9939cd93-trigger:hover {
    transform: translateY(-4px);
}
.sp-9939cd93-trigger-anim-pulse .sp-9939cd93-trigger:hover {
    animation: sp-9939cd93-trig-pulse 1s infinite alternate;
}
@keyframes sp-9939cd93-trig-pulse {
    to { transform: scale(1.06); }
}
.sp-9939cd93-trigger-anim-push .sp-9939cd93-trigger:active {
    transform: scale(0.92);
}
.sp-9939cd93-trigger-anim-pop .sp-9939cd93-trigger:active {
    transform: scale(1.08);
}
.sp-9939cd93-trigger-anim-rotate .sp-9939cd93-trigger:hover {
    transform: rotate(4deg);
}
.sp-9939cd93-trigger-anim-bob .sp-9939cd93-trigger:hover {
    animation: sp-9939cd93-trig-bob 1s infinite alternate;
}
@keyframes sp-9939cd93-trig-bob {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(4px); }
}
.sp-9939cd93-trigger-anim-fade .sp-9939cd93-trigger:hover {
    opacity: 0.8;
}
.sp-9939cd93-trigger-anim-slide .sp-9939cd93-trigger:hover {
    transform: translateX(4px);
}


/* OVERLAY BACKGROUND */
.sp-9939cd93-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    box-sizing: border-box;
}

/* MODAL CONTAINER */
.sp-9939cd93-modal {
    width: calc(100% - 32px);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}

/* PREMIUM HEADER */
.sp-9939cd93-modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sp-9939cd93-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}
.sp-9939cd93-header-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

/* INTEGRATED CLOSE BUTTON */
.sp-9939cd93-close {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

/* POSITION LOGICS */
.sp-9939cd93-close-pos-header_right .sp-9939cd93-close {
    position: absolute;
    top: 32px;
    right: 30px;
}
.sp-9939cd93-close-pos-input_right .sp-9939cd93-close {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
}
.sp-9939cd93-close-pos-outside .sp-9939cd93-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #ffffff !important;
}
.sp-9939cd93-close-pos-floating .sp-9939cd93-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 50%;
}
.sp-9939cd93-close-pos-header_left .sp-9939cd93-close {
    position: absolute;
    top: 32px;
    left: 30px;
}

/* SEARCH BAR & ICON POSITIONING DYNAMICS */
.sp-9939cd93-search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 16px;
    gap: 12px;
    position: relative;
    transition: border-color 0.2s ease;
}
.sp-9939cd93-search-bar:focus-within {
    border-color: #3b82f6;
}

/* Default state icon style wrapper */
.sp-9939cd93-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.sp-9939cd93-search-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    transition: fill 0.3s ease;
}

/* Icon Position Class Implementations based on prefixes */
.sp-9939cd93-search-icon-left_inside .sp-9939cd93-search-bar {
    flex-direction: row;
}
.sp-9939cd93-search-icon-right_inside .sp-9939cd93-search-bar {
    flex-direction: row-reverse;
}
.sp-9939cd93-search-icon-left_outside .sp-9939cd93-search-bar {
    padding-left: 45px;
}
.sp-9939cd93-search-icon-left_outside .sp-9939cd93-search-icon {
    position: absolute;
    left: -40px;
}
.sp-9939cd93-search-icon-right_outside .sp-9939cd93-search-bar {
    padding-right: 45px;
}
.sp-9939cd93-search-icon-right_outside .sp-9939cd93-search-icon {
    position: absolute;
    right: -40px;
}

/* HOVER ANIMATIONS */
.sp-9939cd93-icon-anim-grow .sp-9939cd93-search-icon:hover {
    transform: scale(1.15) !important;
}
.sp-9939cd93-icon-anim-shrink .sp-9939cd93-search-icon:hover {
    transform: scale(0.85) !important;
}
.sp-9939cd93-icon-anim-rotate .sp-9939cd93-search-icon:hover {
    transform: rotate(15deg) !important;
}
.sp-9939cd93-icon-anim-pulse .sp-9939cd93-search-icon:hover {
    animation: sp-9939cd93-pulse 1s infinite alternate;
}
@keyframes sp-9939cd93-pulse {
    to { transform: scale(1.1); }
}

.sp-9939cd93-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 15px;
    color: #0f172a;
    padding: 4px 0;
}

/* LOADER */
.sp-9939cd93-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: sp-9939cd93-spin 0.6s linear infinite;
}
@keyframes sp-9939cd93-spin {
    to { transform: rotate(360deg); }
}

/* SUGGESTIONS */
.sp-9939cd93-popular-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.sp-9939cd93-popular-tags, .sp-9939cd93-history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.sp-9939cd93-tag {
    background-color: #f1f5f9;
    color: #475569;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sp-9939cd93-tag:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* GROUP & HEADINGS */
.sp-9939cd93-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.sp-9939cd93-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}
.sp-9939cd93-grid {
    display: flex;
    flex-direction: column;
}

/* PREMIUM COMPACT CARD DESIGN */
.sp-9939cd93-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: transparent;
    border: 1px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
}
.sp-9939cd93-card-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    overflow: hidden;
    border-radius: 4px;
}
.sp-9939cd93-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.sp-9939cd93-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sp-9939cd93-card-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
    cursor: default;
    pointer-events: none;
}
.sp-9939cd93-card-title {
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    transition: color 0.2s ease;
}
.sp-9939cd93-card-excerpt {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* NO RESULTS */
.sp-9939cd93-no-results {
    text-align: center;
    padding: 30px 15px;
}
.sp-9939cd93-no-results svg {
    width: 40px;
    height: 40px;
    fill: #94a3b8;
    margin-bottom: 8px;
}
.sp-9939cd93-no-results p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

mark {
    background-color: #fef08a;
    color: #854d0e;
    padding: 0 1px;
    border-radius: 1px;
}
