/**
 * Technical Specifications Section Styles
 * Expandable specifications table with categories
 */

.detailed-specs-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.specs-expandable {
    position: relative;
}

.specs-unified-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.specs-unified-table.collapsed tbody tr:nth-child(n+6) {
    display: none;
}

.specs-unified-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-dark);
    border-bottom: 2px solid var(--secondary-color);
}

.specs-unified-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-color);
}

.specs-unified-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.specs-unified-table tbody tr:hover {
    background-color: var(--bg-light);
}

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

.specs-unified-table td {
    padding: 1rem;
}

.specs-unified-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 25%;
}

.specs-unified-table td:nth-child(2) {
    color: var(--secondary-color);
    font-weight: 600;
    width: 20%;
}

.specs-unified-table td:last-child {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    width: 55%;
}

.spec-category-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.spec-category-header td {
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--secondary-color);
}

.specs-expand-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.85rem 2.5rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.specs-expand-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.specs-expand-btn #expand-icon {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.specs-expand-btn.expanded #expand-icon {
    transform: rotate(180deg);
}

/* Responsive - Specifications */

@media (max-width: 768px) {
    .specs-table-wrapper.collapsed {
        max-height: 300px;
    }

    .specs-unified-table {
        font-size: 0.85rem;
    }

    .specs-unified-table th,
    .specs-unified-table td {
        padding: 0.75rem 0.5rem;
    }

    .specs-unified-table td:first-child {
        width: 30%;
    }

    .specs-unified-table td:nth-child(2) {
        width: 25%;
    }

    .specs-unified-table td:last-child {
        width: 45%;
        font-size: 0.8rem;
    }

    .specs-expand-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .specs-unified-table {
        font-size: 0.8rem;
    }

    .specs-unified-table th,
    .specs-unified-table td {
        padding: 0.5rem 0.4rem;
    }

    .specs-table-wrapper.collapsed {
        max-height: 250px;
    }
}
