/*
 * ibet216.net site overrides, loaded after the bundle's stylesheets from
 * resources/views/welcome.blade.php (cache-busted with nextjs.asset_version).
 *
 * The bundle is mbet24's, recoloured with arena216's palette. arena216's
 * primary buttons are dark text on green, but the mbet24 skin repaints a few
 * "primaryBtn" elements with a dark grey background (header balance on
 * phones, filter dropdowns). With the dark text inherited from primaryBtn the
 * balance became unreadable; give those elements white text.
 */
.headerBalanceBtnMobile,
.headerBalanceBtnMobile *,
button.headerBalanceBtn,
button.headerBalanceBtn *,
.headerDropdownBtn,
.headerDropdownBtn *,
.providerFilter button,
.sortFilter button {
    color: #fff !important;
}

/* Header logo: the skin sets 36px desktop / 30px mobile; operator wants it smaller (2026-10-11). */
/* The skin defines these on body{}, so match that and win with !important. */
body {
    --header-logo-height: 34px !important;
    --header-logo-mobile-height: 28px !important;
}

/*
 * Phone header, logged in: the bundle renders a Deposit link right after the
 * balance button but ships it with Tailwind's "hidden" class (desktop shows
 * its own Deposit button next to the balance). Show it, sized like the
 * balance button beside it.
 */
.headerLoggedInButnsMobileContainer .headerDepositBtnMobile {
    display: flex !important;
    font-size: var(--btn-mob-font-size);
    padding: var(--btn-mob-padding-y) var(--btn-mob-padding-x);
    line-height: var(--btn-mob-line-height);
    white-space: nowrap;
}

/* 2026-10-10: home category tiles as a 3x2 grid (2 columns on narrow phones).
   The bundle lays the six "thumbnails" tiles out as one row on large screens
   and a single column below that; the operator wants the grid. Phones reuse
   the desktop tiles (config/sliders.php secondarySliderMobile = null), whose
   inline width calc(100% / n) still fills a grid cell. */
.secondarySliderWrapper .homeSliderContainer {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 479px) {
    .secondarySliderWrapper .homeSliderContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}
.secondarySliderWrapper .homeSliderContainer .homeSliderItem {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}
/* Keep each tile's shape before its image loads (the bundle only sizes a tile
   once the image is in). Ratio = public/images/sliders/tiles/tile-d*.webp. */
.secondarySliderWrapper .homeSliderItem {
    aspect-ratio: 984 / 664;
    background: #1c1f1c;
}
/* A <button> with a fixed height centres its content; the title layer has no
   inset of its own, so pin it or it drops half a tile while the image loads. */
.secondarySliderWrapper .homeSliderItem .slideBodyItem {
    top: 0;
    left: 0;
}
/* Title sizes: the bundle picks them from "tiles per row on mobile" (= 1), too
   big for a 2-3 column grid. */
.secondarySliderWrapper .homeSliderTitle {
    font-size: clamp(0.8rem, 1.6vw, 1.5rem) !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* 2026-10-10: footer like rabet216.com. The bundle's second footer
   ("layout_2", switched on in the skin chunks by infra/ibet-rebrand.py) is
   rabet216's: accordion menu groups with chevrons (config/footer_menu.php),
   18+ badge + "play responsibly", terms text, provider logos. The fcbet216 skin
   never defined that footer's variables, so the rows rendered as bare white
   outlines, the chevron (fill = item colour) was invisible and the logo hidden.
   Values are rabet216's. */
body {
    --footer-logo-layout-two-display: none !important; /* operator: no logo in the footer (2026-10-10) */
    --footer-footer-menu-mobile-item-bg-color: #36363b !important;
    --footer-footer-menu-mobile-item-border-color: #36363b !important;
    --footer-footer-menu-mobile-item-color: #fff !important;
    --footer-footer-menu-mobile-item-padding-x: 12px !important;
    --footer-footer-menu-mobile-item-padding-y: 10px !important;
    --footer-footer-menu-mobile-item-radius: 8px !important;
    --footer-footer-menu-mobile-items-spacer: 8px !important;
    --footer-footer-menu-mobile-font-size: 12px !important;
    --footer-footer-menu-mobile-title-font-size: 14px !important;
    --footer-footer-menu-font-weight: 600 !important;
    --footer-footer-menu-mobile-spacer: 8px !important;
    --footer-mobile-padding-y: 16px !important;
    --footer-footer-menu-item-color: #fff9 !important;
    --footer-footer-menu-item-hover-color: var(--primary-color) !important;
    --footer-footer-menu-title-font-size: 18px !important;
    --footer-terms-color: #fff9 !important;
    --footer-icons-color: #fff !important;
}

/* Provider logos as rabet216's pill boxes (3 per row on phones, 8 on desktop,
   last row centred by the bundle): grey panel, thin border, original logo
   colours. The fcbet216 skin tinted every logo green. */
footer.footerContainer .footerProviders .footerProviderGrid {
    background-color: #222225 !important;
    border: 1px solid #313135;
    border-radius: 16px;
    padding: 8px 10px;
    min-height: 56px;
}
footer.footerContainer .footerProviders .footerProviderGrid img {
    filter: none !important;
}
@media (min-width: 768px) {
    footer.footerContainer .footerProviders .footerProviderGrid {
        padding: 12px 14px;
        min-height: 64px;
    }
}

/* Footer accordion group titles 14px (rabet216); the links keep the 12px
   variable set above, the bundle sizes both from the same variable. */
footer.footerContainer .footermenuItemTitle span {
    font-size: 14px !important;
}

/* 2026-10-11: the 18+ badge, "play responsibly" and the terms line go to the
   very bottom of the footer (after crypto payments and the copyright), as on
   fcbet216. The bundle nests that block next to the accordion menu; flatten
   that wrapper with display:contents and reorder the sections as flex items. */
footer.footerContainer > .max-w-footerMaxWidth {
    display: flex;
    flex-direction: column;
}
footer.footerContainer > .max-w-footerMaxWidth > div.flex.flex-col {
    display: contents;
}
footer.footerContainer > .max-w-footerMaxWidth > div.text-center.text-footerTermsColor {
    order: 5;   /* copyright */
}
footer.footerContainer .termsContainer {
    order: 10;  /* 18+ / play responsibly / terms text, last */
    flex-basis: auto !important;
    width: 100%;
    padding: 20px 0 8px;
    text-align: center;
}
footer.footerContainer .termsContainer .footerIconContainer {
    justify-content: center !important;
}
footer.footerContainer .termsContainer > div {
    text-align: center;
}
/* The flex reorder above left the "Crypto payments" heading hugging the left
   edge; keep the payments block and its title centred. */
footer.footerContainer .footerPayments {
    width: 100%;
    align-items: center;
}
footer.footerContainer .footerPayments h3 {
    width: 100%;
    text-align: center;
}
