/* Global Styles */
:root {
  --color-primary: #2C3E50;
  /* Midnight Blue */
  --color-secondary: #A7C7E7;
  /* Powder Blue */
  --color-accent: #F1C40F;
  /* Gold Accent */
  --color-neutral: #F8F8F8;
  /* Ivory */
  --color-text: #333333;
  /* Charcoal */
  --color-muted: #7F8C8D;
  /* Slate Gray */
  --color-danger: #C0392B;
  /* Deep Crimson */
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-neutral);
  color: var(--color-text);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header container styles */
.header-container {
  /* Center the header horizontally and give it a max width */
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;

  /* Use flex to place logo on the left and menu on the right */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

/* Logo */
.logo-link {
  display: inline-block;
}

.site-logo {
  max-height: 40px;
  /* Adjust as needed */
  height: auto;
}

/* Main navigation menu */
.main-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  /* Space between menu items */
  margin: 0;
  padding: 0;
}

.main-menu li a {
  text-decoration: none;
  color: #fff;
  /* Text color */
  font-weight: 500;
  /* Slightly bold */
  transition: color 0.2s ease;
}

.main-menu li a:hover {
  color: #c00;
  /* Hover color (red, for example) */
}

/* Optional header background & border */
header {
  background-color: var(--color-primary);
  border-bottom: 1px solid var(--color-muted);
}

/* Example responsive rule for smaller screens */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-menu {
    margin-top: 10px;
    flex-wrap: wrap;
    /* or stack items vertically if desired */
  }
}


/* Content Styles in a Single Class */
.content {
  /* Make content narrower and centered */
  max-width: 800px;
  margin: 40px auto;
  /* 40px top/bottom margin, auto left/right */
}

/* Typography within .content */
.content p,
.content h2,
.content h3,
.content blockquote,
.content ul,
.content li {
  margin: 0 0 20px;
  line-height: 1.6;
}

.content h2 {
  color: #7D1C4A;
  border-bottom: 2px solid #2C3E50;
  padding-bottom: 10px;
  margin-top: 40px;
}

.content h3 {
  color: #3D8D7A;
  margin-top: 20px;
}

.content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.content a:hover {
  color: var(--color-secondary);
}

.content blockquote {
  border-left: 4px solid #2C3E50;
  padding-left: 15px;
  font-style: italic;
  color: #555;
}

/* Footer Styles */
/* ===== FOOTER STYLES ===== */

/* ===== FOOTER STYLES (Dark Blues/Grey) ===== */
/* ===== FOOTER STYLES WITH HOVERS & TRANSITIONS ===== */

/* Subtle gradient from darker blue to slightly lighter */
.site-footer {
  background: linear-gradient(135deg, #1C2C36 0%, #2F3C49 100%);
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  padding: 2rem 1rem 0;
}

/* Top row - multi-column layout */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

/* Each column */
.footer-col {
  flex: 1;
  min-width: 150px;
}

.footer-col--wide {
  flex: 2;
  /* wider column for logo & text */
}

/* Footer logo */
.footer-logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 1rem;
}

/* Column headings */
.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #FFF;
  /* Light accent color for headings */
}

/* Link lists */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: 0.4rem 0;
}

/* Make links stand out, with a smooth hover transition */
.footer-col a {
  text-decoration: none;
  color: #FFFFFF;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-col a:hover {
  color: #c00;

}

/* Middle row: responsible gaming logos */
.footer-middle {
  margin-bottom: 1.5rem;
}

.footer-middle p {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.responsible-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.responsible-logos img {
  height: 26px;
  object-fit: contain;
}

/* Bottom row: narrower bar, sponsor, to-top link */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  /* subtle overlay to differentiate */
  color: #FFFFFF;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.sponsor-logo {
  height: 16px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Scroll-to-top button */
.scroll-to-top {
  background-color: #FFFFFF;
  color: #1C2C36;
  border-radius: 50%;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #FFCF99;
  color: #1C2C36;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
  }

  .footer-col {
    flex: 0 0 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}




/* Responsive Styles */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    width: 95%;
  }

  .content {
    width: 95%;
    max-width: 600px;
    /* You can reduce this if you want it even narrower on mobile */
    margin: 20px auto;
  }

  .content h2 {
    font-size: 1.5em;
  }
}

