/* Import base styles from homepage */
@import url('../homepage/styles.css');

/* Top Pillows Page Specific Styles */

/* Reviews Hero Section */
.reviews-hero {
    background: linear-gradient(135deg, #1e40af 0%, #6EC1E4 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    color: white;
}

.reviews-hero .hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.reviews-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.badge-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.quick-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-nav-link {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-nav-link:hover {
    background-color: white;
    color: #1e40af;
    transform: translateY(-2px);
}

/* Best Overall Section */
.best-overall {
    padding: 80px 0;
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #1e40af;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.best-overall-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 3px solid #6EC1E4;
}

.product-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem;
    align-items: start;
}

.product-image-large {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

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

.image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: 8px;
}

.rating-large {
    text-align: center;
}

.stars-large {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-score {
    font-size: 1.2rem;
    font-weight: 600;
}

.product-details-large h3 {
    color: #1e40af;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
}

.original-price {
    font-size: 1.2rem;
    color: #64748b;
    text-decoration: line-through;
}

.discount {
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.key-features {
    margin-bottom: 2rem;
}

.key-features h4 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin: 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #64748b;
}

.feature-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.editor-note {
    background-color: #e0f2fe;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6EC1E4;
    margin-bottom: 2rem;
}

.editor-note h4 {
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.editor-note p {
    color: #64748b;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.editor-signature {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.cta-button.secondary {
    background-color: transparent;
    color: #6EC1E4;
    border: 2px solid #6EC1E4;
}

.cta-button.secondary:hover {
    background-color: #6EC1E4;
    color: white;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    background-color: white;
}

.comparison-section h2 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 3rem;
}

.table-wrapper {
    overflow-x: auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.comparison-table th {
    background-color: #1e40af;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.featured-row {
    background-color: #f0f9ff;
    border-left: 4px solid #6EC1E4;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.product-cell img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-info strong {
    color: #1e40af;
    font-size: 0.9rem;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.badge:not(.budget):not(.premium):not(.cooling) {
    background-color: #ef4444;
    color: white;
}

.badge.budget {
    background-color: #10b981;
    color: white;
}

.badge.premium {
    background-color: #8b5cf6;
    color: white;
}

.badge.cooling {
    background-color: #06b6d4;
    color: white;
}

.price-cell {
    font-weight: 700;
    color: #1e40af;
    font-size: 1.1rem;
}

.excellent { color: #10b981; font-weight: 600; }
.good { color: #6EC1E4; font-weight: 600; }
.fair { color: #f59e0b; font-weight: 600; }

.rating-cell {
    text-align: center;
}

.rating-cell .stars {
    color: #fbbf24;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.rating-cell span {
    color: #64748b;
    font-size: 0.9rem;
}

.table-cta {
    background-color: #6EC1E4;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.table-cta:hover {
    background-color: #5ba8d1;
    transform: translateY(-1px);
}

/* Detailed Reviews */
.detailed-reviews {
    padding: 80px 0;
    background-color: #f8fafc;
}

.detailed-reviews h2 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 3rem;
}

.review-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    overflow: hidden;
}

.review-header {
    background-color: #1e40af;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.review-rank {
    background-color: #6EC1E4;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-title {
    flex-grow: 1;
}

.review-title h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.review-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.review-rating {
    text-align: center;
}

.review-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.review-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.specifications {
    margin-bottom: 2rem;
}

.specifications h4 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.spec-grid {
    display: grid;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.spec-label {
    color: #64748b;
    font-weight: 500;
}

.spec-value {
    color: #1e40af;
    font-weight: 600;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pros h4 {
    color: #10b981;
    margin-bottom: 1rem;
}

.cons h4 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.pros ul,
.cons ul {
    list-style: none;
    margin: 0;
}

.pros li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    color: #64748b;
}

.pros li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cons li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    color: #64748b;
}

.cons li::before {
    content: "✗";
    color: #ef4444;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.who-its-for {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.who-its-for h4 {
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.who-its-for p {
    color: #64748b;
    margin: 0;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e0f2fe;
    padding: 1.5rem;
    border-radius: 8px;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.price-info .original-price {
    color: #64748b;
    text-decoration: line-through;
}

.savings {
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Buying Guide CTA */
.buying-guide-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    text-align: center;
}

.buying-guide-cta h2 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.buying-guide-cta p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-section h2 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #6EC1E4;
}

.faq-item h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #1e40af 0%, #6EC1E4 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.final-cta .cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.final-cta .cta-button.secondary:hover {
    background-color: white;
    color: #1e40af;
}

.guarantee-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .review-content {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .price-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .reviews-hero h1 {
        font-size: 2rem;
    }
    
    .hero-badge {
        padding: 1rem;
    }
    
    .badge-number {
        font-size: 1.5rem;
    }
    
    .product-details-large h3 {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .review-card {
        margin-bottom: 2rem;
    }
    
    .review-header {
        padding: 1.5rem;
    }
    
    .review-content {
        padding: 1.5rem;
    }
}

