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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
  background-color: rgb(31, 35, 43);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   Page Wrapper & Background
   =========================== */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  background-color: rgb(31, 35, 43);
}

.bg-overlay {
  display: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ===========================
   Profile Header
   =========================== */
.profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
  justify-content: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.profile-handle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.verified svg {
  vertical-align: middle;
}

/* ===========================
   Links Grid
   =========================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
  align-items: start;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-group--span2 {
  grid-column: span 2;
}

/* ===========================
   Category Label
   =========================== */
.group-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  min-height: 20px;
}

.group-label:empty,
.group-label:blank {
  visibility: hidden;
}

/* ===========================
   Link Button
   =========================== */
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: rgb(1, 16, 34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.4;
  min-height: 68px;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
  width: 100%;
}

.link-btn:hover {
  background-color: rgb(5, 28, 58);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.link-btn:active {
  transform: translateY(0);
  background-color: rgb(0, 12, 28);
}

/* ===========================
   Bottom Section: Livros + Descontos
   =========================== */
.bottom-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 24px;
}

.livros-wrapper {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.livros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.descontos-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tablet */
@media (max-width: 768px) {
  .bottom-section {
    gap: 16px;
  }
}

/* Mobile — empilha Livros primeiro, Descontos abaixo */
@media (max-width: 480px) {
  .bottom-section {
    flex-direction: column;
  }

  .livros-grid {
    grid-template-columns: 1fr;
  }

  .livros-wrapper,
  .descontos-wrapper {
    width: 100%;
  }
}

/* ===========================
   Footer
   =========================== */
.page-footer {
  margin-top: 48px;
  text-align: center;
}

.page-footer a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.page-footer a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* WhatsApp float usa inline styles definidos no HTML */

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 768px) {
  .container {
    padding: 32px 16px 80px;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .link-group--span2 {
    grid-column: span 2;
  }

  .profile-name {
    font-size: 19px;
  }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 480px) {
  .profile {
    flex-direction: column;
    text-align: center;
    margin-bottom: 36px;
  }

  .profile-handle {
    justify-content: center;
  }

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

  .link-group--span2 {
    grid-column: span 1;
  }

  .link-btn {
    font-size: 14px;
    min-height: 58px;
    padding: 14px 16px;
  }

  .group-label {
    font-size: 13px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}
