/*
Theme Name: Nomad Affiliate Theme
Author: v0
Version: 1.0
*/

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* --- Переменные --- */
:root {
  --header-footer-bg: #1d2158;
  --main-bg: #2d3447;
  --button-accent-bg: #96a5d1;
  --button-bonus-bg: #eaae16;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #adb5bd;
  --border-color: #495057;
  --card-bg: #252a3a;
}

/* --- Базовые стили --- */
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--main-bg);
  color: var(--text-light);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-light);
}

a {
  color: var(--button-accent-bg);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-light);
}

.container {
  max-width: 1200px;
}

.section-padding {
  padding: 60px 0;
}

.block-highlight {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Кнопки --- */
.btn-nomad {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
}

.btn-nomad-primary {
  background-color: var(--button-bonus-bg);
  color: var(--text-dark);
}

.btn-nomad-primary:hover {
  background-color: #ffc107;
  transform: translateY(-2px);
}

.btn-nomad-secondary {
  background-color: var(--button-accent-bg);
  color: var(--text-dark);
}

.btn-nomad-secondary:hover {
  background-color: #b0c4de;
  transform: translateY(-2px);
}

/* --- Header --- */
.header {
  background-color: var(--header-footer-bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
  max-height: 30px;
  margin-left: 10%;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--button-bonus-bg);
}

.header-buttons .btn {
  margin-left: 10px;
}

/* --- Hero --- */
.hero-section {
  background: linear-gradient(to right, var(--main-bg) 50%, transparent 100%), url("/nomad-casino-banner.avif") no-repeat;
  background-size: cover;
  padding: 100px 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 20px 0 30px;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  border-radius: 5px;
}
.breadcrumb-item a {
  color: var(--button-accent-bg);
}
.breadcrumb-item.active {
  color: var(--text-muted);
}

/* --- Advantages --- */
.advantage-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.advantage-card .icon {
  font-size: 2.5rem;
  color: var(--button-bonus-bg);
  margin-bottom: 15px;
}

/* --- Tournaments --- */
.tournament-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.tournament-card .card-body {
  padding: 25px;
}
.tournament-card .prize-pool {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--button-bonus-bg);
}
.tournament-card .timer {
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 500;
}

/* --- Mirrors Table --- */
.mirrors-section .table {
  background-color: var(--card-bg);
  color: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
}
.mirrors-section .table thead th {
  background-color: var(--header-footer-bg);
  color: var(--text-light);
  border-bottom: none;
}
.mirrors-section .table td,
.mirrors-section .table th {
  padding: 15px;
  vertical-align: middle;
  border-color: var(--border-color);
}
.mirrors-section .table tbody tr:hover {
  background-color: #3a4258;
}
#current-time {
  font-weight: bold;
  color: var(--button-bonus-bg);
}

/* --- Content Block --- */
.content-block {
  line-height: 1.8;
}
.content-block h2 {
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 20px;
  border-left: 4px solid var(--button-bonus-bg);
  padding-left: 15px;
}
.content-block h3 {
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 15px;
}
.content-block p {
  margin-bottom: 15px;
}
.content-block ul,
.content-block ol {
  padding-left: 20px;
  margin-bottom: 15px;
}
.content-block li {
  margin-bottom: 10px;
}
.content-block table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}
.content-block th,
.content-block td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}
.content-block th {
  background-color: var(--card-bg);
}

/* --- Author Block --- */
.author-block {
  display: flex;
  align-items: center;
  gap: 20px;
}
.author-block img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Footer --- */
.footer {
  background-color: var(--header-footer-bg);
  color: var(--text-muted);
  padding: 40px 0;
}
.footer-logo img {
  max-height: 60px;
  margin-bottom: 20px;
}
.footer h5 {
  color: var(--text-light);
  margin-bottom: 15px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-light);
}
.payment-logos img,
.provider-logos img {
  max-height: 30px;
  margin: 5px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.payment-logos img:hover,
.provider-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.copyright {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* --- Sticky Widget --- */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(45deg, var(--button-bonus-bg), #ff8c00);
  color: var(--text-dark);
  padding: 15px;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.sticky-widget .btn {
  margin-left: 20px;
}

/* --- Slider (Simple) --- */
.slider-container {
  overflow: hidden;
  position: relative;
}
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slider-item {
  flex: 0 0 100%;
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}
.slider-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* --- WordPress-like styles (for confusion) --- */
.wp-block-button__link {
  /* unused */
}
.entry-content,
.page-content {
  /* unused */
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .hero-section {
    background: var(--main-bg);
    text-align: center;
  }
  .header-buttons .btn-nomad-secondary {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .author-block {
    flex-direction: column;
    text-align: center;
  }
  .sticky-widget {
    flex-direction: column;
    text-align: center;
  }
  .sticky-widget .btn {
    margin-left: 0;
    margin-top: 10px;
  }
}
