.comparison-table-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 1rem;
}

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

.comparison-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: .5rem;
}

.comparison-subtitle {
    font-size: 1.1rem;
    color: #666;
    position: relative;
    padding-bottom: 1rem;
}
.comparison-subtitle::after {
content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #ffb800 0%, rgba(255, 184, 0, 0) 100%);
}

.comparison-table-block .comparison-table {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    background: #f8f9fa;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.competitor-column {
    text-align: center;
    font-weight: 600;
    color: #333;
}

.table-body .table-row {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.table-body .table-row:last-child {
    border-bottom: none;
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
}

.feature-value {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-value svg {
    width: 20px;
    height: 20px;
}

.feature-value .checkmark-path {
    stroke: #28a745;
}

.feature-value .crossmark-path {
    stroke: #dc3545;
}

.best-badge {
    background: #ffd700;
    color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: -14px;
    right: 8px;
}

/* Editor Styles */
.feature-edit-card {
    margin-bottom: 1rem;
}

.feature-edit-card .components-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-feature-button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}


/* Tablet Styles */
@media (max-width: 992px) {
    .comparison-table-block {
        padding: 60px 1rem;
    }
    
    .comparison-title {
        font-size: 2.2rem;
    }
    
    .table-header,
    .table-body .table-row {
        grid-template-columns: 1.2fr repeat(4, 1fr);
    }
    
    .competitor-column,
    .feature-value {
        font-size: 0.9rem;
    }
    
    .feature-name {
        font-size: 0.9rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .comparison-table-block {
        padding: 60px 1rem;
    }
    
    .comparison-title {
        font-size: 2rem;
    }
    
    .comparison-subtitle {
        font-size: 1rem;
    }
    
    .comparison-table {
        border-radius: 8px;
        overflow-x: auto;
    }
    
    
    .table-header,
    .table-body .table-row {
        min-width: 680px; /* Ensure minimum width to prevent squishing */
    }
    
    .best-badge {
        font-size: 0.65rem;
        top: -12px;
        right: -8px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .comparison-table-block {
        padding: 48px 1rem;
    }
    
    .comparison-title {
        font-size: 2rem;
    }
    
    
    /* Stack table vertically for very small screens */
    .mobile-feature-card {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .mobile-feature-header {
        background: #f8f9fa;
        padding: 1rem;
        font-weight: 500;
    }
    
    .mobile-competitor-row {
        display: flex;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .mobile-competitor-row:last-child {
        border-bottom: none;
    }
    
    
    /* Show mobile layout */
    .mobile-table {
        display: block;
    }
}

