/* Compare Page Specific Styles */

/* Base Container */
.compare-container {
    padding: 15px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: calc(var(--app-footer-height) + 20px);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00A651, #00ff87);
    width: 0%;
    transition: width 0.1s ease;
}

/* Navigation */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-comparison-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-comparison-btn:hover {
    background: rgba(0, 166, 81, 0.2);
    border-color: #00A651;
    transform: scale(1.1);
}

/* Enhanced Product Selector Row */
.compare-selector-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 15px;
    margin-bottom: 30px;
    align-items: stretch;
}

.selector-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.selector-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00A651;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 166, 81, 0.15);
}

.selector-box.selected {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.selector-box.overall-winner {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: winnerPulse 2s ease-in-out infinite;
}

@keyframes winnerPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(255, 215, 0, 0.2);
    }
}

/* Placeholder Styling - Empty State */
.select-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    padding: 20px;
}

.placeholder-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.selector-box:hover .placeholder-icon {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(0, 166, 81, 0.05));
    border-color: rgba(0, 166, 81, 0.4);
    transform: scale(1.05);
}

.placeholder-icon i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.selector-box:hover .placeholder-icon i {
    color: rgba(0, 166, 81, 0.8);
}

.select-placeholder span {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.select-placeholder small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

/* VS Badge */
.vs-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vs-badge {
    background: linear-gradient(135deg, #00A651, #00ff87);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 0 20px rgba(0, 166, 81, 0.5);
    z-index: 2;
    position: relative;
}

.vs-glow {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Selected Product Preview - Clean & Minimal */
.selected-product-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.selected-product-preview.active-entry {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Remove Selection Button */
.remove-selection {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 50%;
    color: rgba(255, 71, 87, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 13px;
}

.remove-selection:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: rgba(255, 71, 87, 0.5);
    color: #ff4757;
    transform: scale(1.1) rotate(90deg);
}

/* Product Image Container */
.product-image-container {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.selector-box:hover .product-image-container {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 166, 81, 0.3);
}

.selector-box:hover .product-image-container img {
    transform: scale(1.08);
}

/* Product Info */
.product-info {
    text-align: center;
    width: 100%;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.product-price {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: #00ff87;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.2), rgba(0, 255, 135, 0.1));
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid rgba(0, 166, 81, 0.3);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.2);
}

/* Best to Buy Badge */
.best-to-buy-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    from {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.section-header i {
    font-size: 18px;
    color: #00A651;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Image Comparison Section */
.image-comparison-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.6s ease;
}

.image-gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-slot {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main:hover img {
    transform: scale(1.05);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-nav:hover {
    background: rgba(0, 166, 81, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.left {
    left: 10px;
}

.gallery-nav.right {
    right: 10px;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(0, 166, 81, 0.5);
    border-radius: 4px;
}

.thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbnail.active {
    border-color: #00A651;
    box-shadow: 0 0 10px rgba(0, 166, 81, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Score Cards Section */
.score-cards-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.6s ease;
}

.score-cards-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
}

.score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.score-ring-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.score-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-divider {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.score-item i {
    font-size: 10px;
}

.score-item.positive i {
    color: #00ff87;
}

.score-item.negative i {
    color: #ff4757;
}

/* Charts Section */
.charts-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.6s ease;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 15px;
    position: relative;
    min-height: 250px;
}

.chart-container canvas {
    max-height: 220px;
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.6s ease;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-product {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.feature-product.has-feature {
    color: #00ff87;
}

.feature-product.no-feature {
    color: rgba(255, 255, 255, 0.3);
}

.feature-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Comparison Grid - Enhanced */
.comparison-grid {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.6s ease;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header-label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto 15px;
}

.comparison-header-label i {
    color: #00A651;
    font-size: 14px;
}

.comp-value {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    word-break: break-word;
}

.better-metric {
    background: rgba(0, 166, 81, 0.15) !important;
    color: #00ff87 !important;
    font-weight: 700;
    border: 1px solid rgba(0, 166, 81, 0.3);
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.1);
}

.win-check {
    font-size: 12px;
    margin-left: 8px;
    color: #00ff87;
    animation: checkPop 0.5s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* AI Advisor Box - Enhanced */
.ai-advisor-box {
    position: relative;
    border-radius: 24px;
    padding: 3px;
    background: transparent;
    overflow: hidden;
    margin-top: 20px;
    animation: fadeIn 0.8s ease;
}

.ai-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            #00A651 25%,
            transparent 50%,
            #00ff87 75%,
            transparent 100%);
    animation: aiRotate 4s linear infinite;
    z-index: 1;
}

@keyframes aiRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-content {
    position: relative;
    z-index: 2;
    background: #0f172a;
    border-radius: 22px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00A651, #00ff87);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 166, 81, 0.4);
}

.ai-title h3 {
    color: #00ff87;
    font-size: 18px;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.3);
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff87;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

#aiVerdictText {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 15px;
    min-height: 60px;
    white-space: pre-line;
}

.ai-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-action-btn {
    flex: 1;
    /* background: linear-gradient(135deg, #00A651, #00ff87); */
    border: none;
    color: #000;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

.ai-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Picker Modal */
.picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: flex-end;
}

.picker-modal.active {
    display: flex;
}

.picker-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.picker-content {
    position: relative;
    background: linear-gradient(180deg, #1a1f3a 0%, #0f172a 100%);
    width: 100%;
    max-height: 85vh;
    border-radius: 30px 30px 0 0;
    padding: 25px 20px 100px;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.picker-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.picker-title i {
    font-size: 20px;
    color: #00A651;
}

.picker-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.picker-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.picker-close:hover {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* ============================================
   ATTRACTIVE SEARCH SECTION STYLES
   ============================================ */

/* Search Container */
.picker-search-container {
    position: relative;
    margin-bottom: 20px;
}

/* Main Search Bar - Glassmorphism Style */
.picker-search {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.picker-search:focus-within {
    border-color: rgba(0, 166, 81, 0.5);
    box-shadow: 0 8px 32px rgba(0, 166, 81, 0.15), 0 0 20px rgba(0, 166, 81, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Search Icon */
.picker-search .search-icon {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s ease;
}

.picker-search:focus-within .search-icon {
    color: #00ff87;
    transform: scale(1.1);
}

/* Search Input */
.picker-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 130px 16px 50px;
    color: white;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    letter-spacing: 0.3px;
}

.picker-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

/* Voice Search Button */
.voice-search-btn {
    position: absolute;
    right: 55px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.voice-search-btn:hover {
    background: rgba(0, 166, 81, 0.2);
    border-color: rgba(0, 166, 81, 0.4);
    color: #00ff87;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.3);
}

.voice-search-btn.recording {
    background: rgba(255, 71, 87, 0.3);
    border-color: rgba(255, 71, 87, 0.5);
    color: #ff4757;
    animation: voiceRecording 1.5s ease-in-out infinite;
}

@keyframes voiceRecording {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 12px rgba(255, 71, 87, 0);
    }
}

/* Keyboard Shortcut Badge */
.search-shortcut {
    position: absolute;
    right: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.picker-search:focus-within .search-shortcut {
    opacity: 0;
    transform: scale(0.8);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 10px;
    right: 10px;
    background: linear-gradient(180deg, rgba(20, 25, 45, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    z-index: 1000;
    backdrop-filter: blur(30px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: suggestionsAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 350px;
    overflow-y: auto;
}

@keyframes suggestionsAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Suggestions Header */
.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
}

.suggestions-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.clear-recent-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-recent-btn:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Individual Suggestion Items */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.suggestion-item i {
    font-size: 15px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.suggestion-item.recent i {
    color: #00A651;
    background: rgba(0, 166, 81, 0.15);
}

.suggestion-item.trending i {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.suggestion-item.product i {
    color: #4dabf7;
    background: rgba(77, 171, 247, 0.15);
}

.suggestion-item.category i {
    color: #ffd43b;
    background: rgba(255, 212, 59, 0.15);
}

.suggestion-item.feature i {
    color: #da77f2;
    background: rgba(218, 119, 242, 0.15);
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.suggestion-type {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlight matched text */
.highlight {
    color: #00ff87;
    font-weight: 600;
    background: rgba(0, 255, 135, 0.15);
    padding: 1px 4px;
    border-radius: 4px;
}

/* Search Filters Section */
.search-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 14px;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.filter-group select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
}

.filter-group select:focus {
    border-color: #00A651;
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.15);
}

.filter-group select option {
    background: #1a1f35;
    color: white;
    padding: 10px;
}

/* Price Range Slider */
.price-range-slider {
    position: relative;
    padding: 10px 0 20px;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    z-index: 1;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00A651, #00ff87);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(0, 166, 81, 0.4);
    margin-top: -8px;
    transition: all 0.2s ease;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.6);
}

.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Search Statistics */
.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    margin-bottom: 12px;
}

.results-count {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.results-count strong {
    color: #00ff87;
    font-weight: 700;
}

.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.2), rgba(0, 166, 81, 0.1));
    border: 1px solid rgba(0, 166, 81, 0.3);
    color: #00ff87;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}

.filter-tag button {
    background: none;
    border: none;
    color: rgba(0, 255, 135, 0.7);
    cursor: pointer;
    padding: 0;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-tag button:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
}

/* Trending Searches */
.trending-searches {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 16px;
    flex-wrap: wrap;
}

.trending-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trending-label i {
    color: #ff6b6b;
    font-size: 13px;
}

.trending-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trending-tag {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-tag:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.6s ease;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: emptyIconFloat 3s ease-in-out infinite;
}

@keyframes emptyIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-icon i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state h4 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.empty-suggestions {
    margin-bottom: 30px;
}

.empty-suggestions span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.suggestion-chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-chips button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chips button:hover {
    background: rgba(0, 166, 81, 0.2);
    border-color: #00A651;
    color: #00ff87;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.2);
}

.clear-filters-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

/* Highlight matched text in results */
.picker-item-info h4 .highlight {
    background: rgba(0, 166, 81, 0.3);
    color: #00ff87;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* Category Chips */
.picker-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0 15px;
    margin-bottom: 10px;
}

.picker-categories::-webkit-scrollbar {
    height: 0;
}

.category-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-chip.active {
    background: rgba(0, 166, 81, 0.2);
    border-color: #00A651;
    color: #00ff87;
}

/* Enhanced Picker List */
.picker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.picker-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.picker-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: #00A651;
    box-shadow: 0 10px 30px rgba(0, 166, 81, 0.15);
}

.picker-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.picker-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.picker-item:hover .picker-item-image img {
    transform: scale(1.1);
}

.picker-item-category {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.picker-item-info {
    padding: 12px;
}

.picker-item-info h4 {
    font-size: 13px;
    margin: 0 0 6px 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.picker-item-price {
    font-size: 14px;
    color: #00ff87;
    font-weight: 700;
}

.picker-item-stock {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.picker-item-stock.in-stock {
    background: rgba(0, 166, 81, 0.2);
    color: #00ff87;
}

.picker-item-stock.low-stock {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.picker-item-stock.out-of-stock {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compare-container {
        padding: 10px;
    }

    .compare-selector-row {
        grid-template-columns: 1fr 40px 1fr;
        gap: 10px;
    }

    .selector-box {
        min-height: 180px;
    }

    .product-image-container {
        width: 110px;
        height: 110px;
        margin-bottom: 12px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 17px;
        padding: 6px 16px;
    }

    .remove-selection {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .vs-badge {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .score-cards-row {
        flex-direction: column;
        gap: 30px;
    }

    .score-divider {
        order: -1;
    }

    .picker-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .feature-name {
        order: -1;
    }

    .ai-actions {
        flex-direction: column;
    }

    .comparison-row {
        gap: 10px;
    }

    .comp-value {
        font-size: 12px;
        padding: 10px;
    }

    /* Tablet Search Styles */
    .picker-search input {
        padding: 14px 120px 14px 48px;
        font-size: 14px;
    }

    .search-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-suggestions {
        max-height: 300px;
    }

    .trending-searches {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .picker-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .picker-item-info h4 {
        font-size: 12px;
    }

    .picker-item-price {
        font-size: 12px;
    }

    /* Mobile Search Improvements */
    .picker-search input {
        padding: 14px 110px 14px 45px;
        font-size: 14px;
    }

    .voice-search-btn {
        right: 50px;
        width: 32px;
        height: 32px;
    }

    .search-shortcut {
        display: none;
    }

    .search-suggestions {
        left: -5px;
        right: -5px;
        border-radius: 16px;
        padding: 12px;
    }

    .suggestion-item {
        padding: 10px 12px;
    }

    .search-filters {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .filter-group select {
        padding: 10px 12px;
    }

    .trending-searches {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .trending-tag {
        padding: 6px 12px;
        font-size: 11px;
    }

    .search-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .results-count {
        font-size: 13px;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* SVG Gradient Definition */
.score-gradient-def {
    position: absolute;
    width: 0;
    height: 0;
}
