/* Global Styles */
:root {
  --color-primary: #1a2332;
  --color-secondary: #2d3e50;
  --color-accent: #88a880;
  --color-light: #f8f4e6;
  --color-text: #1a2332;
  --color-muted: #5a6c7d;
  --color-white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 15px rgba(26, 35, 50, 0.12);
  --shadow-lg: 0 8px 25px rgba(26, 35, 50, 0.15);
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8f4e6 0%, #ebe5d4 100%);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden; /* ADD THIS */
}

/* ADD THIS NEW RULE */
html {
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Modern Header Styles */
header {
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.site-logo {
  max-height: 55px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-menu li {
  position: relative;
}

.main-menu li a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-size: 1.05em;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
  overflow: hidden;
}

.main-menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(136, 168, 128, 0.3), transparent);
  transition: left 0.5s ease;
}

.main-menu li a:hover::before {
  left: 100%;
}

.main-menu li a:hover {
  background: rgba(136, 168, 128, 0.15);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Content Styles */
.content {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

.content h1 {
  color: var(--color-primary);
  font-size: 2.8em;
  font-weight: 700;
  margin: 1.5em 0 0.8em 0;
  line-height: 1.2;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--color-accent), var(--color-secondary)) 1;
  padding-bottom: 0.5em;
  position: relative;
}

.content a {
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.content a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-secondary);
}

.content h1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(136, 168, 128, 0.4);
}

.content h2 {
  color: var(--color-primary);
  font-size: 2.2em;
  font-weight: 600;
  margin: 1.5em 0 0.8em 0;
  line-height: 1.3;
  padding-left: 1em;
  position: relative;
}

.content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  border-radius: 3px;
  box-shadow: 2px 0 8px rgba(136, 168, 128, 0.3);
}

.content h3 {
  color: var(--color-secondary);
  font-size: 1.6em;
  font-weight: 600;
  margin: 1.3em 0 0.7em 0;
  line-height: 1.4;
  position: relative;
  padding-left: 0.5em;
}

.content h3::before {
  content: '▸';
  position: absolute;
  left: -0.8em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 0.8em;
}

.content h4 {
  color: var(--color-secondary);
  font-size: 1.3em;
  font-weight: 500;
  margin: 1.1em 0 0.6em 0;
  line-height: 1.4;
}

.content p {
  color: var(--color-primary);
  font-size: 1.08em;
  line-height: 1.8;
  margin: 0 0 1.3em 0;
  text-align: justify;
}

.content ul {
  margin: 1.5em 0;
  padding-left: 2.2em;
  list-style: none;
}

.content ul li {
  color: var(--color-primary);
  font-size: 1.08em;
  line-height: 1.8;
  margin-bottom: 1em;
  position: relative;
  padding-left: 0.5em;
}

.content ul li::before {
  content: "●";
  color: var(--color-accent);
  font-weight: bold;
  display: inline-block;
  width: 1.2em;
  margin-left: -1.7em;
  font-size: 0.8em;
}

.content ol {
  margin: 1.5em 0;
  padding-left: 2.5em;
  list-style: none;
  counter-reset: item;
}

.content ol li {
  color: var(--color-primary);
  font-size: 1.08em;
  line-height: 1.8;
  margin-bottom: 1em;
  counter-increment: item;
  position: relative;
  padding-left: 0.5em;
}

.content ol li::before {
  content: counter(item);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  font-weight: 700;
  display: inline-block;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  text-align: center;
  border-radius: 50%;
  margin-left: -2.8em;
  margin-right: 0.5em;
  font-size: 0.85em;
  box-shadow: 0 2px 6px rgba(136, 168, 128, 0.3);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #f9f9f9 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border-radius: 12px;
  display: table;
}

.content table th {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-light);
  padding: 1.2em 1.2em;
  text-align: left;
  font-weight: 600;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--color-accent);
}

.content table td {
  padding: 1em 1.2em;
  border-bottom: 1px solid rgba(136, 168, 128, 0.2);
  color: var(--color-primary);
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.content table tr:hover {
  background: linear-gradient(90deg, rgba(136, 168, 128, 0.08) 0%, rgba(136, 168, 128, 0.15) 100%);
}

.content table tr:last-child td {
  border-bottom: none;
}

.content img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 2em 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transition: width 0.3s ease;
}

.content a:hover::after {
  width: 100%;
}

