/* Comparison Page Specific Styles */

/* Comparison Header */
.comparison-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 30px 0;
    background: linear-gradient(to bottom, #f0f7ff, #ffffff);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comparison-header h1 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 800;
    line-height: 1.3;
}

.comparison-header p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1em;
    color: #555;
}

/* Product Comparison Grid */
.product-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .product-comparison {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card:first-child {
    border-top: 5px solid #3498db;
}

.product-card:last-child {
    border-top: 5px solid #9b59b6;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 20px;
}

.product-info h2 {
    margin-bottom: 10px;
    font-size: 1.6em;
    color: #2c3e50;
}

.product-info .star-rating {
    color: #FF9900;
    font-size: 24px;
    margin: 10px 0;
}

.product-info .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    margin: 15px 0;
}

/* Comparison Table */
.comparison-table-container {
    margin: 40px 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background-color: #f5f7fa;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #eaeaea;
    color: #2c3e50;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .feature-name {
    font-weight: 600;
    color: #555;
    width: 25%;
}

.comparison-table .winner {
    background-color: #f0fff4;
    position: relative;
}

.comparison-table .winner::after {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Feature Comparison */
.feature-comparison {
    margin: 40px 0;
}

.feature-comparison h2 {
    color: #3498db;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    border-left: 5px solid #3498db;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
}

/* Verdict Section */
.verdict {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f0f7ff, #f9f9f9);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.verdict h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}

.verdict p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.comparison-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .comparison-cta {
        grid-template-columns: 1fr;
    }
}

.cta-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-5px);
}

.cta-box:first-child {
    border-top: 5px solid #3498db;
}

.cta-box:last-child {
    border-top: 5px solid #9b59b6;
}

.cta-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.cta-box p {
    color: #555;
    margin-bottom: 20px;
}
