@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #010d1c;
  --bg-secondary: #0a1a2f;
  --bg-card: #0f1f3a;
  --bg-card-hover: #15284a;
  --border: #1e3352;
  --text-primary: #ffffff;
  --text-secondary: #8899b4;
  --text-muted: #556b85;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --gold: #fbbf24;
  --container: 1320px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.header__logos {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo--second {
  font-size: 18px;
  opacity: 0.7;
}

.logo--second:hover { opacity: 1; }

.logo__icon {
  width: 40px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
}

.logo__accent { color: var(--accent); }

.nav { display: flex; gap: 4px; }

.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.active { display: block; }

.mobile-menu__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Page layout */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: 0.2s;
}

.sidebar__link:hover,
.sidebar__link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.sidebar__link-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sidebar__badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Main content */
.content { min-width: 0; }

/* Section */
.section { margin-bottom: 48px; }

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section__title {
  font-size: 22px;
  font-weight: 700;
}

.section__title-small {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.section__link:hover { color: var(--accent-hover); }

.section__count {
  background: var(--bg-card);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 8px;
}

/* Statstrip */
.statstrip {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.statstrip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: var(--radius);
}

.statstrip__icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.statstrip__num {
  font-size: 22px;
  font-weight: 700;
}

.statstrip__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.statstrip__exclusive {
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

/* Bookmaker cards grid */
.bk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.bk-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: background 0.2s;
  position: relative;
}

.bk-card:hover { background: var(--bg-card-hover); }

.bk-card__logo {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.bk-card__logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.bk-card__bonus {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--green);
}

.bk-card__btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 8px;
}

.bk-card__btn:hover { background: var(--accent-hover); }

.bk-card__review {
  font-size: 12px;
  color: var(--text-muted);
  transition: 0.2s;
}

.bk-card__review:hover { color: var(--text-secondary); }

.show-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* Bonus cards */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bonus-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.bonus-card:hover { background: var(--bg-card-hover); }

.bonus-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bonus-card__logo {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.bonus-card__logo img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

.bonus-card__type {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.bonus-card__amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}

.bonus-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bonus-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.bonus-card__btn {
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.bonus-card__btn:hover { background: var(--accent-hover); }

.bonus-card__promo {
  padding: 8px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.bonus-card__copy {
  padding: 8px 14px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.bonus-card__copy:hover { border-color: var(--accent); color: var(--accent); }

.bonus-card__days {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* News section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  transition: background 0.2s;
}

.news-card:hover { background: var(--bg-card-hover); }

.news-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Ratings table */
.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rating-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.rating-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.rating-table tr:last-child td { border-bottom: none; }

.rating-table__position {
  font-size: 18px;
  font-weight: 700;
  width: 60px;
}

.rating-table__name {
  font-weight: 600;
  color: var(--text-primary);
}

.rating-table__score {
  font-weight: 700;
  color: var(--orange);
}

.rating-table__bonus {
  font-size: 13px;
  color: var(--text-secondary);
}

.rating-table__check {
  color: var(--green);
  font-weight: 700;
}

/* Content table (links) */
.links-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.links-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.links-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.links-table a { color: var(--accent); font-weight: 500; }
.links-table a:hover { color: var(--accent-hover); }

.links-table tr:last-child td { border-bottom: none; }

/* Page hero */
.page-hero {
  margin-bottom: 32px;
}

.page-hero__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-hero__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
}

.page-hero__desc a { color: var(--accent); }
.page-hero__desc a:hover { text-decoration: underline; }

/* Prose */
.prose {
  color: var(--text-secondary);
  line-height: 1.7;
}

.prose p { margin-bottom: 16px; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 32px 0 16px; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 24px 0 12px; }

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 64px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

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

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

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }

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

  .bonus-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .statstrip {
    flex-wrap: wrap;
  }

  .rating-table {
    font-size: 12px;
  }

  .rating-table th,
  .rating-table td {
    padding: 10px 8px;
  }

  .section__title {
    font-size: 18px;
  }

  .page-hero__title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .bk-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 12px;
  }
}
