/*
 * Frontend CSS for Testing Equipments Single Page
 * 
 * Prefix: .te-
 * B2B Industrial Aesthetic, Clean and Stacked on mobile
 */

:root {
    --te-primary-blue: #004b87;
    --te-secondary-blue: #00335e;
    --te-accent-red: #cc0000;
    --te-background-light: #f8f9fa;
    --te-border-color: #dee2e6;
    --te-text-dark: #212529;
    --te-text-muted: #6c757d;
    --te-spacing-sm: 8px;
    --te-spacing-md: 16px;
    --te-spacing-lg: 32px;
    --te-border-radius: 4px;
}

/* Base Layout */
.te-single-equipment {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--te-spacing-lg) var(--te-spacing-md);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--te-text-dark);
    line-height: 1.6;
}

/* Breadcrumbs */
.te-breadcrumbs {
    font-size: 0.875rem;
    color: var(--te-text-muted);
    margin-bottom: var(--te-spacing-lg);
}

.te-breadcrumbs a {
    color: var(--te-primary-blue);
    text-decoration: none;
}

.te-breadcrumbs a:hover {
    text-decoration: underline;
}

.te-breadcrumbs-separator {
    margin: 0 var(--te-spacing-sm);
    color: var(--te-border-color);
}

/* Hero Section */
.te-hero-header {
    margin-bottom: var(--te-spacing-lg);
    border-bottom: 2px solid var(--te-primary-blue);
    padding-bottom: var(--te-spacing-md);
}

.te-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--te-primary-blue);
    margin: 0 0 var(--te-spacing-sm) 0;
    line-height: 1.2;
}

.te-model {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--te-text-muted);
    margin-top: var(--te-spacing-sm);
}

.te-hero-narrative {
    font-size: 1.125rem;
    color: var(--te-text-muted);
    max-width: 800px;
}

.te-highlights {
    display: flex;
    gap: var(--te-spacing-md);
    margin-top: var(--te-spacing-md);
}

.te-highlight-badge {
    background: var(--te-background-light);
    border: 1px solid var(--te-border-color);
    padding: var(--te-spacing-sm) var(--te-spacing-md);
    border-radius: var(--te-border-radius);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Main Grid Layout */
.te-equipment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--te-spacing-lg);
}

@media (min-width: 992px) {
    .te-equipment-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Content Sections */
.te-section {
    margin-bottom: var(--te-spacing-lg);
}

.te-section-title {
    font-size: 1.5rem;
    color: var(--te-secondary-blue);
    margin-bottom: var(--te-spacing-md);
    border-bottom: 1px solid var(--te-border-color);
    padding-bottom: var(--te-spacing-sm);
}

/* Specs Table */
.te-specs-table-wrapper {
    overflow-x: auto;
}

.te-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.te-specs-table th,
.te-specs-table td {
    padding: 12px 16px;
    border: 1px solid var(--te-border-color);
    text-align: left;
}

.te-specs-table th {
    background-color: var(--te-background-light);
    width: 40%;
    font-weight: 600;
    color: var(--te-secondary-blue);
}

.te-specs-table tr:nth-child(even) td {
    background-color: #fcfcfc;
}

/* Accordion (Expert Commentary) */
.te-accordion {
    border: 1px solid var(--te-border-color);
    border-radius: var(--te-border-radius);
}

.te-accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--te-background-light);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--te-primary-blue);
    font-size: 1rem;
    font-family: inherit;
}

.te-accordion-button:hover,
.te-accordion-button:focus {
    background: #e9ecef;
    outline: 2px solid var(--te-primary-blue);
    outline-offset: -2px;
}

.te-accordion-icon {
    transition: transform 0.2s ease;
}

.te-accordion-button[aria-expanded="true"] .te-accordion-icon {
    transform: rotate(180deg);
}

.te-accordion-content {
    padding: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: height 0.3s ease;
    background: #fff;
}

.te-accordion-content-inner {
    padding: 1rem;
    border-top: 1px solid var(--te-border-color);
}

.te-accordion-button[aria-expanded="true"]+.te-accordion-content {
    height: auto;
    visibility: visible;
}

/* Sidebar / Sticky Summary */
.te-sticky-sidebar {
    position: sticky;
    top: 32px;
}

.te-summary-box {
    background: #fff;
    border: 1px solid var(--te-border-color);
    border-radius: var(--te-border-radius);
    padding: var(--te-spacing-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--te-spacing-md);
}

.te-summary-box-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: var(--te-spacing-md);
    color: var(--te-secondary-blue);
}

.te-summary-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.te-summary-list li {
    margin-bottom: var(--te-spacing-sm);
}

.te-summary-list li:last-child {
    margin-bottom: 0;
}

/* Pro Tip Box */
.te-pro-tip {
    background-color: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: var(--te-spacing-lg);
    border-radius: 0 var(--te-border-radius) var(--te-border-radius) 0;
}

.te-pro-tip strong {
    color: #997404;
    display: block;
    margin-bottom: 0.25rem;
}

/* CTAs */
.te-cta-button {
    display: inline-block;
    background-color: var(--te-primary-blue);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--te-border-radius);
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.te-cta-button:hover,
.te-cta-button:focus {
    background-color: var(--te-secondary-blue);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.3);
}

.te-cta-button--outline {
    background-color: transparent;
    color: var(--te-primary-blue);
    border: 2px solid var(--te-primary-blue);
}

.te-cta-button--outline:hover,
.te-cta-button--outline:focus {
    background-color: var(--te-background-light);
    color: var(--te-secondary-blue);
}

/* ── Mobile responsiveness (single page) ─────────────────────────────── */
@media (max-width: 767px) {

    .te-single-equipment {
        padding: var(--te-spacing-md) var(--te-spacing-sm);
    }

    .te-title {
        font-size: 1.75rem;
    }

    .te-highlights {
        flex-direction: column;
    }

    .te-highlight-badge {
        width: 100%;
        box-sizing: border-box;
    }

    .te-specs-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Disable sticky on mobile so sidebar doesn't overlap content */
    .te-sticky-sidebar {
        position: static;
    }

    /* Single-column layout is already the default; just ensure no gap issues */
    .te-equipment-grid {
        gap: var(--te-spacing-md);
    }

    .te-accordion-button {
        padding: 1.25rem 1rem;
    }

    .te-cta-button {
        padding: 14px 20px;
        font-size: 1rem;
    }
}