/*
Theme Name: Spinfyre Casino
Theme URI: https://example.com/
Author: JustSEO
Author URI: https://example.com/
Description: Spinfyre Casino WordPress theme (unique variant) with casino UX components.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spinfyre-casino
Tags: one-column, custom-menu, featured-images, accessibility-ready, responsive-layout
*/

:root{
  --spfy-bg:#081018;
  --spfy-bg2:#0e1f2b;
  --spfy-text:#f2fbff;
  --spfy-login:#ff6b00;
  --spfy-signup:#ffd400;
  --spfy-font-scale:1.0;
  --spfy-muted:#b4c3d1;
  --spfy-card:#0b1620;
  --spfy-border:rgba(255,255,255,.12);
  --spfy-radius:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:linear-gradient(180deg,var(--spfy-bg), #05080c 60%, #05080c);
  color:var(--spfy-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: calc(16px * var(--spfy-font-scale));
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

.spfy-wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.spfy-site-header{
  position:sticky;top:0;z-index:999;
  background:linear-gradient(180deg, rgba(2,24,39,.92), rgba(2,24,39,.78));
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--spfy-border);
}
.spfy-topbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:10px 0;
}
.spfy-brand{
  display:flex;align-items:center;gap:10px;min-width:0;
}
.spfy-brand-mark{
  width:34px;height:34px;border-radius:10px;
  background:linear-gradient(135deg,#2aa8ff,#5d7bff);
  box-shadow: 0 10px 30px rgba(42,168,255,.18);
}
.spfy-brand-name{
  font-weight:700;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.spfy-authbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.spfy-authbar button{
  border:0;cursor:pointer;font-weight:700;
  padding:10px 18px;border-radius:16px;
  min-width:108px;
  transition: transform .08s ease, filter .15s ease;
}
.spfy-authbar button:active{transform:scale(.98)}
/* Style by role so class names can be fully customized */
.spfy-authbar button[data-spfy-role="login"]{
  background: var(--spfy-login);
  color:#031b2a;
}
.spfy-authbar button[data-spfy-role="signup"]{
  background: var(--spfy-signup);
  color:#031b2a;
}


.spfy-primary-nav{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-width:0;
}

.spfy-menu-toggle{
  display:none;
  border:1px solid var(--spfy-border);
  background:transparent;
  color:var(--spfy-text);
  border-radius:14px;
  padding:8px 12px;
  cursor:pointer;
}

.spfy-primary-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}

.spfy-primary-menu a{
  display:inline-block;
  padding:8px 10px;
  border-radius:12px;
  color:var(--spfy-text);
}
.spfy-primary-menu a:hover{
  background:rgba(255,255,255,.06);
  text-decoration:none;
}

/* Logo sizing: keep requested attributes for performance, scale visually */
.spfy-logo img.custom-logo{
  height:auto;
  max-height:46px;
  width:auto;
  display:block;
}

.spfy-main{padding:22px 0 38px}
.spfy-card{
  background: linear-gradient(180deg, rgba(6,34,53,.9), rgba(4,26,41,.92));
  border:1px solid var(--spfy-border);
  border-radius:22px;
  padding:16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.spfy-content img{max-width:100%;height:auto;border-radius:16px}

.spfy-footer{
  border-top:1px solid var(--spfy-border);
  padding:26px 0 34px;
  color:var(--spfy-muted);
}
.spfy-footer a{color:var(--spfy-muted)}
.spfy-footer .spfy-footer-row{
  display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between;
}
.spfy-footer-menu a{padding:6px 8px;border-radius:10px}
.spfy-footer-menu a:hover{background:rgba(255,255,255,.06);text-decoration:none}









/* Gutenberg table wrapper support */
.spfy-content .wp-block-table{margin:16px 0 22px;}
.spfy-content .wp-block-table table{width:100%;}

/* ===== Footer widgets ===== */
.spfy-footer-widgets{
  margin: 0 0 18px;
}
.spfy-footer-widgets-grid{
  display:flex;
  flex-direction: column; /* keep current mobile stack */
  gap: 16px;
}
@media (min-width: 821px){
  .spfy-footer-widgets-grid{
    flex-direction: row; /* row on desktop */
    align-items:flex-start;
    gap: 22px;
  }
}
.spfy-footer-widget-col{
  flex: 1 1 0;
  min-width: 0;
}

/* Default WP widget styling in footer */
.spfy-footer .widget{
  margin:0;
  padding: 14px 16px;
  border:1px solid var(--spfy-border);
  background: rgba(255,255,255,.02);
  border-radius: var(--spfy-radius);
}
.spfy-footer .widget-title{
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--spfy-text);
  font-size: 1.05em;
}
.spfy-footer .widget ul{
  list-style:none;
  margin:0;
  padding:0;
}
.spfy-footer .widget li{
  margin: 8px 0;
}
.spfy-footer .widget a{
  color: var(--spfy-muted);
  text-decoration:none;
}
.spfy-footer .widget a:hover{
  text-decoration:underline;
  color: var(--spfy-text);
}

/* ===== Mobile menu (standard UX) ===== */
.spfy-menu-toggle{
  display:none;
  width:44px;
  height:40px;
  border:0;
  background:transparent;
  color:var(--spfy-text);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:0;
}
.spfy-burger-svg{display:block}

.spfy-primary-nav{flex:1;display:flex;align-items:center;justify-content:center;min-width:0}
.spfy-primary-menu{list-style:none;margin:0;padding:0;display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:center}
.spfy-primary-menu a{display:inline-block;padding:8px 10px;border-radius:12px;color:var(--spfy-text)}
.spfy-primary-menu a:hover{background:rgba(255,255,255,.06);text-decoration:none}

.spfy-offcanvas, .spfy-overlay{display:none}
html.spfy-noscroll, body.spfy-noscroll{overflow:hidden}

@media (max-width: 820px){
  .spfy-topbar{flex-wrap:wrap;align-items:center;position:relative}

  /* burger left, logo center */
  .spfy-menu-toggle{display:inline-flex;order:1}
  .spfy-brand{order:2;flex:1;display:flex;justify-content:center}

  /* hide desktop menu */
  .spfy-primary-nav{display:none}

  /* buttons below */
  .spfy-authbar{order:3;width:100%;justify-content:center;margin-top:12px;gap:14px}
  .spfy-authbar button{
    min-width:140px;
    padding:12px 16px;
    border-radius:999px;
    font-weight:700;
    letter-spacing:.2px;
  }
  .spfy-authbar button[data-spfy-role="login"]{
    background: var(--spfy-login);
    color: #0b0613;
    border:0;
  }
  .spfy-authbar button[data-spfy-role="signup"]{
    background: var(--spfy-signup);
    color: #0b0613;
    border:0;
  }

  /* overlay + slide-in panel over content */
  .spfy-offcanvas, .spfy-overlay{display:block}
  .spfy-overlay{
    position:fixed;inset:0;
    background:rgba(0,0,0,.55);
    z-index:1990;
  }
  .spfy-overlay[hidden]{display:none}

  .spfy-offcanvas{
    position:fixed;
    top:0;left:0;
    height:100vh;
    width:min(360px, 86vw);
    background: rgba(2, 20, 32, .98);
    border-right:1px solid var(--spfy-border);
    box-shadow: 18px 0 50px rgba(0,0,0,.45);
    transform: translateX(-102%);
    transition: transform .22s ease;
    z-index:2000;
    padding:16px 16px 18px;
  }
  .spfy-offcanvas.is-open{transform:translateX(0)}

  .spfy-offcanvas-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
  .spfy-offcanvas-brand{display:flex;align-items:center;gap:10px;min-width:0}
  .spfy-offcanvas-brand img.custom-logo{max-height:34px;width:auto;height:auto;display:block}
  .spfy-offcanvas-title{font-weight:800;letter-spacing:.4px}

  .spfy-offcanvas-close{
    width:44px;height:44px;border-radius:999px;border:0;
    background: var(--spfy-login);
    color:#101418;
    cursor:pointer;
    display:inline-flex;align-items:center;justify-content:center;
    font-size:20px;line-height:1;
  }

  .spfy-offcanvas-actions{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
  .spfy-offcanvas-actions button{
    width:100%;
    padding:14px 16px;
    border-radius:999px;
    font-weight:800;
  }
  .spfy-offcanvas-actions button[data-spfy-role="login"]{
    background: var(--spfy-login);
    color:#0a0f14;
    border:0;
  }
  .spfy-offcanvas-actions button[data-spfy-role="signup"]{
    background: var(--spfy-signup);
    color:#0a0f14;
    border:0;
  }

  .spfy-offcanvas-menu{
    list-style:none !important;
    margin:0;padding:0;
    display:flex;flex-direction:column;
    gap:10px;
  }
  .spfy-offcanvas-menu a{
    display:block;width:100%;
    padding:14px 16px;
    border-radius:18px;
    background: rgba(255,255,255,.12);
    color: var(--spfy-text);
    font-weight:700;
  }
  .spfy-offcanvas-menu a:hover{text-decoration:none;background:rgba(255,255,255,.16)}
}



/* Offcanvas UX adjustments: logo full width on top, close button overlay */
@media (max-width: 820px){
  .spfy-offcanvas{padding-top:18px; position:fixed;}
  .spfy-offcanvas-close{
    position:absolute;
    top:14px;
    right:14px;
    z-index:1;
  }

  .spfy-offcanvas-brand{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:8px 0 16px;
    padding:0 44px; /* keep space so close button never overlaps logo */
  }
  .spfy-offcanvas-brand img.custom-logo{
    width:100%;
    max-width: 260px; /* wide but not stretched */
    height:auto;
    max-height:44px;
    object-fit:contain;
  }
  .spfy-offcanvas-title{
    width:100%;
    text-align:center;
    font-weight:900;
    letter-spacing:.6px;
    font-size:18px;
  }

  .spfy-offcanvas-actions{
    margin-top:0;
    margin-bottom:18px;
  }

  /* Menu items as clean sequential pills */
  .spfy-offcanvas-menu{
    gap:12px;
  }
  .spfy-offcanvas-menu a{
    border-radius: 22px;
    background: rgba(255,255,255,.12);
  }
}



/* Desktop dropdown submenu (standard) */
.spfy-primary-menu li{position:relative}
.spfy-primary-menu .sub-menu{
  list-style:none;
  margin:0;
  padding:10px;
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background: rgba(2, 20, 32, .98);
  border:1px solid var(--spfy-border);
  border-radius:14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  z-index:50;
}
.spfy-primary-menu li:hover > .sub-menu,
.spfy-primary-menu li:focus-within > .sub-menu{display:block}
.spfy-primary-menu .sub-menu a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
}
.spfy-primary-menu .sub-menu a:hover{background:rgba(255,255,255,.08)}

/* Offcanvas nested submenu: show as indented list under parent */
@media (max-width: 820px){
  .spfy-offcanvas-menu .sub-menu{
    list-style:none;
    margin:10px 0 0;
    padding:0 0 0 14px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .spfy-offcanvas-menu .sub-menu a{
    background: rgba(255,255,255,.10);
    border-radius:18px;
    padding:12px 14px;
    font-weight:650;
  }
}



/* Mobile submenu dropdown (off-canvas) */
@media (max-width: 820px){
  #spfy-offcanvas-menu li{position:relative}
  #spfy-offcanvas-menu > li > a{padding-right:62px}

  #spfy-offcanvas-menu button[data-spfy-subtoggle]{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:40px;
    border:0;
    border-radius:999px;
    background: rgba(255,255,255,.18);
    color: var(--spfy-text);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  #spfy-offcanvas-menu button[data-spfy-subtoggle] svg{
    transition: transform .18s ease;
  }
  #spfy-offcanvas-menu button[data-spfy-subtoggle][aria-expanded="true"] svg{
    transform: rotate(180deg);
  }

  /* hidden handled by [hidden] attribute, but keep spacing */
  #spfy-offcanvas-menu .sub-menu{
    list-style:none;
    margin:10px 0 0;
    padding:0 0 0 14px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  #spfy-offcanvas-menu .sub-menu[hidden]{display:none}

  #spfy-offcanvas-menu .sub-menu a{
    background: rgba(255,255,255,.10);
    border-radius:18px;
    padding:12px 14px;
    font-weight:650;
  }
}


