/**
 * List Components
 *
 * Pros/cons lists, spec tables, and other list styles
 *
 * @package MattressProtectorReviews
 * @version 1.0.0
 */

/* Pros & Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pros-cons-column h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.icon {
    width: 24px;
    height: 24px;
}

.pros-cons-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pros-cons-list li {
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: var(--gray-700);
}

.pros-cons-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.pros-list li::before {
    background-color: var(--green-600);
}

.cons-list li::before {
    background-color: var(--red-600);
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.specs-table th {
    font-weight: 600;
    color: var(--gray-900);
    background-color: var(--gray-100);
}

.specs-table td {
    color: var(--gray-700);
}

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

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}

.comparison-table th {
    font-weight: 600;
    color: var(--gray-900);
    background-color: var(--gray-100);
    position: sticky;
    top: 0;
}

.comparison-table td {
    color: var(--gray-700);
}

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

.comparison-current {
    background-color: #EFF6FF;
    font-weight: 600;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Testing Transparency List */
.testing-transparency {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--gray-300);
}

.testing-transparency h3 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.testing-steps {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.testing-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.testing-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.testing-steps li strong {
    color: var(--gray-900);
    display: block;
    margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
    }

    .testing-steps li {
        padding-left: 3rem;
    }

    .testing-steps li::before {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}
