/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f0f10;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(10, 10, 12, 0.96);
  border-bottom: 1px solid #262626;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

/* Logo */
.logo {
  display: block;
  max-width: 220px;
  height: auto;
}

/* Optional nav if you add it later */
nav {
  flex: 1;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  list-style: none;
  gap: 18px;
}

nav ul li a {
  color: #d67fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav ul li a:hover {
  color: #ffffff;
  border-color: #d67fff;
}

/* Main layout */
main {
  flex: 1;
  width: 100%;
  padding: 24px 16px 48px;
}

/* Content width for text (keeps it readable) */
main h1,
main h2,
main h3,
main p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Headings and text */
h1 {
  color: #f1e3ff;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: left;
}

h2 {
  color: #d67fff;
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

h3 {
  color: #f1e3ff;
  margin-top: 25px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #e3e3e3;
}

/* Links inside content */
main a {
  color: #ff7bff;
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

/* Full-width iframe block, no cropping */
.iframe-container {
  width: 100%;
  max-width: 1600px;
  margin: 24px auto 32px;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  background: radial-gradient(circle at top, #2b1840 0, #0f0f10 55%);
  overflow: visible; /* important: do not crop the widget */
}

/* Let the affiliate script handle the height */
.iframe-container iframe {
  display: block;
  width: 100%;
  border: none;
  position: static;
}

/* General layout helpers */
section {
  margin-bottom: 32px;
}

/* Mobile and tablet improvements */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
  }

  .logo {
    max-width: 190px;
  }

  nav ul {
    justify-content: center;
    gap: 12px;
  }

  main {
    padding: 20px 14px 36px;
  }

  h1 {
    font-size: 1.9rem;
    text-align: center;
  }

  h2 {
    font-size: 1.4rem;
    text-align: left;
  }

  h3 {
    font-size: 1.15rem;
  }

  main h1,
  main h2,
  main h3,
  main p {
    max-width: 100%;
  }

  .iframe-container {
    border-radius: 10px;
    margin: 18px auto 26px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  header {
    padding: 10px 10px;
  }

  .logo {
    max-width: 170px;
  }

  nav ul li a {
    font-size: 0.85rem;
  }
}

/* Larger screens: more breathing room and width */
@media (min-width: 1200px) {
  main {
    padding: 32px 40px 56px;
  }

  .iframe-container {
    max-width: 1600px;
  }

  main h1,
  main h2,
  main h3,
  main p {
    max-width: 1100px;
  }

  h1 {
    font-size: 2.4rem;
  }
}
