/**
 * Comparison Table Block Styles
 * Prefix: rptx- (Reportgenix Tools)
 */

/* Comparison Section */
.rptx-comparison {
    background: var(--rptx-bg-color, #ffffff);
    /* CSS Variables for spacing */
    --rptx-padding-top: 80px;
    --rptx-padding-bottom: 80px;
    --rptx-padding-top-tablet: 60px;
    --rptx-padding-bottom-tablet: 60px;
    --rptx-padding-top-mobile: 40px;
    --rptx-padding-bottom-mobile: 40px;
    /* Apply spacing */
    padding: var(--rptx-padding-top) 0 var(--rptx-padding-bottom);
}

/* Header */
.rptx-comparison__header {
    text-align: center;
    margin-bottom: 48px;
}

.rptx-comparison__header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.rptx-comparison__header p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    color: #4b5563;
}

/* Table Container */
.rptx-comparison__table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* Table */
.rptx-comparison__table table {
    width: 100%;
    border-collapse: collapse;
}

.rptx-comparison__table th,
.rptx-comparison__table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

/* Table Header */
.rptx-comparison__table th {
    background: var(--rptx-header-bg-color, #6b5af7);
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-transform: capitalize;
}

/* Table Body */
.rptx-comparison__table td {
    font-size: 15px;
    color: #4b5563;
}

.rptx-comparison__table td:first-child {
    font-weight: 600;
    color: #1a1a1a;
}

.rptx-comparison__table tr:last-child td {
    border-bottom: none;
}

.rptx-comparison__table tbody tr:hover td {
    background: #f9fafb;
    transition: background-color 0.2s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rptx-comparison {
        padding: var(--rptx-padding-top-tablet) 0 var(--rptx-padding-bottom-tablet);
    }

    .rptx-comparison__header {
        margin-bottom: 36px;
    }

    .rptx-comparison__header h2 {
        font-size: 1.5rem;
    }

    .rptx-comparison__header p {
        font-size: 1rem;
    }

    .rptx-comparison__table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rptx-comparison__table table {
        min-width: 600px;
    }

    .rptx-comparison__table th,
    .rptx-comparison__table td {
        padding: 16px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .rptx-comparison {
        padding: var(--rptx-padding-top-mobile) 0 var(--rptx-padding-bottom-mobile);
    }

    .rptx-comparison__header {
        margin-bottom: 28px;
    }

    .rptx-comparison__header h2 {
        font-size: 1.375rem;
        margin-bottom: 12px;
    }

    .rptx-comparison__header p {
        font-size: 0.9375rem;
    }

    .rptx-comparison__table table {
        min-width: 500px;
    }

    .rptx-comparison__table th,
    .rptx-comparison__table td {
        padding: 14px 16px;
        font-size: 13px;
    }

    .rptx-comparison__table th {
        font-size: 14px;
    }
}