/* Modern Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  color: var(--color-white);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  margin-top: 80px;
  position: relative;
  box-shadow: 0 -4px 20px rgba(26, 35, 50, 0.15);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-light) 50%, var(--color-accent) 100%);
  box-shadow: 0 2px 10px rgba(136, 168, 128, 0.4);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmin(220px, 1fr));
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.footer-col {
  min-width: 0;
}

.footer-col--wide {
  grid-column: span 2;
}

.footer-logo {
  max-width: 190px;
  height: auto;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.footer-col p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

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

.footer-col li {
  margin: 0.7rem 0;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  padding-left: 20px;
}

.footer-col a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--color-accent);
}

.footer-col a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-col a:hover {
  color: var(--color-accent);
  transform: translateX(8px);
}

.footer-middle {
  padding: 2.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  border-top: 1px solid rgba(136, 168, 128, 0.25);
  border-bottom: 1px solid rgba(136, 168, 128, 0.25);
}

.footer-middle p {
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--color-accent);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.responsible-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.responsible-logos img {
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsible-logos img:hover {
  opacity: 1;
  transform: scale(1.15) translateY(-3px);
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(136, 168, 128, 0.4));
}

.footer-bottom {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 0;
}

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

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.sponsor-logo {
  height: 20px;
  margin-left: 0.6rem;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

/* Paysafecard Block */
.paysafecard-block {
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  padding: 60px 0;
  color: var(--color-white);
  margin-bottom: 50px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.paysafecard-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(136, 168, 128, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.paysafecard-block .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.paysafecard-block .article-title {
  font-size: 2.8rem;
  margin: 0;
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.paysafecard-logo-wrapper {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(136, 168, 128, 0.3);
}

.paysafecard-logo-wrapper:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 35px rgba(136, 168, 128, 0.4);
  border-color: var(--color-accent);
}

.paysafecard-logo {
  max-width: 240px;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
  }

  .main-nav {
    position: static;
    width: 100%;
    background: transparent;
    padding: 0;
    overflow: visible;
  }

  .main-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .main-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(136, 168, 128, 0.2);
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu li a {
    padding: 18px 25px;
    border-radius: 0;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
  }

  .main-menu li a:hover {
    background: rgba(136, 168, 128, 0.2);
    transform: translateX(5px);
  }

  .container {
    width: 95%;
  }

  .content {
    width: 95%;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
  }

  .content h1 {
    font-size: 2.2em;
  }

  .content h2 {
    font-size: 1.7em;
  }

  .content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
  }

  .content table thead {
    display: table-header-group;
  }

  .content table tbody {
    display: table-row-group;
  }

  .content table th,
  .content table td {
    white-space: nowrap;
    min-width: 130px;
    font-size: 0.92em;
    padding: 0.8em 1em;
  }

  .content table th {
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.98em;
  }

  .paysafecard-block {
    padding: 40px 0;
  }

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

  .paysafecard-block .article-title {
    font-size: 2rem;
  }

  .paysafecard-logo-wrapper {
    margin-top: 25px;
  }

  .paysafecard-logo {
    max-width: 200px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 2rem;
  }

  .footer-col--wide {
    grid-column: span 1;
  }

  .footer-middle {
    padding: 2rem 0;
  }

  .responsible-logos {
    gap: 2rem;
    justify-content: center;
  }

  .responsible-logos img {
    height: 32px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .content h1 {
    font-size: 1.8em;
  }

  .content h2 {
    font-size: 1.5em;
  }

  .content h3 {
    font-size: 1.3em;
  }

  .paysafecard-block .article-title {
    font-size: 1.7rem;
  }

  .content table th,
  .content table td {
    min-width: 110px;
    font-size: 0.88em;
    padding: 0.7em 0.8em;
  }
}
















/* 1) Casino TOP Styles */

/* 2) Wrapper */
.casino-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 3) Card */
.casino-card {
  position: relative;              /* for rank badge */
  display: flex;
  flex-direction: row;
  background: #212936;             /* card background */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  border-left: 4px solid #4e80ee;  /* accent border */
}

/* 4) Rank badge */
.rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: #4e80ee;             /* primary accent */
  color: #ffffff;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* 5) Image column and responsive tweaks */
.card-image {
  flex: 0 0 20%;                   /* ~20% of card width */
  max-width: 240px;                /* desktop limit */
  min-width: 120px;                /* mobile limit */
  aspect-ratio: 1 / 1;             /* square */
  background: #f7f7f7;             /* neutral frame */
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto 1rem;
  }
}

/* 6) Main content area - FIXED: Using CSS Grid for consistent layout */
.card-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 180px 200px; /* casino-info | offers | actions */
  align-items: center;
  padding: 1rem;
  gap: 2rem;
}

/* 7) Casino info (title + rating) */
.casino-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow text to wrap/truncate if needed */
}
.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;
}

/* 8) Offers block - FIXED: Removed auto margins */
.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; /* Center within its grid cell */
}
.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;
}

/* 9) Actions (buttons + disclaimer) - FIXED: Positioned in grid */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-self: center; /* Center within its grid cell */
}
.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;
}

/* 10) Shake animation */
@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); }
}

/* 11) Mobile adaptation - FIXED: Better responsive grid */
@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
  }
  .card-content {
    display: flex; /* Switch back to flexbox on mobile */
    flex-direction: column;
    gap: 1rem;
  }
  .casino-info {
    align-items: center;
    text-align: center;
  }
  .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;
  }
}

/* Section title */
.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #212936;
  text-align: center;
  margin: 2rem 0 1rem;
}
