/* ===== Search Page Specific Styles ===== */

/* Search Input */
.search-group {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clear-search {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Scroll Animations for Search Page */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Filters section fade in on load */
.filters-section {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.results-section {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Results cards stagger animation */
.result-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease-out forwards;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.15s; }
.result-card:nth-child(3) { animation-delay: 0.2s; }
.result-card:nth-child(4) { animation-delay: 0.25s; }
.result-card:nth-child(5) { animation-delay: 0.3s; }
.result-card:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header scroll effect */
.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===== Premium Feature Buttons ===== */
.result-premium-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    overflow: visible !important;
    position: relative;
    z-index: 100;
}

.btn-premium-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    position: relative;
    z-index: 100;
    background: white;
    color: #1d4ed8;
    border: 2px solid #1d4ed8;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease;
    position: relative;
    opacity: 0.6;
    flex: 1;
    justify-content: center;
}

.btn-premium-feature svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.btn-premium-feature .premium-lock {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
}

.btn-premium-feature.premium-unlocked .premium-lock {
    display: none;
}

.btn-premium-feature:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

.btn-premium-feature.premium-unlocked {
    opacity: 1;
    cursor: pointer;
}

.btn-premium-feature.premium-unlocked:hover {
    background: #1d4ed8;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-premium-feature.premium-unlocked:active {
    transform: translateY(0);
}

.btn-premium-feature:disabled:not(.premium-unlocked):hover {
    background: white;
    color: #1d4ed8;
}



.btn-premium-feature:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

.btn-premium-feature.premium-unlocked {
    opacity: 1;
    cursor: pointer;
}

.btn-premium-feature.premium-unlocked:hover {
    background: #1d4ed8;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-premium-feature.premium-unlocked:active {
    transform: translateY(0);
}

.btn-premium-feature:disabled:not(.premium-unlocked):hover {
    background: white;
    color: #1d4ed8;
}

/* Premium Feature Tooltips */
.btn-premium-feature {
    position: relative;
}

.btn-premium-feature::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 9999;
}

.btn-premium-feature::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    border: 6px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 9999;
}

.btn-premium-feature:hover::before,
.btn-premium-feature:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.btn-premium-feature:disabled:not(.premium-unlocked)::before {
    content: attr(data-tooltip) " - 🔒 Premium";
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .result-premium-actions {
        flex-direction: column;
    }
    
    .btn-premium-feature {
        width: 100%;
        justify-content: center;
    }
    
    .btn-premium-feature::before {
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }
}
