/* Container */
.comparison-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header */
.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-header h1 {
    font-size: 2.5em;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.update-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Filter Section */
.filter-section {
    margin-bottom: 30px;
    text-align: center;
}

.filter-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Table Styles */
.crm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    min-width: 1200px;
}

.crm-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #f8f9fa;
    z-index: 11;
    font-weight: 600;
    border-right: 2px solid #e0e0e0;
}

.crm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.crm-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.crm-header h4 {
    margin: 0;
    font-size: 1.1em;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-winner { background: #FFD700; color: #000; }
.badge-enterprise { background: #4169E1; color: white; }
.badge-visual { background: #FF6B9D; color: white; }
.badge-budget { background: #20C997; color: white; }
.badge-outbound { background: #F97316; color: white; }

/* Table Body */
.crm-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.crm-table tbody td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}

.category-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-header {
    padding: 15px !important;
    text-align: left !important;
}

.category-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.2em;
}

.criteria {
    text-align: left !important;
    padding-left: 20px !important;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    width: 16px;
    height: 16px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 0.75em;
    line-height: 16px;
    text-align: center;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Score Highlights */
.score-excellent { background: #d4edda; font-weight: 700; }
.score-good { background: #d1ecf1; }
.score-warning { background: #fff3cd; }
.score-bad { background: #f8d7da; }

.highlight-green { background: #d4edda; font-weight: 600; }
.highlight-red { background: #f8d7da; }

.price-detail {
    font-size: 0.85em;
    color: #666;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Verdict Row */
.verdict-row td {
    padding: 20px !important;
}

.verdict-box {
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
}

.verdict-winner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 700;
    border-color: #FFD700;
}

.verdict-avoid {
    background: #f8d7da;
    border-color: #dc3545;
}

/* Decision Helper */
.decision-helper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.decision-helper h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.decision-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.decision-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
}

.decision-card p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

/* Methodology Note */
.methodology-note {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.6;
}

.methodology-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.methodology-link:hover {
    text-decoration: underline;
}

/* Action Row */
.action-row {
    background: #f0f4ff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-header h1 {
        font-size: 1.8em;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .decision-grid {
        grid-template-columns: 1fr;
    }
    
    .table-wrapper {
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
    }
}
