/* cazeuscasino.app — layout + components layered on top of the base template */

:root {
  --gold: #e7c87a;
  --gold-deep: #c9a14a;
  --line: rgba(255, 255, 255, 0.09);
  --panel: rgba(255, 255, 255, 0.028);
}

/* ---------- language switcher ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 0.3rem 0.7rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
}
.lang-switch a.is-active {
  background: rgba(201, 161, 74, 0.18);
  color: var(--gold);
  opacity: 1;
  font-weight: 700;
}

/* ---------- two-column shell (new layout vs. previous builds) ---------- */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.25rem;
  align-items: start;
}
.shell-main {
  min-width: 0;
}
.rail {
  position: sticky;
  top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
  }
}

.rail-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 1rem 1.1rem;
}
.rail-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.rail-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.rail-list li:last-child {
  border-bottom: none;
}
.rail-list strong {
  color: var(--gold);
  white-space: nowrap;
}
.rail-toc a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.82;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rail-toc a:hover {
  color: var(--gold);
  opacity: 1;
}

/* ---------- key figure strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.stat-box {
  border: 1px solid rgba(201, 161, 74, 0.22);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(201, 161, 74, 0.09), rgba(201, 161, 74, 0.01));
}
.stat-box b {
  display: block;
  font-size: 1.45rem;
  color: var(--gold);
  line-height: 1.15;
}
.stat-box span {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ---------- calculators ---------- */
.calc {
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.3rem;
  background: linear-gradient(180deg, rgba(201, 161, 74, 0.1), rgba(0, 0, 0, 0.15));
  margin: 1.6rem 0;
}
.calc h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--gold);
}
.calc p.calc-sub {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}
.calc-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font-size: 0.95rem;
  font-family: inherit;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--gold-deep);
}
.calc-out {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}
.calc-out div {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.7rem 0.8rem;
}
.calc-out span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}
.calc-out b {
  font-size: 1.25rem;
  color: var(--gold);
}
.calc-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- forum-style review inserts ---------- */
.thread {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin: 1rem 0;
  overflow: hidden;
}
.thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.02);
}
.badge-src {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
}
.badge-src.reddit {
  background: rgba(255, 69, 0, 0.17);
  color: #ff7a45;
}
.badge-src.trustpilot {
  background: rgba(0, 182, 122, 0.17);
  color: #2fd39b;
}
.badge-src.forum {
  background: rgba(120, 160, 255, 0.16);
  color: #8fb0ff;
}
.thread-title {
  font-weight: 600;
  opacity: 0.9;
}
.thread-body {
  padding: 0.85rem 0.9rem 0.2rem;
}
.post {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.post:last-child {
  border-bottom: none;
}
.post-meta {
  font-size: 0.76rem;
  opacity: 0.6;
  margin: 0 0 0.35rem;
}
.post p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
}
.post.reply {
  margin-left: 1.1rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(201, 161, 74, 0.3);
}

/* ---------- step list (install / login flows) ---------- */
.steps {
  counter-reset: st;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
.steps li {
  counter-increment: st;
  position: relative;
  padding: 0.55rem 0 0.75rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.steps li:before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #12151f;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
}

/* ---------- shared table / quote styling ---------- */
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 161, 74, 0.25);
  border-radius: 10px;
  overflow: hidden;
}
.rich-content th {
  text-align: left;
  padding: 0.7rem 0.9rem;
  background: rgba(201, 161, 74, 0.14);
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid rgba(201, 161, 74, 0.3);
}
.rich-content td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}
.rich-content tr:last-child td {
  border-bottom: none;
}
.rich-content tbody tr:hover {
  background: rgba(201, 161, 74, 0.06);
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.rich-content blockquote {
  border-left: 3px solid var(--gold-deep);
  background: rgba(201, 161, 74, 0.07);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}
.rich-content blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.75;
}
.footnotes {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  opacity: 0.78;
}
.footnotes ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
sup.fn a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75em;
}
.verdict-box {
  border: 1px solid rgba(201, 161, 74, 0.4);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(201, 161, 74, 0.1), rgba(201, 161, 74, 0.02));
  margin: 1.4rem 0;
}
.verdict-box h3 {
  margin-top: 0;
}

/* ---------- author strip (new placement: horizontal, above the fold) ---------- */
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.9rem 1rem;
  margin: 1.5rem 0;
}
.byline img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 161, 74, 0.4);
}
.byline-text {
  flex: 1 1 260px;
  min-width: 0;
}
.byline-text h3 {
  margin: 0;
  font-size: 1rem;
}
.byline-text p {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.82;
}
.byline-checked {
  font-size: 0.78rem;
  opacity: 0.65;
  margin-top: 0.45rem !important;
}

@media (max-width: 640px) {
  .rich-content table {
    font-size: 0.85rem;
  }
  .rich-content th,
  .rich-content td {
    padding: 0.55rem 0.6rem;
  }
  .shell {
    padding-top: 1.25rem;
  }
}
