/**
 * Technical Specifications Section Styles
 * Expandable specifications table with categories and FAQ tabs
 */

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

/* Tab Navigation */
.specs-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.specs-tab {
    flex: 1;
    padding: 1rem 2rem;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -2px;
}

.specs-tab:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.specs-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: white;
}

/* Tab Content */
.specs-tab-content {
    display: none;
}

.specs-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Accordion Items */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question-text {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem 1.5rem 1.25rem;
}

.faq-answer-text {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

.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 and FAQ */

@media (max-width: 768px) {
    .specs-tabs {
        flex-direction: row;
    }

    .specs-tab {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .faq-category-title {
        font-size: 1.1rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-text {
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 0.85rem 1.25rem 1rem;
    }

    .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-tab {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    .faq-category-title {
        font-size: 1rem;
    }

    .faq-question {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .faq-icon {
        font-size: 1.1rem;
    }

    .faq-answer-text {
        font-size: 0.85rem;
    }

    .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;
    }
}
