/* Comparisons Page Styles */

.comparisons-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.page-header .lead {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Comparisons */
.featured-comparisons {
    margin-bottom: 60px;
}

.featured-comparisons h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 30px;
}

.comparison-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comparison-brands {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brand {
    flex: 1;
    text-align: center;
}

.brand img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    max-height: 180px;
}

.brand h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.vs {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0066cc;
    margin: 0 20px;
}

.comparison-summary {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.comparison-summary p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.comparison-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.comparison-btn:hover {
    background-color: #0052a3;
}

/* Comparison Table */
.comparison-table-section {
    margin: 60px 0;
}

.comparison-table-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
}

table.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table.comparison-table th,
table.comparison-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table.comparison-table th {
    background-color: #333;
    color: #fff;
    font-weight: bold;
}

table.comparison-table tr:hover {
    background-color: #f9f9f9;
}

/* Comparison Categories */
.comparison-categories {
    margin: 60px 0;
}

.comparison-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

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

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.category-card p {
    margin-bottom: 20px;
    color: #666;
}

.category-btn {
    background-color: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.category-btn:hover {
    background-color: #e68a00;
}

/* Comparison Methodology */
.comparison-methodology {
    margin: 60px 0;
    background-color: #f5f9ff;
    padding: 40px;
    border-radius: 8px;
}

.comparison-methodology h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #333;
}

.methodology-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.methodology-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .comparison-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .comparison-brands {
        flex-direction: column;
    }
    
    .brand {
        margin-bottom: 20px;
    }
    
    .vs {
        margin: 15px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
    
    .comparison-methodology {
        padding: 25px;
    }
}

/* ===== NEW STYLES FOR COMPARISONS PAGE IMPROVEMENTS ===== */

/* Buying Guide Section Styling */
.buying-guide-section {
    background: white;
    padding: 50px 0;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.buying-guide-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

.guide-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.guide-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.guide-intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.guide-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.factor-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.factor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.factor-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.factor-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.factor-card li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
    line-height: 1.5;
}

.factor-card li:last-child {
    border-bottom: none;
}

.factor-card strong {
    color: #3498db;
    font-weight: 600;
}

/* Enhanced Comparison Cards */
.comparison-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.comparison-brands {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.brand {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.brand img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.brand h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand h3 a:hover {
    color: #3498db;
}

.vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 10px;
}

.comparison-summary {
    text-align: center;
}

.comparison-summary p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn.comparison-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn.comparison-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    text-decoration: none;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .guide-factors {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .buying-guide-section h2 {
        font-size: 1.8rem;
    }
    
    .factor-card {
        padding: 20px;
    }
    
    .comparison-brands {
        flex-direction: column;
        text-align: center;
    }
    
    .vs {
        order: 2;
        margin: 10px 0;
    }
    
    .brand {
        min-width: auto;
    }
    
    .brand img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .buying-guide-section {
        padding: 30px 0;
    }
    
    .guide-content {
        padding: 0 15px;
    }
    
    .factor-card h3 {
        font-size: 1.1rem;
    }
    
    .comparison-card {
        padding: 20px;
    }
}

/* Comparison Page Specific Styling */
.comparison-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.comparison-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.comparison-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.comparison-hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Pet Hair Stats */
.pet-hair-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.pet-hair-stats .stat {
    text-align: center;
}

.pet-hair-stats .stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.pet-hair-stats .stat span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Quick Picks Section */
.quick-picks {
    margin-bottom: 50px;
}

.quick-picks h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pick-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pick-card.winner {
    border: 3px solid #f39c12;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.pick-card .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pick-card.winner .badge {
    background: #f39c12;
}

.pick-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pick-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.pick-card .rating {
    margin-bottom: 15px;
    font-size: 1rem;
}

.price-info {
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    text-decoration: line-through;
    color: #7f8c8d;
    margin-left: 10px;
}

/* Pet Challenges Section */
.pet-challenges {
    margin-bottom: 50px;
}

.pet-challenges h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.challenge-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.challenge-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.challenge-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Detailed Comparison Table */
.detailed-comparison {
    margin-bottom: 50px;
}

.detailed-comparison h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.comparison-table th {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table tr.top-performer {
    background: #e8f5e8;
}

.comparison-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
    vertical-align: middle;
}

.score {
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
}

.score.excellent {
    background: #27ae60;
}

.score.good {
    background: #f39c12;
}

.score.average {
    background: #e67e22;
}

/* Pet Type Recommendations */
.pet-type-recommendations {
    margin-bottom: 50px;
}

.pet-type-recommendations h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.pet-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.pet-type-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.pet-type-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.recommendation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recommendation img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recommendation strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.recommendation p {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* User Results Section */
.user-results {
    margin-bottom: 50px;
}

.user-results h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.result-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.pet-info h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.pet-info span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.before-after {
    margin: 20px 0;
}

.before, .after {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.before {
    background: #ffebee;
    border-left: 4px solid #e74c3c;
}

.after {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
}

.quote {
    font-style: italic;
    color: #7f8c8d;
    border-left: 3px solid #3498db;
    padding-left: 15px;
    margin-top: 15px;
}

/* Final Recommendations */
.final-recommendations {
    margin-bottom: 50px;
}

.final-recommendations h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.verdict-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.verdict-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.verdict-card.premium {
    border: 3px solid #f39c12;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.verdict-card.budget {
    border: 3px solid #27ae60;
    background: linear-gradient(135deg, #fff 0%, #f0fff4 100%);
}

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

.verdict-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 20px;
}

.pros-cons-mini {
    margin: 20px 0;
    text-align: left;
}

.pros-cons-mini .pros,
.pros-cons-mini .cons {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.pros-cons-mini .pros {
    color: #27ae60;
}

.pros-cons-mini .cons {
    color: #e74c3c;
}

/* Related Content */
.related-comparisons {
    margin-bottom: 50px;
}

.related-comparisons h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

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

.related-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .comparison-hero h1 {
        font-size: 2rem;
    }
    
    .comparison-hero .lead {
        font-size: 1rem;
    }
    
    .pet-hair-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .picks-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .pet-types {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .verdict-cards {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation {
        flex-direction: column;
        text-align: center;
    }
    
    .comparison-table-wrapper {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}
