/* base.css - MyBet Tunisia CSS System */
:root {
  --bg-main: #FFFFFF;
  --bg-alt: #F7F8FA;
  --text-main: #171A1F;
  --text-muted: #667085;
  --brand-yellow: #FEB80C;
  --brand-yellow-hover: #E9A600;
  --cta-green: #168A5B;
  --cta-green-hover: #107348;
  --bg-light-green: #ECF8F2;
  --bg-light-yellow: #FFF8E5;
  --border-color: #E5E7EB;
  --warning-red: #F04438;
  --shadow-sm: 0 2px 4px rgba(23, 26, 31, 0.05);
  --shadow-md: 0 4px 12px rgba(23, 26, 31, 0.08);
  --shadow-lg: 0 8px 24px rgba(23, 26, 31, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px; /* offset for sticky header */
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  scroll-margin-top: 100px;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-yellow);
  margin-top: 8px;
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0F172A;
  scroll-margin-top: 100px;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-cta {
  background-color: var(--cta-green);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(22, 138, 91, 0.25);
}

.btn-cta:hover {
  background-color: var(--cta-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22, 138, 91, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--brand-yellow);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--brand-yellow-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-yellow {
  background-color: var(--bg-light-yellow);
  color: #B47D00;
  border: 1px solid #FFE5A3;
}

.badge-green {
  background-color: var(--bg-light-green);
  color: var(--cta-green);
  border: 1px solid #B6E8D1;
}

/* Rating Stars */
.rating-stars {
  color: #F59E0B;
  display: inline-flex;
  gap: 2px;
  font-size: 1rem;
}

/* Responsive Grid Helper */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  body { padding-top: 70px; }
}
