/* Comparison Page Styles */

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 32px;
}

.comparison-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.comparison-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.product-selection {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.product-column {
    flex: 1;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.product-column h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.product-list {
    list-style: none;
    padding: 0;
}

.product-item {
    background: var(--background-color);
    margin-bottom: 12px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.product-label {
    display: block;
    padding: 16px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.product-label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.product-item input[type="radio"]:checked + label {
    background: var(--surface-color);
    border-left: 4px solid var(--primary-color);
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.compare-button-container {
    text-align: center;
    margin-top: 32px;
}

.btn-compare {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-weight: 500;
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-compare:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .product-selection {
        flex-direction: column;
    }

    .comparison-header h1 {
        font-size: 2rem;
    }
}

/* Result Page Styles */

.result-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.result-header {
    text-align: center;
    margin-bottom: 32px;
}

.result-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.result-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.products-comparison {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.product-result {
    flex: 1;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.product-result h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.eco-score {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.strengths h4, .weaknesses h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.strengths ul, .weaknesses ul {
    list-style: none;
    padding: 0;
}

.strengths li, .weaknesses li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.strengths li:before {
    content: "✓ ";
    color: var(--primary-color);
}

.weaknesses li:before {
    content: "✗ ";
    color: #dc3545;
}

.verdict {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.verdict h2 {
    color: var(--accent-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.verdict p {
    color: var(--text-primary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .products-comparison {
        flex-direction: column;
    }

    .result-header h1 {
        font-size: 2rem;
    }
}
