/**
 * Tenbit Technical Tabs Widget Styles
 * Author: Team Tenbit (https://tenbitsol.com)
 * Version: 1.0.0
 */

.tenbit-technical-tabs-wrapper {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
}

.tenbit-technical-tabs-wrapper *,
.tenbit-technical-tabs-wrapper *::before,
.tenbit-technical-tabs-wrapper *::after {
    box-sizing: border-box;
}

/* -------------------------------------------------------------
   TABS NAVIGATION BAR
------------------------------------------------------------- */
.tenbit-tabs-nav-bar {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid #232830;
    margin-bottom: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch;
    gap: 0;
}

.tenbit-tabs-nav-bar::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Edge */
}

.tenbit-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8e95a2;
    outline: none;
}

.tenbit-tab-btn:hover {
    color: #ffffff;
}

.tenbit-tab-btn.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

/* Numeric index e.g. 01, 02 */
.tenbit-tab-index {
    font-family: "Courier New", Courier, monospace, monospace;
    font-size: 13px;
    font-weight: 800;
    color: #ff5500;
    letter-spacing: 0.5px;
    transition: opacity 0.25s ease;
}

.tenbit-tab-btn:not(.is-active) .tenbit-tab-index {
    opacity: 0.85;
}

.tenbit-tab-title {
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 1.2px;
}

/* Underline indicator on active tab */
.tenbit-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff5500;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.tenbit-tab-btn.is-active::after {
    transform: scaleX(1);
}

/* -------------------------------------------------------------
   CONTENT CONTAINER & PANELS
------------------------------------------------------------- */
.tenbit-tabs-content-container {
    position: relative;
    background-color: #121518;
    border: 1px solid #232830;
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    min-height: 480px;
}

.tenbit-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tenbit-tab-panel.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 2-Column Split Grid */
.tenbit-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.tenbit-panel-grid.is-reversed {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.tenbit-panel-grid.is-reversed > * {
    direction: ltr;
}

/* Media Column */
.tenbit-panel-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0b0d0f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tenbit-panel-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.tenbit-panel-media:hover .tenbit-panel-image {
    transform: scale(1.02);
}

/* Details Column */
.tenbit-panel-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Eyebrow badge (e.g. LAYER 01 // NEXT-TO-SKIN) */
.tenbit-panel-eyebrow {
    display: inline-block;
    align-self: flex-start;
    background: #08090b;
    border: 1px solid #282e37;
    color: #e2e8f0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 3px;
    margin-bottom: 20px;
}

/* Headline */
.tenbit-panel-headline {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 18px 0;
    font-family: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Description paragraph */
.tenbit-panel-description {
    font-size: 15px;
    line-height: 1.65;
    color: #9da6b4;
    margin: 0 0 28px 0;
}

/* Features checklist (2 columns) */
.tenbit-panel-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin-bottom: 34px;
    padding: 0;
    list-style: none;
}

.tenbit-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #d1d5db;
    line-height: 1.4;
}

.tenbit-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff5500;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}

.tenbit-feature-text {
    flex: 1;
}

/* Action Button (e.g. SHOP BASE LAYERS ↗) */
.tenbit-panel-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    background-color: #ff5500;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(255, 85, 0, 0.3);
}

.tenbit-panel-cta-btn:hover {
    background-color: #e04a00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 85, 0, 0.45);
}

.tenbit-cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.tenbit-panel-cta-btn:hover .tenbit-cta-arrow {
    transform: translate(2px, -2px);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET & MOBILE)
------------------------------------------------------------- */
@media (max-width: 991px) {
    .tenbit-panel-grid,
    .tenbit-panel-grid.is-reversed {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }

    .tenbit-tabs-content-container {
        padding: 28px;
    }

    .tenbit-panel-headline {
        font-size: 30px;
    }

    .tenbit-panel-image {
        min-height: 320px;
        max-height: 400px;
    }
}

@media (max-width: 640px) {
    .tenbit-tab-btn {
        padding: 14px 18px;
        font-size: 13px;
        gap: 6px;
    }

    .tenbit-tab-index {
        font-size: 11px;
    }

    .tenbit-tabs-content-container {
        padding: 20px 18px;
    }

    .tenbit-panel-headline {
        font-size: 24px;
    }

    .tenbit-panel-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tenbit-panel-cta-btn {
        width: 100%;
        text-align: center;
    }
}
