/* Analyzer Specific Styles */
:root {
    --primary: #2563eb;
    --secondary: #ea580c;
    --bg-card: #ffffff;
}

body {
    background-color: #f8fafc;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.highlight-good {
    color: #059669;
    /* Green */
    font-weight: bold;
}

.highlight-bad {
    color: #dc2626;
    /* Red */
}

.diff-badge {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.diff-badge.good {
    background-color: #d1fae5;
    color: #065f46;
}

.diff-badge.bad {
    background-color: #fee2e2;
    color: #991b1b;
}

.product-list-item-row {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-list-item-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: var(--primary) !important;
}

.compact-select {
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .product-list-item-row {
        grid-template-columns: 80px 1fr !important;
        gap: 1rem !important;
    }

    .product-list-item-row>div:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
}

.amazon-btn {
    transition: background-color 0.2s;
}

.amazon-btn:hover {
    background-color: #d97706 !important;
}

/* Rankings */
.rankings {
    margin-top: 1rem;
    padding-top: 0;
    border-top: 1px dashed var(--border);
}

.ranking-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s;
    cursor: pointer;
}

.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #f59e0b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    border: 2px solid white;
}

.rank-1 {
    background: #f59e0b;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    top: -14px;
}

.rank-2 {
    background: #94a3b8;
}

.rank-3 {
    background: #b45309;
}

/* Recommendation Badges */
.recommend-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ef4444;
    /* Default accent */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    z-index: 10;
}

/* Share Button */
.share-section {
    grid-column: 1 / -1;
    text-align: right;
    margin-bottom: 1rem;
}

.share-btn {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
}