/*
Theme Name: Gambling portal
Theme URI: https://example.com/
Author: Sorrroka
Description: Custom theme with modular structure (assets, inc)
Version: 1.0
*/

/* === Hero Section === */
.hero-title {
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-subtitle {
	color:var(--color-muted);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 30px;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
.hero-container {
  position: relative;
  background: url('/wp-content/themes/gambling-portal/assets/img/bg/gambling-hero-bg.webp') no-repeat right top;
  background-size: contain; /* масштабирует изображение на всю секцию */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 80px 20px; /* уменьшена высота, будет меняться по контенту */
  color: #fff;
  z-index: 1;
  overflow: hidden;
}

.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
background: radial-gradient(
  circle at right,
  rgba(var(--color-bg-rgb), 0.0) 15%,
  rgba(var(--color-bg-rgb), 0.6) 50%,
  rgba(var(--color-bg-rgb), 1) 75%
);
  z-index: 2;
  pointer-events: none;
}

.hero-container-main{
  position: relative;
  background: url('/wp-content/themes/gambling-portal/assets/img/bg/gambling-hero-bg.webp') no-repeat right top;
  background-size: contain; /* масштабирует изображение на всю секцию */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 80px 20px; /* уменьшена высота, будет меняться по контенту */
  color: #fff;
  z-index: 1;
  overflow: hidden;
}
.hero-container-main::before {
  content: "";
  position: absolute;
  inset: 0;
background: radial-gradient(
  circle at right,
  rgba(var(--color-bg-rgb), 0.0) 15%,
  rgba(var(--color-bg-rgb), 0.6) 50%,
  rgba(var(--color-bg-rgb), 1) 75%
);
  z-index: 2;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-family: var(--font-main);
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumbs .separator {
  color: var(--color-muted);
  user-select: none;
}

.breadcrumbs .current {
  color: var(--color-light-bg);
  font-weight: 600;
}


.hero-content {
  width:55%;
  z-index: 3;
}
.hero-content h1{
  font-size:60px;
  color:var(--color-light-bg);
}
.hero-container img.hero-image {
  position: relative;
  z-index: 3;
}

.hero-btn {
  background: #f9b23d;
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: #ff7700;
  color: #fff;
  transform: translateY(-2px);
}

.hero-illustration img {
  max-width: 500px;
  height: auto;
}
/* === Scrollable Category Menu === */
.category-scroll-section {
  background: #111;
  padding: 12px 0;
}
.scroll-menu-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  list-style: none;
  margin: 0;
  padding: 0 20px;
}
.scroll-menu-list li a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: background var(--transition-fast);
}
.scroll-menu-list li a:hover {
  background: var(--color-accent);
  color: #000;
}

/* === Featured News === */
/* Основной контейнер новостей */


/* Заголовок секции */
.featured-news .section-header h2 {
  font-size: var(--h2-size);
  margin-bottom: 1.5rem;
}

/* Сетка новостей */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.news-grid .news-grid-two {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 1.5rem;
}

.more-news .news-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
}
@media (max-width:768px) {
	.more-news .news-grid {
  flex-wrap: wrap;
}
}

