/* ==========================================================================
   inslotica.com — Midnight Editorial-Grid Theme
   Palette: midnight plum, graphite, cyan, silver, coral, violet
   ========================================================================== */

/* --- Reset & Base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #191526;
  color: #D9DCE5;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: #47B7C5; text-decoration: none; }
a:hover { color: #D87670; text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* --- Containers & Typography ------------------------------------ */
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #D9DCE5;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; margin-bottom: 0.75rem; color: #47B7C5; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
small { font-size: 0.85rem; color: #9ea3b5; }

/* --- Top Warning Bar -------------------------------------------- */
.top-warning {
  background: #0D0A14;
  color: #D87670;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.82rem;
  border-bottom: 1px solid #252333;
  line-height: 1.4;
}

/* --- Header ------------------------------------------------------ */
.site-header {
  background: #191526;
  border-bottom: 1px solid #252333;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center; /* centered logo on desktop */
  position: relative;
}

.site-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.site-logo img {
  width: 48px;
  height: 48px;
}

/* --- Mobile Burger ---------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid #47B7C5;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #47B7C5;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 81px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #191526;
  z-index: 99;
  padding: 24px 20px;
  overflow-y: auto;
  border-top: 1px solid #252333;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #D9DCE5;
  font-size: 1.05rem;
  border-bottom: 1px solid #252333;
}

.mobile-nav a:hover { color: #47B7C5; }

/* --- Section Spacing -------------------------------------------- */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid #252333; }

/* --- Labels & Badges -------------------------------------------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid #47B7C5;
  color: #47B7C5;
  border-radius: 4px;
}

/* --- HERO Section ----------------------------------------------- */
.hero { padding: 48px 0 32px; }

.hero h1 {
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 0.95rem;
  color: #b0b5c7;
  max-width: 680px;
}

/* --- Highlighted Card (Score Ribbon) ----------------------------- */
.highlight-card {
  background: #252333;
  border: 1px solid #47B7C5;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.highlight-card .ribbon {
  position: absolute;
  top: 14px;
  left: -32px;
  background: #D87670;
  color: #191526;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(-45deg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}

.highlight-card .card-inner {
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.highlight-card .card-logo-area {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: #191526;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #2e2c41;
}

.highlight-card .card-logo-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.highlight-card .card-body { flex: 1; }

.highlight-card .score {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #47B7C5;
  margin-bottom: 6px;
}

.score-label {
  font-size: 0.72rem;
  color: #9ea3b5;
  display: block;
  margin-bottom: 10px;
}

.highlight-card .card-text { font-size: 0.9rem; color: #b0b5c7; margin-bottom: 12px; }

.highlight-card .card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.highlight-card .card-bullets li {
  font-size: 0.82rem;
  color: #b0b5c7;
  padding-left: 14px;
  position: relative;
}

.highlight-card .card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #7568A8;
  border-radius: 1px;
}

.regulatory-note {
  font-size: 0.75rem;
  color: #9ea3b5;
  margin-bottom: 12px;
  font-style: italic;
}

.card-cta {
  display: inline-block;
  padding: 10px 24px;
  background: #47B7C5;
  color: #191526;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.card-cta:hover { background: #3aa5b3; color: #191526; text-decoration: none; }

/* --- Standard Cards ---------------------------------------------- */
.standard-card {
  background: #252333;
  border: 1px solid #2e2c41;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.standard-card .card-inner {
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.standard-card .card-logo-area {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: #6746cf;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #2e2c41;
}

.standard-card .card-logo-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.standard-card .card-body { flex: 1; }

.standard-card .score {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #7568A8;
  margin-bottom: 4px;
}

.standard-card .card-text { font-size: 0.88rem; color: #b0b5c7; margin-bottom: 10px; }

.standard-card .card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 16px;
}

.standard-card .card-bullets li {
  font-size: 0.8rem;
  color: #9ea3b5;
  padding-left: 12px;
  position: relative;
}

.standard-card .card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: #7568A8;
  border-radius: 1px;
}

/* --- Three-Step Section ----------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.step-item {
  background: #252333;
  border: 1px solid #2e2c41;
  border-radius: 8px;
  padding: 20px;
}

.step-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 1px solid #47B7C5;
  color: #47B7C5;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  margin-bottom: 10px;
}

.step-item h3 { font-size: 0.95rem; margin-bottom: 6px; }
.step-item p { font-size: 0.85rem; color: #9ea3b5; margin-bottom: 0; }

/* --- Payment Methods -------------------------------------------- */
.payment-block p { font-size: 0.88rem; color: #b0b5c7; }

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.payment-icons span {
  display: inline-block;
  padding: 6px 14px;
  background: #252333;
  border: 1px solid #2e2c41;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #9ea3b5;
}

/* --- Regulator / Protection Blocks ------------------------------ */
.regulator-block, .protection-block {
  background: #252333;
  border: 1px solid #2e2c41;
  border-radius: 8px;
  padding: 20px;
}

.regulator-block p, .protection-block p { font-size: 0.88rem; color: #b0b5c7; margin-bottom: 0; }

/* --- FAQ --------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid #252333;
  padding: 16px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: #47B7C5;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover { color: #D87670; }

.faq-toggle {
  font-size: 1.2rem;
  color: #47B7C5;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #b0b5c7;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer { display: block; }

/* --- Footer ------------------------------------------------------ */
.site-footer {
  background: #0D0A14;
  border-top: 2px solid #252333;
  padding: 48px 0 32px;
  margin-top: 20px;
}

.footer-paragraph { margin-bottom: 18px; }
.footer-paragraph p { font-size: 0.85rem; color: #9ea3b5; margin-bottom: 0; line-height: 1.7; }

.footer-heading {
  font-size: 1rem;
  color: #47B7C5;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.footer-resources a {
  display: block;
  width: 160px;
  height: 120px;
  background: #3e2e72;
  border: 1px solid #2e2c41;
  border-radius: 8px;
  padding: 10px;
  transition: border-color 0.2s;
}

.footer-resources a:hover { border-color: #47B7C5; }

.footer-resources a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid #252333;
  padding-top: 20px;
  margin-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #7568A8;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.footer-links a { font-size: 0.82rem; color: #9ea3b5; }
.footer-links a:hover { color: #47B7C5; }

/* --- 18+ Popup --------------------------------------------------- */
.age-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-popup-overlay.hidden { display: none; }

.age-popup-box {
  background: #252333;
  border: 1px solid #47B7C5;
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
}

.age-popup-box h2 {
  color: #D9DCE5;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.age-popup-box p {
  font-size: 0.88rem;
  color: #b0b5c7;
  margin-bottom: 24px;
}

.age-popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-popup-buttons button {
  padding: 10px 32px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.age-popup-yes {
  background: #47B7C5;
  color: #191526;
}

.age-popup-yes:hover { background: #3aa5b3; }

.age-popup-no {
  background: #2e2c41;
  color: #D9DCE5;
}

.age-popup-no:hover { background: #3d3a55; }

/* --- Cookie Banner ---------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0D0A14;
  border-top: 1px solid #252333;
  padding: 16px 20px;
  z-index: 9998;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.82rem;
  color: #9ea3b5;
  margin-bottom: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-buttons button {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-accept {
  background: #47B7C5;
  color: #191526;
}

.cookie-accept:hover { background: #3aa5b3; }

.cookie-decline {
  background: #2e2c41;
  color: #D9DCE5;
}

.cookie-decline:hover { background: #3d3a55; }

/* --- Internal Page Shared --------------------------------------- */
.page-content { padding: 40px 0; }
.page-content article { max-width: 720px; }
.page-content p, .page-content li { font-size: 0.9rem; color: #b0b5c7; }
.page-content ul { padding-left: 20px; margin-bottom: 1rem; }
.page-content ul li { margin-bottom: 4px; }

/* --- Redirect / Internal Card Pages ----------------------------- */
.redirect-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.redirect-box {
  background: #252333;
  border: 1px solid #2e2c41;
  border-radius: 10px;
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
}

.redirect-box .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2e2c41;
  border-top-color: #47B7C5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.redirect-box p { font-size: 0.88rem; color: #b0b5c7; margin-bottom: 12px; }

.fallback-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #7568A8;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.fallback-btn:hover { background: #887abf; color: #fff; text-decoration: none; }

/* --- Responsive -------------------------------------------------- */
@media (max-width: 767px) {
  .mobile-menu-toggle { display: block; }
  .header-inner { justify-content: center; }

  .hero h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }

  .highlight-card .card-inner,
  .standard-card .card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .highlight-card .card-logo-area { width: 80px; height: 80px; }
  .standard-card .card-logo-area { width: 70px; height: 70px; }

  .highlight-card .card-bullets,
  .standard-card .card-bullets {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .highlight-card .ribbon {
    font-size: 0.65rem;
    padding: 3px 30px;
    top: 12px;
    left: -28px;
  }

  .steps-grid { grid-template-columns: 1fr; gap: 12px; }

  .badge-row { justify-content: center; }

  .cookie-inner { flex-direction: column; text-align: center; }
  .cookie-buttons { justify-content: center; }

  .footer-resources { justify-content: center; }

  .age-popup-box { padding: 28px 24px; }
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 32px 0 24px; }
  .section { padding: 28px 0; }
  h1 { font-size: 1.2rem; }
  .highlight-card .card-inner,
  .standard-card .card-inner { padding: 20px 16px; }
}