/* Example gradient background for the block */
.paysafecard-block {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  padding: 40px 0;
  color: #ffffff;
}

/* Use flex to position H1 on the left and image on the right */
.paysafecard-block .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Article title styling */
.paysafecard-block .article-title {
  font-size: 2rem;
  margin: 0;
}

/* Wrapper for the Paysafecard image with white background */
.paysafecard-logo-wrapper {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  /* optional */
  /* Optionally, add a border or shadow:
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  */
}

/* Image styling */
.paysafecard-logo {
  max-width: 200px;
  /* Adjust as needed */
  height: auto;
}

/* Example responsive rules */
@media (max-width: 768px) {
  .paysafecard-block .container {
    flex-direction: column;
    text-align: center;
  }

  .paysafecard-logo-wrapper {
    margin-top: 20px;
  }
}




/* Card container */
.casino-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: 5px;
  padding: 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Red ranking badge in top-left corner */
.ranking-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #BF1D1D;
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 5px;
  font-size: 1.2rem;
}

/* Left column: logo + text + advantages + icons */
.casino-left {
  display: flex;
  flex: 1;
  /* Let it grow/shrink */
  align-items: flex-start;
  gap: 1rem;
}

/* Black square for the casino logo */
.casino-logo {
  width: 80px;
  height: 80px;
  background-color: #000;
  /* Just to show the black box behind the logo if needed */
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Scale the image to fill the black square nicely */
.casino-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Main info text */
.casino-info {
  display: flex;
  flex-direction: column;
}

.casino-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.2rem;
}

.welcome-bonus {
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonus-amount {
  font-size: 1rem;
  font-weight: bold;
  color: #BF1D1D;
  /* Red to match button color */
  margin-top: 0.3rem;
}

.review-link {
  font-size: 0.9rem;
  text-decoration: underline;
  color: #007BFF;
  cursor: pointer;
  margin-top: 0.4rem;
}

/* Vorteile (advantages) list */
.casino-advantages {
  list-style: none;
  margin-top: 0.6rem;
}

.casino-advantages li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

/* Game icons row */
.game-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.game-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Right column: button + payout details + acceptance note */
.casino-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  margin-left: 1.5rem;
  /* space from left column */
}

.play-button {
  background: #BF1D1D;
  /* Big red CTA */
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.play-button:hover {
  /* Example hover style */
  background-color: #fff;
  /* Change background to white on hover */
  color: #BF1D1D;
  /* Text color switches to the red used for the button */
  border: 1px solid #BF1D1D;
  /* Red border when hovered */
  cursor: pointer;
  /* Show pointer cursor (helpful if not set already) */
  transition: all 0.3s ease;
  /* Smooth transition for color changes */
}

.payout-details {
  display: flex;
  gap: 1.5rem;
}

.payout-item {
  text-align: center;
  font-size: 0.85rem;
  color: #333;
}

.payout-item img {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 5px;
}

.payout-item span {
  font-weight: bold;
}

.acceptance-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #333;
}

.acceptance-note img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border: 1px solid #ccc;
}

/* Responsive: stack right column below left on smaller screens */
/* Make the card fully responsive on mobile */
@media (max-width: 768px) {
  .casino-card {
    /* Let the container flex-wrap or re-stack */
    flex-wrap: wrap;
    padding: 1rem;
  }

  /* Make left and right columns take full width */
  .casino-left,
  .casino-right {
    width: 100%;
    margin-left: 0;
    margin-top: 1rem;
    align-items: flex-start;
    /* So items align nicely on the left */
  }

  /* If you want to center the play button on mobile, you can do so here */
  .casino-right {
    align-items: center;
  }

  /* Possibly make the .casino-logo a bit smaller on mobile if needed */
  .casino-logo {
    width: 60px;
    height: 60px;
  }

  /* Scale the game icons or spacing if needed */
  .game-icons img {
    width: 20px;
    height: 20px;
  }
}


