/* ============================================
   ROBO CAT CASINO - BASE STYLES
   ============================================ */

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--primary); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Gradient text with fallback for unsupported browsers */
.text-gradient {
  color: var(--primary); /* Fallback color */
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Ensure text-gradient has visible text if gradient fails */
@supports not (-webkit-background-clip: text) {
  .text-gradient {
    background: none;
    color: var(--primary);
  }
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* SECTION */
section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; margin-bottom: 0; }

/* UPDATED BADGE */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: hsla(142, 71%, 45%, 0.1);
  border: 1px solid hsla(142, 71%, 45%, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 16px;
}

.updated-badge i { font-size: 1rem; }

/* Scroll margin for anchor links (TOC) */
[id] {
  scroll-margin-top: 100px;
}

/* Selection */
::selection {
  background: var(--primary);
  color: hsl(0, 0%, 0%);
}

/* ============================================
   CONTENT BLOCK - Main content styling
   ============================================ */
.content-block {
  max-width: 800px;
  margin: 32px 0;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 20px;
}

.content-block h3:first-child {
  margin-top: 0;
}

.content-block h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 16px;
}

.content-block ul,
.content-block ol {
  margin: 20px 0;
  padding-left: 24px;
}

.content-block ul {
  list-style: disc;
}

.content-block ol {
  list-style: decimal;
}

.content-block li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 8px;
}

.content-block li strong {
  color: var(--text-primary);
}

.content-block strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-block a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-block a:hover {
  text-decoration: none;
}

.content-block blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 32px; }
  .content-block { margin: 24px 0; }
  .content-block h3 { font-size: 1.3rem; margin: 32px 0 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  section { padding: 40px 0; }
  .content-block p { font-size: 1rem; }
}
