/**
 * Key Differences Block - Frontend Styles
 *
 * @package Tascom
 */

/* Section */
.tasp-comp-section {
    padding: 80px 0;
}

.tasp-comp-section-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.tasp-comp-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tasp-comp-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--tasp-comp-primary-light);
    color: var(--tasp-comp-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--tasp-comp-radius-full);
    margin-bottom: 20px;
}

.tasp-comp-section-title {
    font-family: var(--body-font1);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.tasp-comp-gradient {
    color: #1e293b;
}

.tasp-comp-section-desc {
    font-size: 17px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Highlight Cards */
.tasp-comp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.tasp-comp-highlight-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tasp-comp-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

.tasp-comp-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.tasp-comp-highlight-card.full {
    grid-column: span 2;
}

.tasp-comp-highlight-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, #10b981, #059669);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.tasp-comp-highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.tasp-comp-highlight-icon.blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.tasp-comp-highlight-icon.green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.tasp-comp-highlight-icon.purple {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.tasp-comp-highlight-icon.orange {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.tasp-comp-highlight-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.tasp-comp-highlight-card > p {
    color: #64748b;
    margin: 0 0 24px 0;
}

.tasp-comp-highlight-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.tasp-comp-compare-col {
    padding: 20px;
    border-radius: 16px;
}

.tasp-comp-compare-col.winner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #3b82f6;
}

.tasp-comp-compare-col.loser {
    background: #f8fafc;
}

.tasp-comp-compare-col h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tasp-comp-compare-col.winner h5 {
    color: #3b82f6;
}

.tasp-comp-compare-col.loser h5 {
    color: #94a3b8;
}

.tasp-comp-compare-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tasp-comp-compare-col li {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tasp-comp-compare-col.winner li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.tasp-comp-compare-col.loser li::before {
    content: '✗';
    color: #ef4444;
    font-weight: bold;
}

.tasp-comp-highlight-img {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

.tasp-comp-highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1024px) {
    .tasp-comp-highlights-grid {
        gap: 20px;
    }

    .tasp-comp-highlight-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .tasp-comp-section {
        padding: 60px 0;
    }

    .tasp-comp-section-header {
        margin-bottom: 40px;
    }

    .tasp-comp-highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tasp-comp-highlight-card.full {
        grid-column: span 1;
    }

    .tasp-comp-highlight-card {
        padding: 24px;
    }

    .tasp-comp-highlight-compare {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
