/* ========================================
   Miraí Flores - Link na Bio
   Estilos principais (inspirado no EXEMPLO)
   ======================================== */

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

/* === Body === */
body {
  font-family: 'Inter', sans-serif;
  background-color: #e9979e;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.popup-open {
  overflow: hidden;
}

/* === Cover / Hero (inspirado no EXEMPLO) === */
.cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  z-index: 0;
  overflow: hidden;
  background-image: url('../src/cover.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@supports (-webkit-touch-callout: none) {
  /* iOS fix - background-attachment: fixed não funciona em iOS */
  .cover {
    background-attachment: scroll;
  }
}

@supports not (-webkit-touch-callout: none) {
  .cover {
    background-attachment: fixed;
  }
}

.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(233, 151, 158, 0.12) 25%,
    #e9979e 100%
  );
  pointer-events: none;
}

/* === Container === */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 100px 36px 80px;
}

/* === Profile (inspirado no EXEMPLO) === */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 0 12px;
}

.profile img {
  width: 100px;
  height: 100px;
  border-radius: 500px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 450px;
}

.profile h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.profile p {
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* === Top Buttons (inspirado no EXEMPLO) === */
.top-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.top-buttons a {
  flex: 1;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #eee;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.top-buttons a:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  display: block;
}

/* === Link Cards (inspirado no EXEMPLO - layout horizontal) === */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  flex: 1;
}

.link-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #161616;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.link-card p {
  font-size: 13px;
  color: #7d7f83;
  line-height: 1.4;
}

.link-card .btn {
  background: #2d2d2d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
  letter-spacing: 0.2px;
  cursor: pointer;
  width: 110px;
  text-align: center;
}

.link-card .btn-icon {
  display: none;
}

.link-card:hover .btn {
  background: #e9979e;
}

/* === Instagram Feed === */
.instagram-section {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.instagram-section:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.instagram-header {
  padding: 28px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.instagram-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.instagram-username {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
}

.instagram-username:hover {
  opacity: 0.8;
}

.instagram-post {
  display: flex;
  justify-content: center;
  padding: 20px;
  min-height: 350px;
  max-width: 100%;
  overflow: hidden;
}

.instagram-post blockquote {
  max-width: 100% !important;
  border-radius: 12px;
  overflow: hidden;
}

.instagram-post iframe {
  max-width: 100% !important;
  border-radius: 8px;
}

.instagram-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 20px 20px;
  align-self: center;
}

.instagram-link:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* === Localização/Gallery === */
.location-section {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.location-section:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.location-header {
  padding: 28px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.location-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.location-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-rotas {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-rotas:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.maps-container-inner {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

/* === Google Maps === */
.maps-container {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.maps-container iframe {
  border-radius: 14px;
  width: 100%;
  height: 100%;
  display: block;
}

/* === Social Icons (inspirado no EXEMPLO - 80x80 com labels) === */
.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee;
  border-radius: 16px;
  text-decoration: none;
  font-size: 26px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.social-btn small {
  font-size: 10px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.3px;
}

.social-btn:hover {
  background: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* === Footer === */
.footer {
  text-align: center;
  padding-top: 16px;
}

.footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* === Popup de aviso === */
.popup-aviso {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-aviso.is-visible {
  opacity: 1;
  visibility: visible;
}

.popup-aviso__overlay {
  position: absolute;
  inset: 0;
  background: rgba(56, 27, 32, 0.5);
  backdrop-filter: blur(6px);
}

.popup-aviso__dialog {
  position: relative;
  width: min(100%, 440px);
  background: linear-gradient(180deg, #fff8fa 0%, #ffffff 100%);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(86, 34, 43, 0.28);
  border: 1px solid rgba(233, 151, 158, 0.3);
  text-align: left;
}

.popup-aviso__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(233, 151, 158, 0.14);
  color: #b34b5f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup-aviso__dialog h2 {
  font-size: 28px;
  color: #2a181c;
  margin-bottom: 14px;
  line-height: 1.1;
}

.popup-aviso__dialog p {
  font-size: 15px;
  color: #5b464a;
  line-height: 1.6;
}

.popup-aviso__numero {
  margin-top: 12px;
  font-size: 17px;
}

.popup-aviso__numero strong {
  color: #b33f57;
}

.popup-aviso__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.popup-aviso__cta:hover {
  background: #20ba58;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.popup-aviso__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(233, 151, 158, 0.16);
  color: #7b4350;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.popup-aviso__close:hover {
  background: rgba(233, 151, 158, 0.28);
  transform: scale(1.05);
}

/* === Animações de entrada === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsivo (inspirado no EXEMPLO - breakpoints) === */
@media (max-width: 809px) {
  .cover {
    height: 50vh;
    background-attachment: scroll;
  }

  .container {
    gap: 32px;
    padding: 60px 16px 48px;
  }

  .profile img {
    width: 80px;
    height: 80px;
  }

  .profile h1 {
    font-size: 24px;
  }

  .popup-aviso {
    padding: 16px;
  }

  .popup-aviso__dialog {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .popup-aviso__dialog h2 {
    font-size: 24px;
  }

  .profile p {
    font-size: 14px;
  }

  .top-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }

  .top-buttons a {
    flex: 1;
    min-width: 140px;
    max-width: none;
    padding: 10px 14px;
    font-size: 13px;
  }

  .link-card {
    flex-direction: row;
    text-align: center;
    gap: 12px;
    padding: 16px;
    position: relative;
  }

  .card-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    margin: 0 auto;
  }

  .link-card h3 {
    font-size: 15px;
    text-align: left;
  }

  .link-card p {
    font-size: 12px;
    text-align: left;
  }

  .link-card .btn {
    display: none;
  }

  .link-card .btn-icon {
    display: block;
    width: 35px;
    height: 35px;
    top: 10px;
    right: 10px;
    border: 1px solid #8C8C8C;
    border-radius: 5px;
    padding: 7px;
    position: absolute;
  }

  .instagram-section,
  .location-section {
    border-radius: 12px;
  }

  .instagram-header,
  .location-header {
    padding: 20px 16px;
  }

  .instagram-section h2,
  .location-section h2 {
    font-size: 18px;
  }

  .instagram-post {
    padding: 16px;
    min-height: 300px;
  }

  .maps-container-inner {
    height: 280px;
  }

  .btn-rotas,
  .instagram-link {
    padding: 10px 20px;
    font-size: 13px;
  }

  .social-btn {
    width: 70px;
    height: 70px;
    font-size: 22px;
  }

  .social-btn small {
    font-size: 9px;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .container {
    padding: 50px 12px 40px;
  }

  .top-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .top-buttons a {
    width: 100%;
    max-width: 100%;
  }

  .profile h1 {
    font-size: 22px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .social-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
}

@media (min-width: 810px) {
  .container {
    padding-top: 160px;
    padding-bottom: 120px;
  }
}
