/**
 * RenderCAD Compare Render Software SEO Pages
 * Uses CSS custom properties from main.css for consistency
 */

/* ========================================
   HERO TITLE - Compact 3-line format
   ======================================== */

.compare-title-main {
    display: block;
    line-height: 0.9;
}

.compare-title-vs {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5em;
    font-weight: 600;
    color: var(--color-error);
    letter-spacing: 0.2em;
    line-height: 1;
    margin: 0.15em 0;
}

/* VS accent in hero title - red color, not bold */
.compare-vs-accent {
    color: #ff3b30;
}

.compare-title-competitor {
    display: block;
    line-height: 0.9;
    text-decoration: none !important;
}

/* Override seo-software-name underline for compare pages */
.hero .seo-software-name {
    text-decoration: none;
}

/* ========================================
   SPECS SECTION - Dark/Inverted style
   ======================================== */

.compare-specs-section {
    background-color: var(--color-bg-tertiary);
    padding: var(--spacing-lg) 0;
}

.compare-specs-section .feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compare-specs-section .feature-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-xs);
}

.compare-specs-section .feature-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ========================================
   COMPARISON TABLE - Strong visibility
   ======================================== */

.compare-table-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-specs-table-wrapper {
    width: 100%;
    max-width: 480px;
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compare-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
}

/* Table Header - Large & Bold */
.compare-specs-table thead tr {
    background: var(--color-bg-secondary);
}

.compare-specs-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border-primary);
}

/* Table Rows - Alternating with strong contrast */
.compare-specs-table tbody tr:nth-child(odd) {
    background: var(--color-bg-primary);
}

.compare-specs-table tbody tr:nth-child(even) {
    background: var(--color-bg-secondary);
}

.compare-specs-table tbody tr {
    border-bottom: 1px solid var(--color-border-secondary);
}

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

.compare-specs-table td {
    padding: 0.875rem 1.25rem;
    font-size: 0.8125rem;
}

/* Column Styling */
.spec-label {
    font-weight: 700;
    color: var(--color-text-primary);
}

.spec-value {
    color: var(--color-text-primary);
}

.spec-value.spec-competitor {
    color: var(--color-text-tertiary);
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] .compare-specs-table-wrapper {
    background: var(--color-bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .compare-specs-table thead tr {
    background: var(--color-bg-tertiary);
}

[data-theme="dark"] .compare-specs-table tbody tr:nth-child(odd) {
    background: var(--color-bg-secondary);
}

[data-theme="dark"] .compare-specs-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* ========================================
   COMPARISON OVERVIEW & DETAILED SECTIONS
   ======================================== */

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

.compare-overview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.compare-overview-content .feature-title {
    margin-bottom: 1.5rem;
}

.compare-overview-body {
    text-align: left;
}

.compare-competitor-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.compare-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

.compare-detailed-section {
    padding: 3rem 0;
}

.compare-detailed-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.compare-detailed-content .feature-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.compare-detailed-body {
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .compare-specs-table th {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .compare-specs-table td {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
}
