/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #111;
  background-image: url('images/backgrounds/falling-chips.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f0f0f0;
  padding: 0;
}

/* Header */
.site-header {
  background: #0c0c0c;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #ffa500;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-combo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  filter: drop-shadow(0 0 4px #ff9900);
}

.logo-text {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffcc00, #ff9900);
  -webkit-background-clip: text;
  color: #ffd700;
  text-shadow: 0 0 4px #000;
}

.main-nav a {
  margin-left: 24px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #ff9900;
  transition: width 0.3s;
}

.main-nav a:hover {
  color: #ff9900;
}

.main-nav a:hover::after {
  width: 100%;  
}

/* Desktop-menyn synlig som standard */
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Section layout */
.section {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 60px 20px;
  max-width: 1200px;
  margin: 50px auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.top-casinos-title {
  font-size: 2.5rem;
  color: #ffd700;
  text-transform: uppercase;
}

.section-intro {
  font-size: 1.2rem;
  color: #e0e0e0;
  line-height: 1.7;
  margin-top: 15px;
}

/* Cards */
.casino-card {
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  border: 0px solid #ff9900;
  border-radius: 16px;
  padding: 0px;
  margin-bottom: -50px;
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
  gap: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-wrap: wrap;
  transform: scale(0.7); /* Mindre initial nedskalning */
  transform-origin: top center;
  
}

.casino-card:hover {
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

.logo-wrapper {
  position: relative;
  display: block;
}

.logo-section {
  width: 300px;
  height: 180px;
  background: #000;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 2px solid transparent;
  background: 
    linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, #ffc107, #ff9800) border-box;
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(255, 204, 0, 0.4);
  position: relative;
  z-index: 0;
}

.logo-section img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #ffffff44, #00000011),
              linear-gradient(135deg, #ff4e4e, #b30000);
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.5),
    0 0 20px rgba(255, 0, 0, 0.4) inset;
  color: white;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: transform 0.2s ease;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.badge.new-badge {
  background: radial-gradient(circle at top left, #ffffff33, #00000011),
              linear-gradient(135deg, #3cff00, #4A5CFF);
  box-shadow:
    0 0 10px rgba(80, 255, 80, 0.5),
    0 0 20px rgba(80, 255, 80, 0.3) inset;
}

.info-section {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #f0f0f0;
}

.cta-section {
  margin-top: auto;
}

.info-section h3 {
  font-size: 1,0rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.extra-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 220px; /* Fixerat bred för att aldrig variera */
  flex-shrink: 0;
  gap: 12px;
     font-weight: 600;
}

.extra-features p {
  margin: 0;
  font-size: 0,9rem;
  display: flex;
  align-items: center;
}

.license-block {
  display: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 1rem;
}

.license-title {
  display: none;
  font-weight: 600;
}

.license-icon {
  display: none;
  width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
  padding: 6px;
  box-shadow:
    0 0 12px rgba(255, 204, 0, 0.4),
    inset 0 0 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.green-check {
  color: green;
  font-weight: bold;
  margin-right: 5px;
}

.rating {
  background: #28a745;
  color: white;
  font-weight: bold;
  margin-bottom: 10px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.features li {
  margin-bottom: 6px;
  font-size: 1.0rem;
   font-weight: 600;
}

.terms {
  font-size: 0.7rem;
  color: #aaa;
}

.cta-section {
  flex-shrink: 0;
}

.play-btn {
  display: inline-block;
  background: #28a745;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s ease;
}

.play-btn:hover {
  background: #218838;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #ccc;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  margin-top: 60px;
  border-top: 1px solid #333;
}

footer a {
  color: #ff9900;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }

  .menu-toggle::before {
    content: "☰";
    font-size: 28px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .main-nav {
    display: none; /* Göm menyn på mobil som standard */
    flex-direction: column;
    background: #0c0c0c;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    z-index: 999;
    border-top: 2px solid #ff9900;
  }

  .main-nav.active {
    display: flex;
  }

  .logo-combo {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo-icon {
    max-width: 32px;
    height: auto;
    filter: drop-shadow(0 0 4px #e67e22);
  }

  .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(to right, #ff8c00, #ffa500);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  }

  .section {
    padding: 40px 16px;
    box-sizing: border-box;
  }

  .casino-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0px;
    margin-bottom: -170px;
    box-sizing: border-box;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .logo-section {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  .info-section,
  .cta-section,
  .extra-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-top: 12px;
  }

  .info-section h3 {
    font-size: 1rem;
  }

  .features li {
    font-size: 0,9rem;
  }

  .play-btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 1rem;
  }

  .trust-row,
  .trust-center,
  .trust-item {
    width: 100%;
    box-sizing: border-box;
  }

  .trust-item {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
  }

  .trust-item img {
    width: 24px;
    height: 24px;
  }

  .trust-item a {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
  }

  .trust-item a:hover {
    text-decoration: underline;
  }
}

/* Justera loggornas storlek för att göra alla banners lika stora */
.logo-section img {
  width: 350px;     /* Anpassa till önskad bredd */
  height: 150px;     /* Anpassa till önskad höjd */
  object-fit: contain; /* Gör så att bilden behåller sina proportioner */
  display: block;
  margin: 0 auto;
}