/* Banner defaults (theme-neutral) */
.spfy-banner-wrap{
  position:relative;
  width:100%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--spfy-border, rgba(255,255,255,.12));
  background: rgba(0,0,0,.15);
}
.spfy-banner-img{display:block;width:100%;height:auto}
.spfy-banner-layer{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  pointer-events:none;
}
.spfy-banner-box{
  pointer-events:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-radius:18px;
  background: rgba(2,20,32,.72);
  backdrop-filter: blur(6px);
  text-align:center;
}
.spfy-banner-text{font-weight:800;letter-spacing:.2px}
.spfy-banner-cta{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
  background: var(--spfy-signup, #ffd05a);
  color:#0a0f14;
}


/* =========================
   Universal tables (Spinfyre Casino)
   ========================= */

/* Prevent accidental horizontal page scroll while keeping inner scrollers usable */
html, body{overflow-x:hidden}

/* Each table is wrapped by JS into a horizontal scroller on mobile */
[data-spfy-table-scroll="1"]{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius: var(--spfy-radius);
  border: 1px solid var(--spfy-border);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  margin: 18px 0 26px;
}

/* Optional subtle scroll hint */
[data-spfy-table-scroll="1"]::after{
  content:"";
  display:block;
  height:0;
}

/* Table base */
.spfy-content article table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px; /* forces horizontal scroll on mobile for wide tables */
  color: var(--spfy-text);
  font-size: 0.98em;
}

