/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and Layout */
body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: linear-gradient(to bottom, #2a2a2a, #1e1e1e);
  color: #eee;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Limit text width on large screens */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header styles */
.site-header {
  background: linear-gradient(to right, #1c1c1c, #2a2a2a);
  color: #f2f2f2;
  padding: 1rem 0;
  text-align: center;
}

.site-header nav ul {
  list-style: none;
}

.site-header nav ul li {
  display: inline-block;
  margin: 0 1rem;
}

.site-header nav ul li a {
  color: #f2f2f2;
  text-decoration: none;
  font-weight: bold;
}

.site-header nav ul li a:hover {
  color: #d4af37; /* Gold hover */
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #1c1c1c, #2a2a2a);
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #d4af37;
}

.hero-section img {
  width: 35%;
  height: auto;
  border: 3px solid #444;
  border-radius: 5px;
  max-width: 100%;
}

/* Section layout */
.review-section {
  background: #2f2f2f;
  border-radius: 5px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.review-section h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #d4af37;
}

.review-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Modern Table Styling */
.review-section table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 5px;
  overflow: hidden; /* Keep rounded corners on all sides */
  background-color: #262626;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Table header row */
.review-section table thead {
  background: linear-gradient(to right, #3b3b3b, #444);
}

.review-section table thead th {
  color: #d4af37;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

/* Table body rows */
.review-section table tbody tr {
  transition: background 0.3s ease;
}

/* Subtle zebra striping */
.review-section table tbody tr:nth-of-type(even) {
  background: #2c2c2c;
}

/* Hover effect on rows */
.review-section table tbody tr:hover {
  background: #333333;
}

/* Table cells */
.review-section table td {
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid #333;
}

/* Remove bottom border on last row cells for a clean finish */
.review-section table tbody tr:last-child td {
  border-bottom: none;
}

/* Pros and Cons blocks */
.pros-cons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Individual "card"-like styling */
.pros,
.cons {
  flex: 1;
  background: #3b3b3b;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  position: relative;
  min-width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gold accent bar along the top */
.pros:before,
.cons:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #d4af37;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* Hover lift effect */
.pros:hover,
.cons:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.pros h3,
.cons h3 {
  margin-bottom: 0.75rem;
  color: #d4af37;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.pros ul,
.cons ul {
  margin-left: 1.5rem;
  list-style: none;
  padding: 0;
}

.pros ul li,
.cons ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

/* Custom icons for bullet points */
.pros ul li::before {
  content: "✓";
  color: #d4af37;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.cons ul li::before {
  content: "✕";
  color: #d4af37;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Custom bullet list */
.custom-bullet-list {
  list-style: none; 
  margin: 1rem 0;
  padding: 0;
}

.custom-bullet-list li {
  margin: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.custom-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: linear-gradient(to bottom, #d4af37, #b69830);
}

/* Custom numbered list */
.custom-ordered-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  counter-reset: custom-counter;
}

.custom-ordered-list li {
  margin: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
  counter-increment: custom-counter;
}

.custom-ordered-list li::before {
  content: counter(custom-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #d4af37;
  font-weight: bold;
  width: 1.5rem;
  display: inline-block;
  text-align: center;
}

/* Image styling in section content */
.review-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border: 2px solid #444;
  border-radius: 5px;
}

/* Footer styles */
/* Footer container */
.site-footer {
  background: linear-gradient(to right, #1c1c1c, #2a2a2a);
  color: #f2f2f2;
  padding: 1rem 0;
  /* Use flex so it’s easy to rearrange content responsively */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* Ensures text is centered on all screen sizes */
}

/* Logos container: wraps logos in a flexible row that can wrap on narrow screens */
.footer-logos {
  display: flex;
  flex-wrap: wrap;    /* Allows logos to drop to the next line if necessary */
  gap: 1rem;         /* Spacing between logos */
  margin-bottom: 1rem;
  justify-content: center;
}

/* Logo images */
.footer-logos a img {
  width: 80px;
  margin: 0 10px;
  transition: transform 0.3s ease;  /* Adds a smooth hover zoom (optional) */
}

/* Hover effect for logos (optional) */
.footer-logos a:hover img {
  transform: scale(1.1);  /* Slight zoom on hover */
  filter: brightness(1.2);
}

/* Paragraph styling in footer */
.site-footer p {
  margin: 0.5rem 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  .footer-logos a img {
    width: 60px;
  }
  .site-footer {
    /* Extra top & bottom padding for smaller viewports if desired */
    padding: 1.5rem 2rem;
  }
}


/* Responsive design: no horizontal scroll */
@media (max-width: 768px) {
  .pros-cons {
    flex-direction: column;
  }

  .site-header nav ul li {
    display: block;
    margin: 0.5rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section img {
    width: 80%; /* On small screens, let the image be larger relative to screen width */
  }

  main {
    padding: 1rem;
  }
}



/* FAQ Styles */
.faq-section {
  background: #2f2f2f;
  border-radius: 5px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.faq-section h2 {
  color: #d4af37;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #3b3b3b;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Decorative top bar on each FAQ item */
.faq-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #d4af37;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.faq-question {
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.faq-answer {
  line-height: 1.6;
  color: #eee;
}


  /* === TOP CASINO LIST STYLES === */

/* Section title над топом */
.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #d4af37;
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Wrapper для списку казино */
.casino-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Карточка казино */
.casino-card {
  position: relative;              /* для бейджа rank */
  display: flex;
  flex-direction: row;
  background: #212936;             /* фон карточки */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  border-left: 4px solid #4e80ee;  /* акцентна лінія зліва */
  padding: 15px;                   /* відступи всередині карточки */
}

/* Бейдж з номером (rank) */
.rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: #4e80ee;
  color: #ffffff;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Колонка з логотипом */
.card-image {
  flex: 0 0 20%;         /* ~20% ширини карточки на десктопі */
  max-width: 120px;      /* компактний логотип */
  min-width: 120px;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin: 0 auto;        /* центр на мобілці */
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Основний контент карточки (назва, рейтинг, оффер, кнопки) */
.card-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 180px 200px; /* casino-info | offers | actions */
  align-items: center;
  padding: 1rem;
  gap: 2rem;
}

/* Блок з назвою казино та рейтингом */
.casino-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.casino-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
}

.rating {
  margin-top: 0.25rem;
  display: flex;
}

.rating .star {
  color: #FFD700;
  font-size: 1rem;
  margin-right: 2px;
}

/* Оффер (бонуси + фріспіни) */
.offers {
  width: 180px;
  padding: 1rem 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(140, 172, 229, 0.1);
  border: 1px solid #4e80ee;
  border-radius: 4px;
  justify-self: center;
}

.offers .bonus,
.offers .freespins {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.offers .bonus::before,
.offers .freespins::before {
  content: attr(data-label);
  font-size: 1.25rem;
  font-weight: bold;
  color: #4e80ee;
  margin-bottom: 0.25rem;
}

.offers .amount {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

/* Блок з кнопками та дисклеймером */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-self: center;
}

.btn-primary,
.btn-secondary {
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(45deg, #4e80ee, #8cace5);
  color: #ffffff;
  animation: earthquake 4s ease-in-out infinite;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #8cace5, #4e80ee);
}

.btn-secondary {
  width: 160px;
  padding: 0.75rem;
  font-size: 0.85rem;
  background: #212936;
  color: #8cace5;
  border: 1px solid #8cace5;
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.disclaimer {
  font-size: 0.75rem;
  color: #ffffff;
  margin-top: 0.5rem;
  text-align: center;
}

/* Анімація кнопки Play Now */
@keyframes earthquake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  2%   { transform: translate(-2px, 1px) rotate(-1deg); }
  4%   { transform: translate(-2px, -1px) rotate(1deg); }
  6%   { transform: translate(2px, 1px) rotate(0deg); }
  8%   { transform: translate(2px, -1px) rotate(1deg); }
  10%  { transform: translate(-2px, 1px) rotate(-1deg); }
  11%, 100% { transform: translate(0, 0) rotate(0deg); }
}

/* === RESPONSIVE === */

/* Десктоп: зсуваємо назву казино та рейтинг праворуч */
@media (min-width: 768px) {
  .casino-info {
    margin-left: 75px;
    text-align: left;
  }

  .card-image {
    max-width: 200px;
    margin-right: 20px; /* відступ між логотипом і контентом */
  }
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .casino-info {
    align-items: center;
    text-align: center;
    margin-left: 0;
  }

  .card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto 1rem;
  }

  .offers {
    width: 80%;
    margin: 0 auto 1rem;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 48%;
  }

  .disclaimer {
    order: 1;
    width: 100%;
    margin-top: 0.75rem;
  }
}
