/* ============================================================================
   OrangeBonus extensions — light-theme card CI overrides + tier-block + copy
   Applies the OrangeBonus identity:
     - Card background: #f9f9f9 (light gray) with subtle border
     - Brand orange:    #f27022 (CTA, accents)
     - Brand green:     #69bc52 (badge pill)
     - Body text:       #000 with 60% opacity for secondary
     - Page dark:       warm dark brown #221a14 (complements orange hero)
   ============================================================================ */

/* ===== Smooth scroll for in-page anchors ================================ */
html { scroll-behavior: smooth; }

/* ===== Hero scroll-down arrow — bouncing + clickable ==================== */
.hero-decor-link {
    display: inline-block;
    align-self: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 12px;
    -webkit-tap-highlight-color: transparent;
}
.hero-decor-link .hero-decor {
    animation: ob-bounce 1.6s ease-in-out infinite;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
    display: block;
}
.hero-decor-link:hover .hero-decor { opacity: 0.85; }
.hero-decor-link:active .hero-decor { transform: translateY(2px); }

@keyframes ob-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-decor-link .hero-decor { animation: none; }
}

/* ===== Page / Footer background — warm dark (brand-aligned) ============== */
body {
    background-color: #221a14 !important;
}
section.footer {
    background: #1a130e !important;
}
.fotter-text { color: rgba(255, 255, 255, 0.7); }

/* Hero overlay fades the city image into the warm-dark body color (#221a14) */
/* RGB(34, 26, 20) = #221a14                                                  */
.hero-overlay {
    background: linear-gradient(
        0deg,
        #221a14 0%,
        rgba(34, 26, 20, 0.95) 12%,
        rgba(34, 26, 20, 0.82) 28%,
        rgba(34, 26, 20, 0.62) 46%,
        rgba(34, 26, 20, 0.40) 64%,
        rgba(34, 26, 20, 0.20) 82%,
        rgba(34, 26, 20, 0.00) 100%
    ) !important;
    height: 540px !important;
}

/* Add a soft top fade on the bonus-section to bleed into the hero bottom    */
section.bonus-section {
    position: relative;
}
section.bonus-section::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, #221a14 100%);
    pointer-events: none;
    z-index: 5;
}

/* ===== Card logo — fix cut-off (contain, not cover) ====================== */
.card-second .card-logo {
    width: 100% !important;
    max-width: 180px !important;
    height: 80px !important;
    object-fit: contain !important;
    background: #fff !important;
    border: 1px solid #0000001a !important;
    border-radius: 8px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* ===== Card CI overrides ================================================= */
/* Override Mauri's dark-card styles with light-theme OrangeBonus look       */

.card-second {
    background: #f9f9f9 !important;
    color: #000 !important;
    border: 1px solid #0000001a !important;
}
.card-second .card-title {
    color: #000 !important;
}
.card-second .feature-text,
.card-second .legal-info {
    color: #00000099 !important;
}

/* "Mehr Informationen" toggle — centered, hover, smooth chevron rotation */
.card-second .toggle-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    color: #00000099 !important;
    user-select: none;
}
.card-second .toggle-info:hover {
    background: rgba(242, 112, 34, 0.08);
    color: #f27022 !important;
}
.card-second .toggle-info-text {
    color: inherit !important;
    font-size: 14px !important;
    margin-top: 0 !important;
    font-weight: 500 !important;
}
.card-second .toggle-info-icon {
    display: inline-block;
    transition: transform 0.25s ease !important;
    color: inherit;
    flex-shrink: 0;
}
.card-second .bonus-pill {
    background: #69bc52 !important;
    color: #fff !important;
    padding: 6px 18px !important;
    border-radius: 12px !important;
}
.card-second .bonus-text {
    color: #fff !important;
}
.card-second .cta-button {
    background: #f27022 !important;
}
.card-second .cta-button-text {
    color: #fff !important;
}
.card-second .extended-block-title {
    color: #000 !important;
}
.card-second .extended-section {
    border-top: 1px solid #0000001a !important;
}
.card-second .extended-footer-icon,
.card-second .license-logo {
    filter: none;
}

/* ===== Tab switcher ====================================================== */
.brand-section { width: 100%; box-sizing: border-box; }