@media (min-width: 821px){
  .spfy-content article table{min-width:100%;}
}

.spfy-content article caption{
  caption-side: top;
  text-align:left;
  padding: 10px 12px 12px;
  color: var(--spfy-muted);
  font-weight: 700;
}

.spfy-content article th,
.spfy-content article td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--spfy-border);
  border-right: 1px solid var(--spfy-border);
  vertical-align: top;
  white-space: normal;
}

.spfy-content article tr > *:last-child{
  border-right: 0;
}

/* Header row */
.spfy-content article thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,47,72,.92), rgba(6,34,53,.92));
  color: var(--spfy-text);
  font-weight: 900;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--spfy-border);
}

/* Rounded corners for header */
.spfy-content article thead th:first-child{
  border-top-left-radius: calc(var(--spfy-radius) - 6px);
}
.spfy-content article thead th:last-child{
  border-top-right-radius: calc(var(--spfy-radius) - 6px);
}

/* Rows */
.spfy-content article tbody tr:nth-child(odd){
  background: rgba(255,255,255,.015);
}
.spfy-content article tbody tr:nth-child(even){
  background: rgba(255,255,255,.03);
}
.spfy-content article tbody tr:hover{
  background: rgba(109,178,255,.10);
}

/* Links inside tables */
.spfy-content article table a{
  color: var(--spfy-login);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.spfy-content article table a:hover{
  opacity: .92;
}

/* Mobile density */
@media (max-width: 480px){
  .spfy-content article table{font-size: 0.95em;}
  .spfy-content article th,
  .spfy-content article td{padding: 10px 12px;}
}


/* =========================
   TOC (Quick navigation)
   ========================= */

[data-spfy-toc="1"]{
  border: 1px solid var(--spfy-border);
  background: var(--spfy-card);
  border-radius: var(--spfy-radius);
  padding: 14px 16px;
  margin: 14px 0 22px;
}

[data-spfy-toc-title="1"]{
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--spfy-text);
}

[data-spfy-toc="1"] ol{
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-spfy-toc="1"] li{
  margin: 8px 0;
  padding: 0;
}

[data-spfy-toc="1"] li[data-level="3"]{
  padding-left: 14px;
  opacity: .95;
}

[data-spfy-toc="1"] a{
  display: inline-block;
  color: var(--spfy-text);
  opacity: .92;
  text-decoration: none;
}

[data-spfy-toc="1"] a:hover{
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 820px){
  .spfy-offcanvas[hidden]{display:none !important;}
}


/* --- TOC (collapsible) --- */
[data-spfy-toc-header="1"]{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}
[data-spfy-toc-toggle="1"]{
  width:100%;
  text-align:left;
  border:1px solid var(--spfy-border);
  background: rgba(255,255,255,.04);
  color: var(--spfy-text);
  padding: 10px 12px;
  border-radius: var(--spfy-radius);
  font-weight: 800;
  cursor: pointer;
  position: relative;
}
[data-spfy-toc-toggle="1"]::after{
  content: "▾";
  position:absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity:.85;
}
[data-spfy-toc-toggle="1"][aria-expanded="false"]::after{
  content: "▸";
}