.faq-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 15px;
}

/* Hauptüberschrift */
h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* Einzelner FAQ-Punkt */
.faq-item {
  background: linear-gradient(135deg, #1e3c59, #5f83a2);
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Frage-Bereich */
.faq-question {
  position: relative;
  padding: 18px 50px 18px 20px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

/* Titel-Optik leicht hervorgehoben */
.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Pfeil-Icon als CSS:after */
.faq-question::after {
  content: "▶";
  /* Unicode oder eigenes Icon */
  position: absolute;
  right: 20px;
  top: 50%;
  /* Positioniert oben in der Mitte */
  transform: translateY(-50%);
  /* Verschiebt Pfeil exakt ins vertikale Zentrum */
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

/* Wenn das FAQ-Item geöffnet ist, dreht sich das Pfeil-Symbol */
.faq-item.expanded .faq-question::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Antwort */
.faq-answer {
  display: none;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
  color: white;
}

/* Geöffnete Antwort anzeigen */
.faq-item.expanded .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
  /* sanfte Einblend-Animation */
}

/* Keyframes für Einblendung */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.pros-cons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.pros,
.cons {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
}

h3 {
  text-align: center;
  margin-bottom: 10px;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 10px;
  font-size: 16px;
}

.pros {
  border-left: 5px solid green;
}

.cons {
  border-left: 5px solid red;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pros-cons-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Modern Table Style */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

/* Styling the table */
table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, #1e3c59, #5f83a2);
  color: white;
  border-radius: 8px;
  overflow: hidden;
}

/* Table headers and cells */
th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  word-wrap: break-word;
  /* Allow text to break into multiple lines */
}

/* Header row styling */
th {
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  text-transform: uppercase;
}

/* Hover effect for rows */
tr:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile styles */
@media (max-width: 768px) {
  table {
    font-size: 14px;
    /* Reduce font size for better readability on smaller screens */
  }

  th,
  td {
    padding: 10px;
  }

  th {
    font-size: 13px;
  }

  /* Make the table horizontally scrollable */
  .table-container {
    -webkit-overflow-scrolling: touch;
  }

  /* Sticky header for better accessibility on mobile */
  thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.1);
    /* Same as header */
  }
}


/* Step-by-Step Guide Block Style */
.step-guide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  /* Space between steps */
  margin-top: 20px;
}

/* Individual step styling */
.step {
  flex: 1 1 calc(33.333% - 20px);
  /* Ensures each step takes 1/3 of the container on larger screens */
  background: linear-gradient(135deg, #1e3c59, #5f83a2);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

/* Step number style */
.step-number {
  font-size: 24px;
  font-weight: bold;
  color: white;
  /* Dark color for step number */
  margin-bottom: 10px;
}

/* Text styling for the step description */
.step-text {
  font-size: 16px;
  color: white;
  line-height: 1.6;
}

/* Hover effect for step (optional) */
.step:hover {
  transform: translateY(-5px);
  /* Adds a slight hover effect */
}

/* Responsive styles */
@media (max-width: 768px) {
  .step {
    flex: 1 1 100%;
    /* On mobile, steps should take full width */
    margin-bottom: 20px;
  }

  .step-number {
    font-size: 20px;
    /* Reduce step number size */
  }

  .step-text {
    font-size: 14px;
    /* Adjust text size for smaller screens */
  }
}

/* === TOP CASINO LIST STYLES === */

/* Section title над топом */
.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #212936;
  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;
  }
}