/**
 * Comparison Page Styles
 * Matches neighborhood template styling
 */

/* ========================================
   HERO SECTION
   ======================================== */

.compare-hero {
    padding: 140px 0 80px;
}

.compare-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    padding: 16px 0;
    margin-bottom: 16px;
}

.compare-hero .breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.compare-hero .breadcrumb a:hover {
    color: var(--primary);
}

.compare-hero .breadcrumb svg {
    opacity: 0.5;
}

.compare-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.compare-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ========================================
   VERDICT BOX
   ======================================== */

.verdict-box {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.verdict-box h2 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: normal;
}

.verdict-icon {
    font-size: 1rem;
}

.verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 640px) {
    .verdict-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.verdict-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-style: normal;
    letter-spacing: -0.01em;
}

.verdict-detaild h3 {
    color: var(--primary, #A0CBFF);
}

.verdict-competitor h3 {
    color: #00BFA5;
}

.verdict-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.compare-section {
    padding: 4rem 0;
}

.compare-section-alt {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-style: normal;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: normal;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

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

.compare-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.compare-table th {
    padding: 1.125rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-style: normal;
}

.compare-table th:first-child {
    border-radius: 12px 0 0 0;
}

.compare-table th:last-child {
    border-radius: 0 12px 0 0;
}

.compare-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

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

.compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.compare-table .feature-name {
    font-weight: 500;
    color: var(--text-primary);
}

.compare-table .value-check {
    color: #10B981;
}

.compare-table .value-cross {
    color: #EF4444;
}

.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
    background: rgba(59, 130, 246, 0.03);
    border-left: 1px solid rgba(59, 130, 246, 0.1);
    border-right: 1px solid rgba(59, 130, 246, 0.1);
}

.compare-table .highlight-cell {
    background: rgba(59, 130, 246, 0.08);
}

/* Mobile table adjustments */
@media (max-width: 768px) {
    .compare-table-wrapper {
        overflow-x: visible;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        width: 35%;
    }

    .compare-table th:nth-child(2),
    .compare-table td:nth-child(2),
    .compare-table th:nth-child(3),
    .compare-table td:nth-child(3) {
        width: 32.5%;
    }

    .winner-badge {
        display: none;
    }
}

.compare-table .feature-name {
    font-weight: 500;
    color: var(--text-primary);
}

.compare-table .value-check {
    color: #10B981;
}

.compare-table .value-cross {
    color: #EF4444;
}

.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
    background: rgba(59, 130, 246, 0.03);
    border-left: 1px solid rgba(59, 130, 246, 0.1);
    border-right: 1px solid rgba(59, 130, 246, 0.1);
}

.compare-table .highlight-cell {
    background: rgba(59, 130, 246, 0.08);
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.75rem;
    vertical-align: middle;
}

/* ========================================
   PRICING COMPARISON
   ======================================== */

.pricing-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pricing-compare-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }

    .pricing-compare-card {
        flex: 0 0 85vw;
        min-width: 85vw;
        max-width: 320px;
        scroll-snap-align: start;
        padding: 1.5rem;
    }

    .pricing-compare-price {
        font-size: 2.25rem;
    }

    /* Hide scrollbar */
    .pricing-compare-grid::-webkit-scrollbar {
        display: none;
    }

    .pricing-compare-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.pricing-compare-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.pricing-compare-card.featured {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.pricing-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pricing-compare-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    font-style: normal;
}

.pricing-compare-badge {
    background: linear-gradient(135deg, #A0CBFF 0%, #7AB8FF 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-compare-price {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.pricing-compare-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-compare-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.pricing-compare-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
}

.pricing-compare-features li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.pricing-compare-features li::before {
    content: '✓';
    color: #10B981;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ========================================
   KEY DIFFERENCES
   ======================================== */

.differences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .differences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.difference-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.difference-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.difference-icon {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.difference-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-style: normal;
    letter-spacing: -0.01em;
}

.difference-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.compare-faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.375rem 0;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
    transition: color 0.2s ease;
}

.compare-faq-question:hover {
    color: var(--primary);
}

.compare-faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    padding-right: 1rem;
    margin: 0;
    font-style: normal;
}

.compare-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.compare-faq-item.active .compare-faq-icon {
    transform: rotate(180deg);
}

.compare-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.compare-faq-item.active .compare-faq-answer {
    max-height: 500px;
}

.compare-faq-answer p {
    padding-bottom: 1.375rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

.compare-cta {
    padding: 4rem 0;
}

.compare-cta-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.compare-cta h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
    font-style: normal;
    letter-spacing: -0.02em;
}

.compare-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
}

/* ========================================
   RELATED COMPARISONS
   ======================================== */

.compare-related {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
    display: block;
}

.related-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.related-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-style: normal;
}

.related-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.related-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .compare-hero {
        padding: 120px 0 60px;
    }

    .compare-hero h1 {
        font-size: 2rem;
    }

    .compare-hero-subtitle {
        font-size: 1rem;
    }

    .verdict-box {
        padding: 1.375rem 1.25rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .pricing-compare-price {
        font-size: 2.25rem;
    }

    .compare-cta-box {
        padding: 2rem 1.5rem;
    }

    .compare-cta h2 {
        font-size: 1.5rem;
    }
}