/*
Theme Name: Legzo Affiliate Theme
Author: v0
Version: 1.0.3
*/

/* --- General Styles & Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Proxima+Nova:wght@400;700&display=swap");

:root {
  --bg-color: #202346;
  --header-footer-bg: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, #282b5a 0%, #25293a 100%);
  --btn-primary-bg: radial-gradient(75% 100% at 50.34% 100%, #2094ff 0%, #0b3ddd 100%);
  --btn-secondary-bg: #ffffff;
  --text-light: #ffffff;
  --text-dark: #333;
  --text-accent: #2094ff;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: #2a2e5e;
}

body {
  font-family: "Proxima Nova", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  padding-bottom: 100px; /* Space for sticky widget */
  overflow-x: hidden;
}

.body-no-scroll {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.content-block {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.content-block:hover {
  transform: translateY(-5px);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--text-light);
}

.btn-primary:hover {
  box-shadow: 0 0 15px #2094ff;
  color: var(--text-light);
}

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

.btn-secondary:hover {
  background: #f0f0f0;
  color: var(--text-dark);
}

/* --- Header --- */
.site-header {
  background: var(--header-footer-bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  max-height: 40px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-navigation a {
  color: var(--text-light);
  font-weight: 700;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Hero Block --- */
.hero-block {
  position: relative;
  color: var(--text-light);
  text-align: center;
  padding: 100px 20px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}

.hero-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 10px 0;
  margin-bottom: 20px;
}

.breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.breadcrumbs a {
  color: #aaa;
}

.breadcrumbs span {
  color: var(--text-light);
}

/* --- Jackpots Block --- */
.jackpot-block {
  text-align: center;
}

.jackpot-amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Mirrors Table --- */
.mirrors-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.mirrors-table th,
.mirrors-table td {
  padding: 15px;
  border: 1px solid var(--border-color);
}

.mirrors-table th {
  background-color: rgba(0, 0, 0, 0.2);
}

.mirrors-table td a {
  font-weight: bold;
}

.mirrors-update-time {
  text-align: right;
  font-size: 14px;
  margin-top: 15px;
  opacity: 0.8;
}

/* --- Live Games --- */
.live-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  background-color: #3a3f7a;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card img {
  max-width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.game-card h4 {
  margin-bottom: 15px;
}

/* --- Demo Game --- */
.demo-game-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.demo-game-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Review Content Block --- */
.review-content-wrapper {
  line-height: 1.8;
}

.review-content-wrapper h1,
.review-content-wrapper h2,
.review-content-wrapper h3,
.review-content-wrapper h4 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.review-content-wrapper p {
  margin-bottom: 1em;
}

.review-content-wrapper ul,
.review-content-wrapper ol {
  margin-bottom: 1em;
  padding-left: 25px;
}

.review-content-wrapper li {
  margin-bottom: 0.5em;
}

.review-content-wrapper table.content-table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  text-align: left;
}

.review-content-wrapper table.content-table th,
.review-content-wrapper table.content-table td {
  padding: 12px;
  border: 1px solid var(--border-color);
}

.review-content-wrapper table.content-table th {
  background-color: rgba(0, 0, 0, 0.2);
}

/* --- Reviews Section --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.review-card {
  background-color: #3a3f7a;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.review-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.review-card-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.review-card-author h5 {
  margin: 0;
}

.review-card-rating {
  color: #ffc107;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  background-color: #202346;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 12px;
  color: var(--text-light);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-accent);
}

#review-success-msg {
  display: none;
  background-color: #198754;
  color: white;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  margin-top: 15px;
}

/* --- Author Block --- */
.author-block {
  display: flex;
  align-items: center;
  gap: 25px;
}

.author-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.author-socials a {
  margin-right: 10px;
  opacity: 0.8;
}
.author-socials a:hover {
  opacity: 1;
}

/* --- Footer --- */
.site-footer {
  background: var(--header-footer-bg);
  padding: 40px 0 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h5 {
  margin-bottom: 15px;
  color: var(--text-light);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: #ccc;
}

.footer-logos img {
  max-height: 30px;
  margin-top: 15px;
  opacity: 0.7;
}

.footer-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: #aaa;
}

/* --- Sticky Widget --- */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--header-footer-bg);
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  animation: slide-up 0.5s 1s forwards;
}

@keyframes slide-up {
  to {
    transform: translateY(0);
  }
}

.sticky-widget-text {
  font-weight: bold;
}

.sticky-widget-text span {
  color: var(--text-accent);
}

.sticky-widget a {
  text-decoration: none;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .main-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 35, 70, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    text-align: center;
    font-size: 1.5rem;
  }

  .burger-menu {
    display: block;
  }

  .burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-buttons .btn-secondary {
    display: none; /* Hide bonus button on mobile header */
  }

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

  .author-block {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .live-games-container {
    overflow-x: auto;
    padding-bottom: 15px;
  }

  .live-games-grid {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 15px;
  }

  .game-card {
    width: 200px;
    flex-shrink: 0;
  }

  .sticky-widget {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Unused Wordpress-like styles */
.wp-block-button__link {
  color: #fff;
}
.elementor-widget-container {
  margin: 0;
}
.post-edit-link {
  display: none;
}
.comment-reply-link {
  font-size: 12px;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
