/* Versus Comparison Table Block - Difbetween Theme */
.versus-comparison-table {
    background: var(--difbetween-card-bg, #ffffff);
    border: 1px solid var(--difbetween-border-light, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    color: var(--difbetween-text-dark, #1f2937);
    box-shadow: var(--difbetween-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    position: relative;
    overflow: hidden;
}

.versus-comparison-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--difbetween-gradient, linear-gradient(135deg, #2563eb 0%, #3b82f6 100%));
}

.versus-comparison-table::after {
    content: '📊';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    opacity: 0.6;
    color: var(--difbetween-primary, #2563eb);
}

.versus-comparison-table h3 {
    color: var(--difbetween-text-dark, #1f2937);
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
    font-family: var(--difbetween-heading-font, 'Poppins', sans-serif);
    text-align: center;
    position: relative;
}

.versus-comparison-table .comparison-table-content {
    line-height: 1.6;
    color: var(--difbetween-text-light, #6b7280);
}

/* Enhanced Table Styles */
.versus-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--difbetween-light-bg, #f8fafc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--difbetween-shadow, 0 3px 10px rgba(0,0,0,0.1));
    border: 1px solid var(--difbetween-border-light, #e5e7eb);
}

.versus-comparison-table th {
    background: var(--difbetween-primary, #2563eb);
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-family: var(--difbetween-heading-font, 'Poppins', sans-serif);
    border: none;
}

.versus-comparison-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--difbetween-border-light, #e5e7eb);
    color: var(--difbetween-text-dark, #1f2937);
    font-size: 0.95em;
    line-height: 1.5;
}

.versus-comparison-table tr:nth-child(even) {
    background: var(--difbetween-card-bg, #ffffff);
}

.versus-comparison-table tr:hover {
    background: var(--difbetween-light-gray, #e5e7eb);
    transition: background-color 0.2s ease;
}

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

/* Feature Row Styling */
.versus-comparison-table .feature-row {
    background: var(--difbetween-light-bg, #f8fafc);
    font-weight: 600;
    color: var(--difbetween-text-dark, #1f2937);
}

.versus-comparison-table .feature-row td {
    padding: 18px 16px;
    font-size: 1em;
}

/* Winner Highlight */
.versus-comparison-table .winner {
    background: rgba(16, 185, 129, 0.1) !important;
    border-left: 3px solid var(--difbetween-accent, #10b981);
}

.versus-comparison-table .winner td {
    font-weight: 600;
    color: var(--difbetween-accent, #10b981);
}

/* Editor Styles */
.versus-comparison-table-editor {
    background: var(--difbetween-card-bg, #ffffff);
    border: 1px solid var(--difbetween-border-light, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    color: var(--difbetween-text-dark, #1f2937);
    box-shadow: var(--difbetween-shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.versus-comparison-table-editor h3 {
    color: var(--difbetween-text-dark, #1f2937);
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
    font-family: var(--difbetween-heading-font, 'Poppins', sans-serif);
}

.versus-comparison-table-editor .editor-placeholder {
    background: var(--difbetween-light-bg, #f8fafc);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 2px dashed var(--difbetween-border-light, #e5e7eb);
}

.versus-comparison-table-editor .comparison-table-preview {
    margin-bottom: 20px;
}

.versus-comparison-table-editor .comparison-table-preview table {
    width: 100%;
    border-collapse: collapse;
    background: var(--difbetween-light-bg, #f8fafc);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--difbetween-border-light, #e5e7eb);
}

.versus-comparison-table-editor .comparison-table-preview th,
.versus-comparison-table-editor .comparison-table-preview td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--difbetween-border-light, #e5e7eb);
    color: var(--difbetween-text-dark, #1f2937);
}

.versus-comparison-table-editor .comparison-table-preview th {
    background: var(--difbetween-primary, #2563eb);
    color: white;
    font-weight: 600;
}

.versus-comparison-table-editor .editor-placeholder p {
    margin: 0;
    font-style: italic;
    opacity: 0.8;
    color: var(--difbetween-text-light, #6b7280);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .versus-comparison-table,
    .versus-comparison-table-editor {
        padding: 20px;
    }
    
    .versus-comparison-table h3,
    .versus-comparison-table-editor h3 {
        font-size: 1.6em;
    }
    
    .versus-comparison-table table,
    .versus-comparison-table-editor .comparison-table-preview table {
        font-size: 0.9em;
    }
    
    .versus-comparison-table th,
    .versus-comparison-table td,
    .versus-comparison-table-editor .comparison-table-preview th,
    .versus-comparison-table-editor .comparison-table-preview td {
        padding: 10px 8px;
    }
    
    .versus-comparison-table .mobile-hide,
    .versus-comparison-table-editor .mobile-hide {
        display: none;
    }
} 