.ob-tabs {
    display: inline-flex;
    gap: 0;
    border: 1px solid #0000001a;
    border-radius: 12px;
    padding: 4px;
    background: #f9f9f9;
    margin-bottom: 24px;
}
.ob-tab {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #00000099;
    background: transparent;
    border: 0;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.ob-tab:hover { color: #000; }
.ob-tab.active { background: #f27022; color: #fff; }
.ob-tab-count { opacity: 0.7; font-weight: 400; margin-left: 4px; }

.brand-section[data-active="casino"] .card-second[data-kind="sport"] { display: none; }
.brand-section[data-active="sport"] .card-second[data-kind="casino"] { display: none; }

.brand-section .card-second { margin-bottom: 18px; }
.brand-section .card-second:last-child { margin-bottom: 0; }

/* ===== Tier block ======================================================== */
.ob-tier-block {
    background: #fff;
    border: 1px solid #f2702233;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.ob-tier-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 14px;
}
.ob-tier-title::before {
    content: "★";
    color: #f27022;
    font-size: 18px;
}

.ob-tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ob-tier-grid.single {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
}

.ob-tier {
    background: #fff8f3;
    border: 1px solid #f2702233;
    border-radius: 8px;
    padding: 14px 16px;
}
.ob-tier.recommended {
    background: #fff1e6;
    border-color: #f27022;
    position: relative;
}
.ob-tier.recommended::after {
    content: "EMPFOHLEN";
    position: absolute;
    top: -8px;
    right: 10px;
    background: #f27022;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ob-tier-range {
    font-size: 11px;
    color: #00000099;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.ob-tier-pct {
    font-size: 34px;
    font-weight: 800;
    color: #f27022;
    line-height: 1;
}
.ob-tier-meta {
    font-size: 12px;
    color: #00000099;
    margin-top: 8px;
}

.ob-tier-code {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1.5px dashed #f27022;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, border-style 0.15s;
    user-select: none;
    position: relative;
}
.ob-tier-code .lbl {
    color: #00000099;
    font-weight: 400;
    flex-shrink: 0;
}
.ob-tier-code .code-val {
    color: #000;
}
.ob-tier-code .copy-hint {
    margin-left: auto;
    font-size: 11px;
    color: #00000066;
    font-weight: 400;
    transition: color 0.15s;
}
.ob-tier-code:hover {
    background: #fff1e6;
    border-style: solid;
}
.ob-tier-code:hover .copy-hint { color: #f27022; }
.ob-tier-code.copied {
    background: #69bc52;
    border-color: #69bc52;
    border-style: solid;
    color: #fff;
}
.ob-tier-code.copied .lbl,
.ob-tier-code.copied .code-val,
.ob-tier-code.copied .copy-hint { color: #fff; }

.ob-tier-shared {
    margin-top: 14px;
    font-size: 12px;
    color: #00000099;
    border-top: 1px dashed #0000001a;
    padding-top: 10px;
}
.ob-tier-shared b { color: #000; font-weight: 600; }

/* ===== Info note (Sport "So funktioniert's") ============================= */
.ob-info-note {
    background: #fffaf3;
    border-left: 3px solid #f27022;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: #00000099;
    line-height: 1.5;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}
.ob-info-note strong { color: #000; }
.ob-info-note b { color: #f27022; }

/* ===== Floating Discord Toast ============================================ */
.ob-discord-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9998;
    width: 440px;
    max-width: calc(100vw - 24px);
    background: rgba(26, 19, 14, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(242, 112, 34, 0.45);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ob-discord-toast.visible {
    transform: translateX(-50%) translateY(0);
}

.ob-discord-toast-icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #5865f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ob-discord-toast-icon::after {
    content: "";
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 13px;
    height: 13px;
    background: #43b581;
    border: 2.5px solid #1a130e;
    border-radius: 50%;
}
.ob-discord-toast-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.ob-discord-toast-text {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.ob-discord-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.ob-discord-toast-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.ob-discord-toast-meta b { color: #fff; font-weight: 600; }
.ob-discord-toast-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 0 0 0 2.5px rgba(67, 181, 129, 0.25);
    display: inline-block;
    flex-shrink: 0;
}

.ob-discord-toast-cta {
    flex-shrink: 0;
    background: #f27022;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(242, 112, 34, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.ob-discord-toast-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(242, 112, 34, 0.5);
}
.ob-discord-toast-cta:active { transform: translateY(0); }

.ob-discord-toast-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.ob-discord-toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ===== Mobile ============================================================ */
@media (max-width: 768px) {
    .ob-tier-grid { grid-template-columns: 1fr; }
    .ob-tabs { width: 100%; }
    .ob-tab { flex: 1; padding: 10px 12px; font-size: 13px; }

    .ob-discord-toast {
        bottom: 12px;
        padding: 12px 14px;
        gap: 10px;
        border-radius: 12px;
    }
    .ob-discord-toast-icon { width: 40px; height: 40px; }
    .ob-discord-toast-cta { padding: 9px 14px; font-size: 12px; }
}