/* Карточка новости */
.news-card {
  background-color: var( --color-muted-rgba-20);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 16px rgba(var(--color-bg-rgb), 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card .thumb {
	padding:0;
}

.thumb.with-gradient {
	padding:0;
}

.more-news .section-header h2 {
	color:var(--color-light-bg);
}
.more-news .news-card {
  width: 50%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(var(--color-bg-rgb), 0.25);
}

a.all-posts-btn {
    display: flex;
    justify-self: center;
	text-decoration: none;
	font-weight: bold;
}

/* Обложка */
.news-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Контент карточки */
.news-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-content h3 {
  font-size: var(--h4-size);
  color: var(--color-text);
  margin: 0;
}

.news-content h3 a {
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-content h3 a:hover {
  color: var(--color-accent);
}

/* Отрывок */
.news-content .excerpt {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Футер карточки */
.news-footer {
  margin-top: auto;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}


/* === Promo Banner === */
.promo-banner {
  color: var(--color-text);
  text-align: center;
}
.promo-banner h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.promo-banner .btn-cta {
  background: var(--color-accent);
  color: #000;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}
.saidi-banners-wrapper{
padding:0;
}

/* === Контент + сайдбар === */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  border-radius: var(--border-radius);
  background: var(--color-bg-light);
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 40px 20px;
}
.site-sidebar {
  flex: 1 1 100px;
  background: var(--color-bg);
  color: var(--color-bg);
  padding: 0;
  border-radius: var(--border-radius);
}
.main-column {
    flex: 3 1 0;
    min-width: 0;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--color-light-bg);
  }


/* 📱 Мобильная адаптация */
@media (max-width: 768px) {
	
.hero-content h1{
  font-size:40px;
}	

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-image img {
    max-width: 80%;
    height: auto;
  }

  .category-scroll-wrapper {
    padding: 0 10px;
  }

  .scroll-menu-list {
    gap: 10px;
  }

  .video-grid {
    flex-direction: column;
    gap: 20px;
  }

  .video-card iframe,
  lite-youtube {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .content-grid {
    flex-direction: column;
  }

  .main-column, .site-sidebar {
    width: 100%;
	max-width: fit-content;
  }

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

  .promo-banner {
    text-align: center;
    padding: 40px 20px;
  }

  .promo-banner .btn-cta {
    margin-top: 16px;
  }

  .match-table th,
  .match-table td {
    font-size: 14px;
    padding: 6px;
  }

  .category-scroll-wrapper .scroll-btn {
    display: none;
  }
}

/* АРХИВ */
.news-grid.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 60px;
  column-gap:20px;
}
.news-grid.one-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}


@media (max-width:768px) {

.news-grid.two-columns {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 60px;
  column-gap:20px;
}
}

/* Категории */
.content-body {
    background: var(--color-light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
}

/* === SAIDI BANNERS — фикс отображения в сайдбаре === */
/* Охватываем типовые контейнеры сайдбара темы */
.sidebar .saidi-banners-wrapper,
.widget-area .saidi-banners-wrapper,
#secondary .saidi-banners-wrapper,
.widget .saidi-banners-wrapper {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 12px 0 !important;
  padding: 0 !important;
}

.sidebar .saidi-banner,
.widget-area .saidi-banner,
#secondary .saidi-banner,
.widget .saidi-banner {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  padding: 0 !important;
  transform: none !important;
}

.sidebar .saidi-banner:hover,
.widget-area .saidi-banner:hover,
#secondary .saidi-banner:hover,
.widget .saidi-banner:hover {
  transform: none !important;
  box-shadow: none !important;
}

.sidebar .saidi-banner a,
.widget-area .saidi-banner a,
#secondary .saidi-banner a,
.widget .saidi-banner a {
  display: block !important;
}

.sidebar .saidi-banner img,
.widget-area .saidi-banner img,
#secondary .saidi-banner img,
.widget .saidi-banner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important; /* чтобы не резало */
  border-radius: 8px !important;
}

/* На узких экранах — тоже один столбец без «растяжения» */
@media (max-width: 768px) {
  .sidebar .saidi-banners-wrapper,
  .widget-area .saidi-banners-wrapper,
  #secondary .saidi-banners-wrapper,
  .widget .saidi-banners-wrapper {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}


/* HERO фон: тянем картинку как у постов + плотный градиент */
.hero-container {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important; /* можно заменить на contain, если нужно как было */
  position: relative;
  overflow: hidden;
}
.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
  /* более тёмный градиент поверх изображения */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.65) 100%),
    radial-gradient(circle at right 20% top 20%, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.8) 85%);
  z-index: 2;
  pointer-events: none;
}
/* контент поверх */
.hero-content { position: relative; z-index: 3; }

/* хлебные крошки под заголовком, компактнее */
.breadcrumbs.breadcrumbs--hero {
  margin-top: 14px;
  opacity: .9;
}

/* на мобильных — фон чуть «собираем» */
@media (max-width: 768px) {
  .hero-container { background-position: center top !important; }
}
