/* Multi-Plattform-Erweiterung der Produktsuche
   Eingeführt 2026-05-07 — siehe docs/superpowers/specs/2026-05-07-multi-platform-product-search-design.md
   Tab-System für Gruppen-Einträge — siehe docs/superpowers/specs/2026-05-08-product-platform-tabs-design.md */

/* ============================================================ */
/* Tab-Leiste oben rechts — wird sowohl bei Einzel- als auch    */
/* Gruppen-Einträgen verwendet (Einzel = nur aktiver Tab).      */
/* ============================================================ */

.column_sbg .store_platform_tabs {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store_platform_tab {
    display: block;
    line-height: 0;
    padding: 5px 8px;
    border-radius: 4px;
    /* Plattform-spezifischer Default-Hintergrund kommt über data-platform unten */
    background: rgba(0, 0, 0, 0.35);
    opacity: 0.55;
    transition: opacity 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.store_platform_tab:hover {
    opacity: 0.9;
}

.store_platform_tab.is-active {
    opacity: 1;
    cursor: default;
}

/* ─── Plattform-Farben (dezent, transparent über dem Cover-Hintergrund) ─── */

/* Steam: dunkles Navy (#1b2838), Akzent in Steam-Hellblau (#66c0f4) */
.store_platform_tab[data-platform="steam"] {
    background: rgba(27, 40, 56, 0.5);
}
.store_platform_tab[data-platform="steam"]:hover {
    background: rgba(27, 40, 56, 0.7);
}
.store_platform_tab[data-platform="steam"].is-active {
    background: rgba(27, 40, 56, 0.85);
    box-shadow: inset 0 0 0 1px rgba(102, 192, 244, 0.45);
}

/* GOG: klassisches GOG-Violett (#86328a), Akzent in helleren Magenta-Ton */
.store_platform_tab[data-platform="gog"] {
    background: rgba(134, 50, 138, 0.5);
}
.store_platform_tab[data-platform="gog"]:hover {
    background: rgba(134, 50, 138, 0.7);
}
.store_platform_tab[data-platform="gog"].is-active {
    background: rgba(134, 50, 138, 0.85);
    box-shadow: inset 0 0 0 1px rgba(200, 120, 210, 0.45);
}

/* ============================================================ */
/* Logo-Bild — gleiche Klasse für Einzel und Tab                 */
/* steam.svg = 142×34 (Banner), gog.svg = 32×32 (quadratisch).   */
/* ============================================================ */

.store_platform_logo {
    height: 22px;
    width: auto;
    display: block;
}

/* ============================================================ */
/* Lade-/Fehlerzustände beim AJAX-Tab-Wechsel                    */
/* ============================================================ */

.column_wrapper.is-loading {
    position: relative;
    min-height: 200px;
}

.column_wrapper.is-loading::after {
    content: "Lade …";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.95rem;
    z-index: 10;
    border-radius: 4px;
}

.column_wrapper.is-tab-error::after {
    content: "Variante konnte nicht geladen werden.";
    background: rgba(120, 0, 0, 0.65);
}
