/* Compare Page Specific Styles */
.compare-container {
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.compare-selector-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.selector-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.selector-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00A651;
    transform: translateY(-5px);
}

.selector-box.selected {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.15);
}

.select-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.select-placeholder i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.selected-product-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.selected-product-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.selected-product-preview .info {
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    flex: 1;
}

.selected-product-preview h4 {
    font-size: 14px;
    margin: 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-badge {
    background: #00A651;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 166, 81, 0.4);
    z-index: 2;
}

/* Comparison Detail Grid */
.comparison-grid {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s 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;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00A651;
    font-weight: 700;
    margin-bottom: -5px;
    margin-top: 10px;
}

.selected-product-preview.active-entry {
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.selected-product-preview .info {
    padding: 12px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.price-tag {
    font-size: 13px;
    color: #4ade80;
    font-weight: 700;
    margin-top: 4px;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Comparison Detail Grid Enhancement */
.comparison-grid {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.comparison-header-label {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.comparison-header-label i {
    color: #00A651;
    font-size: 14px;
}

.better-metric {
    background: rgba(0, 166, 81, 0.1);
    color: #00ff87 !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 8px !important;
    position: relative;
    border: 1px solid rgba(0, 166, 81, 0.2);
}

.win-check {
    font-size: 10px;
    margin-left: 5px;
    color: #00ff87;
    filter: drop-shadow(0 0 5px #00ff87);
}

.comp-value {
    text-align: center;
    color: white;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    font-size: 14px;
    word-break: break-all;
}

/* AI Advisor Box Enhancement */
.ai-advisor-box {
    position: relative;
    border-radius: 24px;
    padding: 3px;
    background: transparent;
    overflow: hidden;
    margin-top: 20px;
}

.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;
}

.ai-content {
    position: relative;
    z-index: 2;
    background: #0f172a;
    border-radius: 22px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-content h3 {
    color: #00ff87;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.3);
}

#aiVerdictText {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 14px;
    min-height: 60px;
}

@keyframes aiRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Picker Modal */
.picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    align-items: flex-end;
}

.picker-modal.active {
    display: flex;
}

.picker-content {
    margin-bottom: 80px;
    background: #0f172a;
    width: 100%;
    max-height: 85vh;
    border-radius: 35px 35px 0 0;
    padding: 30px 20px 80px;
    overflow-y: auto;
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 25px;
    border-radius: 50px;
    color: white;
    margin-bottom: 25px;
    outline: none;
    transition: 0.3s;
}

.picker-search input:focus {
    border-color: #00A651;
    background: rgba(255, 255, 255, 0.1);
}

.picker-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.picker-item {
    width: 200px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgb(65 62 62 / 54%);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.picker-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: #00A651;
}

.picker-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.picker-item-info {
    padding: 12px;
}

.picker-item-info h4 {
    font-size: 13px;
    margin-bottom: 4px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-item-info span {
    font-size: 12px;
    color: #4ade80;
    font-weight: 700;
}

.overall-winner {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
}

.best-to-buy-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.best-to-buy-badge i {
    font-size: 12px;
}

@keyframes badgePop {
    from {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

#aiVerdictText {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: pre-line;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.selector-box {
    position: relative;
    /* Other styles already exist */
}

/* Enhancing the comparison labels for 'Perfect' accuracy */
.comparison-header-label {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    width: fit-content;
    margin: 20px auto 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    color: #4ade80 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hidden {
    display: none !important;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}