/* ==========================================================================
   Game Stock Timeline — Minimal Styles
   Only the tabs, loading state, and pagination buttons are styled here.
   Product cards use your theme's native WooCommerce shop/loop styles.
   ========================================================================== */

.wcgst-timeline {
    margin: 0 auto;
    padding: 20px 0;
}

.wcgst-title {
    margin: 0 0 16px;
}

/* ===== Timeline Tabs ===== */
.wcgst-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}

.wcgst-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    border-radius: 4px;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.4;
    opacity: 0.6;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.wcgst-tab:hover {
    opacity: 0.85;
}

.wcgst-tab.active {
    opacity: 1;
    background: currentColor;
}

/* Invert text color when background is currentColor */
.wcgst-tab.active .wcgst-tab-label,
.wcgst-tab.active .wcgst-tab-count {
    filter: invert(1) grayscale(1) contrast(9);
}

.wcgst-tab-count {
    font-size: 0.85em;
    opacity: 0.7;
}

/* ===== Loading ===== */
.wcgst-loading {
    text-align: center;
    padding: 30px;
    opacity: 0.6;
}

/* Dim products during AJAX load */
.wcgst-products-wrap.wcgst-is-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ===== Pagination button resets ===== */
.wcgst-pagination button.wcgst-page-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 6px 14px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.wcgst-pagination button.wcgst-page-btn:hover {
    opacity: 1;
}

/* ===== Responsive tabs ===== */
@media (max-width: 600px) {
    .wcgst-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .wcgst-tabs::-webkit-scrollbar {
        display: none;
    }
    .wcgst-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
