/*
  Light Theme Styles for mrbet.com.ro
  - Mobile-first, responsive grid
  - Semantic component classes
  - High-contrast accessible color tokens
  - Comments explain structure and intent
*/

/*
  Root color system
  Keep variables readable and consistent. Adjust as needed.
*/
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f8fa;
  --color-text: #101418;
  --color-text-muted: #5b6570;
  --color-primary: #1a73e8;
  --color-primary-contrast: #ffffff;
  --color-accent: #e83e8c;
  --color-border: #e1e5ea;

  --container-max: 1180px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(16, 20, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 20, 24, 0.10);

  --touch-target: 44px;
}

/*
  Global resets and typography
*/
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overscroll-behavior: none; /* prevent pull-to-refresh bounce on mobile (soft lock) */
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Utility */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); border-color: transparent; }
.btn--accent { background: var(--color-accent); color: #fff; border-color: transparent; }

/* Header */
.site-header {
  background: #0f172a; /* dark header */
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid #0b1224;
  color: #e2e8f0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.site-nav__list { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.logo img { height: 40px; width: auto; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2)); }
.site-header a { color: #bfdbfe; }
.site-header .btn { background: #1f2a44; color: #e2e8f0; border-color: #263354; }
.site-header .btn--primary { background: #2563eb; }

/* Breadcrumbs */
.breadcrumbs { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.breadcrumbs__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 8px 16px; align-items: center; }
.breadcrumbs__item { color: var(--color-text-muted); font-size: 14px; }
.breadcrumbs__link { color: inherit; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin: 0 6px; color: var(--color-text-muted); }
.breadcrumbs__current { color: var(--color-text); font-weight: 600; }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero__media img, .hero__media source { width: 100%; border: 0; }
.hero__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center; /* center by default (mobile) */
  padding: 16px;
}
.hero__content {
  backdrop-filter: blur(2px);
  background: rgba(16, 20, 24, 0.45);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius);
  max-width: 520px;
}
.hero__subtitle { margin-top: 8px; margin-bottom: 16px; color: #f1f5f9; }
.cta-button { font-size: 16px; }

/* Slots Grid */
.slots { padding: 32px 0; }
.slots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.slots__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
/* Uniform slot tiles: enforce aspect ratio and cover */
.slots__item { position: relative; }
.slots__item::before { content: ""; display: block; padding-top: 66.6667%; }
.slots__item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* Content */
.content { padding: 24px 0; }
.content h1, .content h2, .content h3 { line-height: 1.25; }
.content h1 { font-size: 28px; margin: 16px 0; }
.content h2 { font-size: 22px; margin: 20px 0 10px; }
.content h3 { font-size: 18px; margin: 16px 0 8px; }
.content p { margin: 10px 0; color: var(--color-text); }

/* Responsive Tables
   - Scroll container on small screens
   - Header labels shown via data-label on cells (added by JS)
*/
table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
thead th { text-align: left; font-weight: 700; background: var(--color-surface); }
th, td { padding: 10px 12px; border: 1px solid var(--color-border); }

/* Mobile table treatment: stack rows with labels */
@media (max-width: 639px) {
  /* Small indent in header on mobile */
  .site-header .container { padding-left: 20px; padding-right: 20px; }
  .header__inner { padding: 12px 0; }

  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { margin-bottom: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
  td { border: none; border-bottom: 1px solid var(--color-border); position: relative; padding-left: 48%; min-height: 44px; }
  td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    position: absolute; left: 12px; top: 0; bottom: 0; display: flex; align-items: center;
    font-weight: 600; color: var(--color-text-muted);
  }
}

/* Payments */
.payments { padding: 24px 0 48px; background: var(--color-surface); border-top: 1px solid var(--color-border); }
.payments__scroller { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; align-items: center; }
.payments__scroller img { max-height: 36px; width: auto; filter: saturate(0.9); }

/* Footer */
.site-footer { background: #0f172a; color: #e2e8f0; margin-top: 24px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.footer__links { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #93c5fd; }

/* Desktop adjustments */
@media (min-width: 768px) {
  .hero__overlay { place-items: start; /* left align overlay on desktop */ }
  .hero__content { margin-left: 5vw; }

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

@media (min-width: 1024px) {
  /* Ensure 2 rows of 6 (12 total) on desktop-wide */
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
}


