/*
Theme Name: TSGambler
Theme URI: https://tsgambler.com/
Author: TSGambler
Description: TSGambler
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsgambler
Tags: blog, dark, minimalist, one-column, custom-logo, featured-images
*/

:root{
  --bg:#0b0d10;
  --text:#e8ecf1;
  --muted:#a5adba;
  --line:rgba(232,236,241,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 980px;
  --accent:#c6ff00;
  --accent2:#00ffd1;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% -10%, rgba(198,255,0,.10), transparent 50%),
              radial-gradient(900px 500px at 90% 0%, rgba(0,255,209,.08), transparent 52%),
              linear-gradient(180deg, var(--bg) 0%, #07080a 100%);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
img{max-width:100%; height:auto}

.tsg-wrap{max-width:var(--max); margin:0 auto; padding:28px 18px 70px}
.tsg-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 0 22px;
  border-bottom:1px solid var(--line);
}
.tsg-brand{display:flex; align-items:baseline; gap:10px;}
.tsg-brand__name{font-weight:800; letter-spacing:.08em; font-size:18px;}
.tsg-brand__tag{
  color:var(--muted); font-size:13px;
  border-left:1px solid var(--line); padding-left:10px;
}
.tsg-nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.tsg-nav a{
  color:var(--muted); font-size:14px;
  padding:8px 10px; border-radius:12px;
  border:1px solid transparent;
}
.tsg-nav a:hover{color:var(--text); border-color:var(--line); background:rgba(255,255,255,.02)}

.tsg-hero{
  margin:26px 0 22px;
  padding:28px 22px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.tsg-hero:before{
  content:"";
  position:absolute; inset:-40px;
  background:
    radial-gradient(600px 260px at 10% 20%, rgba(198,255,0,.16), transparent 60%),
    radial-gradient(520px 240px at 80% 20%, rgba(0,255,209,.12), transparent 60%);
  filter: blur(2px);
  opacity:.85;
  pointer-events:none;
}
.tsg-hero > *{position:relative}
.tsg-hero h1{margin:0 0 10px; font-size:44px; letter-spacing:.02em; line-height:1.05;}
.tsg-hero p{margin:0 0 16px; color:rgba(232,236,241,.88); font-size:16px; max-width:65ch;}
.tsg-cta{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:14px;
  background: rgba(198,255,0,.12);
  border:1px solid rgba(198,255,0,.35);
  color:var(--text);
  font-weight:700;
}
.tsg-cta:hover{background: rgba(198,255,0,.16)}
.tsg-subcta{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:600;
  margin-left:10px;
}
.tsg-subcta:hover{color:var(--text); background: rgba(255,255,255,.04)}

.tsg-section-title{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin:24px 0 10px;
}
.tsg-section-title h2{margin:0; font-size:18px; letter-spacing:.02em}
.tsg-section-title .tsg-mini{
  color:var(--muted); font-size:13px;
  border:1px solid var(--line); background:rgba(255,255,255,.02);
  padding:7px 10px; border-radius:999px;
}

.tsg-grid{display:grid; grid-template-columns: 1fr; gap:14px;}
.tsg-card{
  padding:18px 18px 16px;
  border-radius:var(--radius);
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.tsg-posthead{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap;}
.tsg-title{margin:0; font-size:20px; line-height:1.25; letter-spacing:.01em;}
.tsg-meta{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.tsg-pill{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.tsg-pill--win{border-color:rgba(198,255,0,.35); background:rgba(198,255,0,.08); color:rgba(232,236,241,.92)}
.tsg-pill--loss{border-color:rgba(255,92,92,.35); background:rgba(255,92,92,.08); color:rgba(232,236,241,.92)}
.tsg-pill--even{border-color:rgba(165,173,186,.35); background:rgba(165,173,186,.08); color:rgba(232,236,241,.92)}

.tsg-excerpt{margin:12px 0 0; color:rgba(232,236,241,.86)}
.tsg-readmore{margin-top:14px; display:inline-flex; align-items:center; gap:8px; color:rgba(232,236,241,.9); font-weight:700;}
.tsg-readmore span{color:var(--muted); font-weight:600}

.tsg-content{
  background: rgba(255,255,255,.02);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow: var(--shadow);
}
.tsg-content h1,.tsg-content h2,.tsg-content h3{line-height:1.2}
.tsg-content h1{margin-top:0}
.tsg-content a{color:rgba(198,255,0,.95); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px}
.tsg-content a:hover{opacity:.95}

.tsg-quickfacts{
  margin:18px 0 0;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.tsg-quickfacts h3{margin:0 0 10px; font-size:14px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.tsg-quickfacts dl{margin:0; display:grid; grid-template-columns: 140px 1fr; gap:8px 12px; font-size:14px;}
.tsg-quickfacts dt{color:var(--muted)}
.tsg-quickfacts dd{margin:0}

.tsg-footer{
  margin-top:30px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.tsg-pagination{display:flex; gap:10px; justify-content:center; margin-top:18px;}
.tsg-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:700;
}
.tsg-pagination .current{color:var(--text); background: rgba(255,255,255,.04)}
.tsg-pagination a.page-numbers:hover{color:var(--text)}

.alignwide{margin-left:auto;margin-right:auto}
.wp-block-image figcaption{color:var(--muted)}
.wp-block-quote{border-left:3px solid rgba(198,255,0,.55); padding-left:14px; color:rgba(232,236,241,.9)}
.wp-block-separator{border-color:var(--line)}
pre{background:rgba(255,255,255,.03); border:1px solid var(--line); padding:14px; border-radius:14px; overflow:auto}

@media (min-width: 720px){
  .tsg-grid{gap:16px}
  .tsg-hero{padding:34px 28px}
  .tsg-hero h1{font-size:54px}
}


/* --- Front-page stats --- */
.tsg-stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.tsg-stat{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: rgba(232,236,241,.86);
  font-size:13px;
  font-weight:700;
}
.tsg-stat small{
  color: var(--muted);
  font-weight:600;
}
/* --- Menu: remove bullets + spacing --- */
.tsg-nav { position: relative; }

.tsg-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.tsg-menu li{
  list-style: none;
  margin: 0;
  padding: 0;
}

.tsg-menu a{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
}

/* Screen-reader only */
.tsg-sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* --- Mobile hamburger --- */
.tsg-nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(232,236,241,.92);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  line-height: 1;
}

/* Tablet + mobile */
@media (max-width: 820px){
  .tsg-nav-toggle{ display: inline-flex; }

  .tsg-nav-menu{
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 200px;
    border: 1px solid var(--line);
    background: rgba(10,12,16,.96);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    z-index: 999;
  }
  .tsg-nav-menu.is-open{ display: block; }

  .tsg-menu{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .tsg-menu a{
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
  }
}

