/*
 * Project CSS for lionott-official.
 * Shared classes for website sections.
 */

/* Global responsive safety */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  background: #1A1823;
}

img, video, iframe {
  max-width: 100%;
}

/* Better tap targets */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  main section:first-child {
    min-height: auto !important;
  }

  main section:first-child header {
    max-width: calc(100vw - 24px) !important;
    border-radius: 22px !important;
  }

  main section:first-child h1 {
    max-width: 100% !important;
  }
}

/* Mobile-first polish */
@media (max-width: 767px) {
  main {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header {
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  header a:first-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  header a:first-child span:last-child {
    min-width: 0 !important;
  }

  header a:first-child b {
    font-size: 15px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 150px !important;
  }

  header a:first-child span span {
    display: none !important;
  }

  header a[href="/login"] {
    padding: 10px 14px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  h1 {
    font-size: clamp(34px, 11vw, 46px) !important;
    line-height: 0.98 !important;
    letter-spacing: -1.4px !important;
  }

  h2 {
    font-size: clamp(24px, 8vw, 34px) !important;
  }

  p {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  .grid {
    min-width: 0 !important;
  }

  .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .grid.grid-cols-3 > div {
    min-width: 0 !important;
  }

  a.rounded-full,
  button.rounded-full {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  [class*="rounded-[38px]"],
  [class*="rounded-[34px]"],
  [class*="rounded-[30px]"] {
    border-radius: 26px !important;
  }

  [class*="p-8"] { padding: 24px !important; }
  [class*="p-7"] { padding: 22px !important; }
  [class*="p-6"] { padding: 20px !important; }
  [class*="p-5"] { padding: 18px !important; }

  [class*="mt-10"] { margin-top: 28px !important; }
  [class*="mt-9"] { margin-top: 26px !important; }
  [class*="pt-20"] { padding-top: 56px !important; }

  /* Server card rows on mobile */
  main section:first-child [class*="rounded-2xl"][class*="flex"] {
    gap: 12px !important;
    align-items: center !important;
  }

  main section:first-child [class*="rounded-2xl"][class*="flex"] span,
  main section:first-child [class*="rounded-2xl"][class*="flex"] b {
    font-size: 14px !important;
  }

  /* Login page mobile */
  form, input, textarea, select {
    max-width: 100% !important;
  }

  input, textarea, select, button {
    font-size: 16px !important;
  }
}

/* Small phones */
@media (max-width: 380px) {
  header a:first-child b {
    max-width: 115px !important;
  }

  h1 {
    font-size: 32px !important;
  }

  section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
