/* ==================== COMPARISON PAGE STYLES ==================== */

/* Page Layout */
.compare-page {
    min-height: 100vh;
}

.compare-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HERO SECTION ==================== */
.compare-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.compare-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--color-accent-glow) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.compare-hero .section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.compare-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.compare-hero h1 .accent {
    color: var(--color-accent-light);
}

.compare-hero .hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== COMPARISON TABLE SECTION ==================== */
.compare-table-section {
    padding: 60px 0 100px;
}

.compare-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

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

/* Table Header */
.compare-table thead {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table th {
    padding: 24px 20px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.compare-table th:not(:first-child) {
    text-align: center;
    width: 32.5%;
}

/* Brand Headers */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
}

.brand-name.alera {
    color: var(--color-accent-light);
}

.brand-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table Body */
.compare-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

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

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

.compare-table td {
    padding: 20px;
    font-size: 15px;
    color: var(--color-text-secondary);
    vertical-align: middle;
}

.compare-table td:first-child {
    font-weight: 500;
    color: var(--color-text);
}

.compare-table td:not(:first-child) {
    text-align: center;
}

/* Feature Name with Description */
.feature-name {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.feature-desc {
    display: block;
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* Cell Values */
.cell-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cell-value .value-main {
    font-weight: 600;
    color: var(--color-text);
}

.cell-value .value-sub {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.cell-value.highlight .value-main {
    color: var(--color-accent-light);
}

.cell-value.negative .value-main {
    color: #c9302c;
}

/* Check and X Icons */
.cell-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: 50%;
}

.cell-check svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
}

.cell-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cell-x svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-text-tertiary);
    stroke-width: 2.5;
}

/* Text cells */
.cell-text {
    font-size: 14px;
    line-height: 1.5;
}

.cell-text.warning {
    color: #f59e0b;
}

.cell-text.negative {
    color: var(--color-text-tertiary);
}

/* Highlight row */
.compare-table tbody tr.highlight-row {
    background: rgba(80, 38, 127, 0.1);
}

.compare-table tbody tr.highlight-row:hover {
    background: rgba(80, 38, 127, 0.15);
}

/* ==================== KEY DIFFERENTIATORS SECTION ==================== */
.differentiators-section {
    padding: 60px 0;
    background: var(--color-bg-elevated);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.differentiators-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(80, 38, 127, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.differentiators-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.differentiators-header .section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.differentiators-header h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 600;
}

.differentiators-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.differentiator-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    position: relative;
}

.differentiator-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Checkmark */
.differentiator-check {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.differentiator-check svg {
    width: 12px;
    height: 12px;
    color: white;
}

.differentiator-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(80, 38, 127, 0.3) 0%, rgba(80, 38, 127, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--color-accent-light);
    flex-shrink: 0;
}

.differentiator-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent-light);
}

.differentiator-info {
    flex: 1;
    min-width: 0;
}

.differentiator-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1px;
    color: var(--color-text);
    display: block;
}

.differentiator-desc {
    font-size: 12px;
    color: var(--color-text-tertiary);
    display: block;
    line-height: 1.4;
}

/* ==================== CTA SECTION ==================== */
.compare-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

.compare-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
}

.compare-cta .cta-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.compare-cta .btn-primary {
    font-size: 16px;
    padding: 18px 40px;
}

/* ==================== FOOTER ==================== */
.compare-footer {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-footer p {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.compare-footer .footer-links {
    display: flex;
    gap: 24px;
}

.compare-footer .footer-links a {
    font-size: 13px;
    color: var(--color-text-tertiary);
    transition: color 0.2s ease;
}

.compare-footer .footer-links a:hover {
    color: var(--color-text-secondary);
}

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

    .compare-table-section {
        padding: 40px 0 80px;
    }

    .compare-container {
        padding: 0 16px;
    }

    /* Mobile table - stack columns */
    .compare-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .compare-table {
        min-width: 600px;
    }

    .compare-table th {
        padding: 16px 12px;
        font-size: 12px;
    }

    .compare-table td {
        padding: 16px 12px;
        font-size: 13px;
    }

    .brand-name {
        font-size: 16px;
    }

    .differentiators-section {
        padding: 60px 0;
    }

    .compare-cta {
        padding: 80px 0;
    }

    .compare-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 24px 16px;
    }
}

/* ==================== TABLET STYLES ==================== */
@media (min-width: 640px) {
    .differentiators-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .differentiator-item {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 0;
    }

    .differentiator-check {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
    }

    .differentiator-check svg {
        width: 14px;
        height: 14px;
    }

    .differentiator-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .differentiator-icon svg {
        width: 26px;
        height: 26px;
    }

    .differentiator-info {
        text-align: center;
    }

    .differentiator-name {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .differentiator-desc {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .compare-container {
        padding: 0 48px;
    }

    .differentiators-section {
        padding: 80px 0;
    }

    .differentiators-glow {
        width: 800px;
        height: 500px;
    }

    .differentiators-header {
        margin-bottom: 48px;
    }

    .differentiator-item {
        padding: 28px 20px;
    }

    .differentiator-check {
        top: 14px;
        right: 14px;
    }

    .differentiator-icon {
        width: 56px;
        height: 56px;
    }

    .differentiator-icon svg {
        width: 28px;
        height: 28px;
    }

    .compare-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 32px 48px;
    }
}

/* ==================== LARGE DESKTOP ==================== */
@media (min-width: 1024px) {
    .compare-container {
        padding: 0 64px;
    }
}
