/* Starchip Enterprises – shared site styles
   Used by Cashiers Cage, Slot Cards, Craps Pit, chip scan pages, etc. */

:root {
  --accent: #f56a6a;
  --accent-hover: #f45c5c;
  --text: #3d4449;
  --text-muted: #6b737c;
  --bg: #ffffff;
  --sidebar-bg: #f5f6f7;
  --border: #e6ebed;
  --radius: 6px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-font: "Roboto Slab", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text-muted);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Layout */
.wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 2rem 1.35rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.1rem;
  margin-top: 1.25rem;
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.4rem;
  display: inline-block;
}
.sidebar h2:first-of-type {
  margin-top: 0;
}

.sidebar nav ul {
  list-style: none;
}
.sidebar nav li {
  margin-bottom: 0.25rem;
}
.sidebar nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #fff;
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.sidebar-footer a {
  color: var(--text-muted);
}
.sidebar-footer a:hover {
  color: var(--accent);
}

/* Main content */
.main {
  padding: 2rem 2.5rem 3rem;
  max-width: 960px;
}

header.site-header {
  margin-bottom: 1.75rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.85rem;
}
header.site-header h1,
header.site-header .logo {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
header.site-header .logo:hover {
  color: var(--accent);
}

h1,
h1.page-title {
  font-family: var(--heading-font);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.content a {
  font-weight: 600;
}
.content h2,
.content h3,
.content em,
.content i {
  font-family: var(--heading-font);
  color: var(--text);
}

/* Sections */
.section {
  margin-top: 2.5rem;
}
.section h2 {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

/* Location / chip index grids */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}
.location-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.location-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(245, 106, 106, 0.12);
  text-decoration: none;
}

/* Chip scan city/casino cards */
.city-section {
  margin-bottom: 2.25rem;
}
.city-section h2 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.casino-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.casino-card h3 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.casino-card h3 a {
  color: var(--text);
  font-weight: 700;
}
.casino-card h3 a:hover {
  color: var(--accent);
}

.chip-list {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-list a {
  display: inline-block;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.chip-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(245, 106, 106, 0.12);
}

.chip-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.chip-desc li {
  margin-bottom: 0.25rem;
}

/* Catalog box (chip text listings) */
.catalog {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  white-space: pre-wrap;
  font-family: var(--font);
  color: var(--text-muted);
  max-height: 280px;
  overflow-y: auto;
}

/* Slot card resources */
.resources {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--sidebar-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.resources h2 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.resources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.resources li {
  margin-bottom: 0.5rem;
}
.resources a {
  font-weight: 600;
}

/* Craps systems database */
.intro {
  margin-bottom: 1.75rem;
}
.intro p {
  margin-bottom: 0.6rem;
}
.note {
  background: #fff8f8;
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  border-radius: 0 6px 6px 0;
}
.category {
  margin-bottom: 2.25rem;
}
.category h2 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
}
.category h2 a {
  color: var(--text);
}
.category h2 a:hover {
  color: var(--accent);
}
.system-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem 1rem;
  list-style: none;
}
.system-list li {
  padding: 0.35rem 0;
  font-size: 0.93rem;
}
.system-list a {
  font-weight: 600;
}
.legend {
  font-size: 0.88rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

/* Craps system content pages */
.submit-note {
  background: #fff8f8;
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1.1rem;
  margin: 1rem 0 1.75rem;
  font-size: 0.92rem;
  border-radius: 0 6px 6px 0;
}
.content a[id],
.content a[name] {
  display: block;
  scroll-margin-top: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  text-decoration: none;
}
.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}
.content p,
.content div {
  margin-bottom: 0.5rem;
}

/* Craps Pit home – cards & dice */
.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--text);
  margin-bottom: 1rem;
}
.dice-rotator {
  margin: 1.25rem 0 1.75rem;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #111;
  position: relative;
  display: inline-block;
}
.dice-rotator img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  transition: opacity 0.45s ease;
}
.dice-rotator img.fade-out {
  opacity: 0;
}
.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.card h3 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--accent-hover);
}
.section-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  color: var(--text);
  margin: 2rem 0 1rem;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.link-item {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.link-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(245, 106, 106, 0.12);
}

/* Footer / nav links */
.back-link,
.footer-links,
.nav-links {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 600;
}
.back-link a,
.footer-links a,
.nav-links a {
  font-weight: 600;
}

footer.page-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 840px) {
  .wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.15rem 1rem;
  }
  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .sidebar nav a {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }
  .main {
    padding: 1.5rem 1.15rem 2.5rem;
  }
  .location-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .dice-rotator {
    width: auto;
    max-width: 100%;
  }
}

/* About page */
.subtitle {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.sign-off {
  margin-top: 2rem;
  font-style: italic;
  color: var(--text);
}

/* Skip to content – accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.65rem 1.1rem;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
  text-decoration: none;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
