/* =============================================
   PIVOTAL GAMES — modern.css
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #1a1e2e;
  --bg2:        #222740;
  --bg3:        #2a3050;
  --border:     #353d5a;
  --accent:     #ffb422;
  --accent2:    #7b8cde;
  --text:       #d6daea;
  --text-muted: #8b93b0;
  --radius:     8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #ffd07a;
  text-decoration: underline;
}

/* --- HEADER --- */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo img {
  height: 75px;
  width: auto;
  margin: 10px;
}

/* --- NAV --- */
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.main-nav ul li a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.main-nav ul li a:hover {
  background: var(--bg3);
  color: var(--accent);
  text-decoration: none;
}

/* --- BURGER BUTTON --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- PAGE WRAPPER (main + sidebar) --- */
.page-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* --- MAIN CONTENT --- */
.main-content {
  flex: 1 1 0;
  min-width: 0;
}

/* --- FILTER BAR --- */
.content-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-tab {
  padding: 5px 13px;
  border-radius: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-tab:hover {
  background: var(--bg3);
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.filter-tab.active {
  background: var(--accent);
  color: #1a1e2e;
  border-color: var(--accent);
}

/* --- NEWS ITEM --- */
.news-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.news-heading h1 {
  font-size: 1.25rem;
  color: var(--accent2);
  margin-bottom: 6px;
}

.news-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-cat {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.news-body p {
  margin-bottom: 12px;
  color: var(--text);
}

.news-body p:last-child {
  margin-bottom: 0;
}

.news-more {
  margin-top: 16px;
  text-align: right;
}

.news-more a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
}

.news-more a:hover {
  color: var(--accent);
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 40px;
}

.page-link {
  padding: 6px 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.page-link:hover {
  background: var(--bg3);
  color: var(--accent);
  text-decoration: none;
  border-color: var(--accent);
}

.page-link.active {
  background: var(--accent);
  color: #1a1e2e;
  border-color: var(--accent);
}

/* --- SIDEBAR --- */
.sidebar {
  width: 200px;
  flex-shrink: 0;
}

.sidebar-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-games {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-games li a img {
  border-radius: 4px;
  transition: opacity 0.2s;
}

.sidebar-games li a:hover img {
  opacity: 0.8;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.footer-nav a {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 99;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav ul li a {
    padding: 10px 14px;
    font-size: 14px;
  }

  .page-wrapper {
    flex-direction: column;
    margin-top: 20px;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-games {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .news-item {
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
  }

  .content-filter-bar {
    gap: 6px;
  }

  .filter-tab {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* --- IGAMING ARTICLES SECTION --- */
.igaming-articles {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.igaming-articles__header {
  margin-bottom: 24px;
}

.igaming-articles__title {
  font-size: 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.igaming-articles__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

/* --- ARTICLE CARDS GRID --- */
.igaming-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* --- SINGLE ARTICLE CARD --- */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.article-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-card__meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card__geo {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.article-card__lang {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 180, 34, 0.12);
  border: 1px solid rgba(255, 180, 34, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.article-card__category {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.article-card:hover .article-card__title {
  color: var(--accent);
}

.article-card__excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.article-card__meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.article-card__author {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card__author:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-card__read-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.article-card__date {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .igaming-articles__grid {
    grid-template-columns: 1fr;
  }
}