/* ==========================================================================
   La Casita Luna - brands.css
   Custom button stylings for Airbnb, Socials, Messaging & Ephemeral Updates
   ========================================================================== */

/* User Profile Avatar with Terracotta Frame */
.rounded-avatar {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  display: inline-block;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #C86D46;
  box-shadow: 0 8px 24px rgba(200, 109, 70, 0.25);
  background-color: #FAF4ED;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-avatar:hover {
  transform: scale(1.04);
}

@media (prefers-color-scheme: dark) {
  .rounded-avatar {
    background-color: #2D2420;
    box-shadow: 0 8px 24px rgba(242, 185, 158, 0.20);
  }
}

/* Social Icon Bar */
.social-icon-div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  padding-bottom: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 28px;
  padding: 8px 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   Base Buttons (link cards) — scoped strictly to .button elements
   ========================================================================== */
.button,
a.button,
.button.button-default,
.button.button-custom,
.button[class*="button-"]:not(.sharebutton) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
  max-width: 440px;
  min-height: 52px;
  min-width: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  padding: 14px 20px;
  letter-spacing: 0.01em;
  border-radius: 14px;
  margin-bottom: 14px;
  outline: none;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-wrap: break-word;
  word-break: normal;

  /* Polished default fallback: warm terracotta gradient for any unlisted button class */
  color: #FFFFFF;
  background: linear-gradient(135deg, #C86D46 0%, #A8532E 100%);
  box-shadow: 0 4px 14px rgba(56, 26, 15, 0.12);
}

.button:hover,
a.button:hover,
.button.button-default:hover,
.button.button-custom:hover,
.button[class*="button-"]:not(.sharebutton):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 109, 70, 0.22);
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  /* margin-right is a resilient fallback for icon/text spacing in case the
     button ends up in normal block flow (see .button-hover in animations.css,
     which shares the same element and can take precedence over the flex
     "gap" below on specificity). */
  margin-right: 10px;
  vertical-align: middle;
}

/* ==========================================================================
   Primary / Custom Buttons (Signature Warm Terracotta)
   ========================================================================== */
.button.button-default,
.button.button-custom {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #C86D46 0%, #A8532E 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-default:hover,
.button.button-custom:hover {
  background: linear-gradient(135deg, #D47A53 0%, #B85D36 100%);
}

/* ==========================================================================
   Airbnb Booking Button
   ========================================================================== */
.button.button-airbnb,
.button.button-custom_airbnb {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #FF5A5F 0%, #D93B4E 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-airbnb:hover,
.button.button-custom_airbnb:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   Booking.com — deep navy
   ========================================================================== */
.button.button-booking,
.button.button-bookingdotcom {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #003580 0%, #002357 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button.button-booking:hover,
.button.button-bookingdotcom:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   Tripadvisor — emerald green
   ========================================================================== */
.button.button-tripadvisor {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #34E0A1 0%, #00AF87 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-tripadvisor:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   Website / Maps / Local Guide — warm parchment card
   ========================================================================== */
.button.button-website,
.button.button-custom_website,
.button.button-openstreetmap,
.button.button-googlemaps,
.button.button-google-maps {
  color: #381A0F !important;
  background-color: #FAF4ED;
  border: 1.5px solid #ECDAC9;
  box-shadow: 0 4px 14px rgba(56, 26, 15, 0.07);
}

.button.button-website:hover,
.button.button-custom_website:hover,
.button.button-openstreetmap:hover,
.button.button-googlemaps:hover,
.button.button-google-maps:hover {
  background-color: #FFFDF9;
  border-color: #DEB493;
}

@media (prefers-color-scheme: dark) {
  .button.button-website,
  .button.button-custom_website,
  .button.button-openstreetmap,
  .button.button-googlemaps,
  .button.button-google-maps {
    color: #F7EFE6 !important;
    background-color: #2D2420;
    border-color: #4A3B34;
  }

  .button.button-website:hover,
  .button.button-custom_website:hover,
  .button.button-openstreetmap:hover,
  .button.button-googlemaps:hover,
  .button.button-google-maps:hover {
    background-color: #362B25;
    border-color: #5A483F;
  }
}

/* ==========================================================================
   Instagram / Facebook / WhatsApp
   ========================================================================== */
.button.button-instagram {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-facebook {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #1877F2 0%, #0F5FCC 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-whatsapp {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Email / Phone (contact methods styled like the parchment card)
   ========================================================================== */
.button.button-email,
.button.button-mail,
.button.button-phone,
.button.button-tel {
  color: #381A0F !important;
  background-color: #FAF4ED;
  border: 1.5px solid #ECDAC9;
  box-shadow: 0 4px 14px rgba(56, 26, 15, 0.07);
}

.button.button-email:hover,
.button.button-mail:hover,
.button.button-phone:hover,
.button.button-tel:hover {
  background-color: #FFFDF9;
  border-color: #DEB493;
}

@media (prefers-color-scheme: dark) {
  .button.button-email,
  .button.button-mail,
  .button.button-phone,
  .button.button-tel {
    color: #F7EFE6 !important;
    background-color: #2D2420;
    border-color: #4A3B34;
  }
}

/* ==========================================================================
   Other Social & Media Platforms
   ========================================================================== */
.button.button-tiktok {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #25F4EE 0%, #010101 55%, #FE2C55 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-youtube {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #FF0000 0%, #B31217 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-spotify {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #1DB954 0%, #148A3E 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-pinterest {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #E60023 0%, #AD081B 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-twitter,
.button.button-x {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #1D1D1D 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-linkedin {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #0A66C2 0%, #084A8C 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button.button-github {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #333333 0%, #171717 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Ephemeral Announcements / Featured Welcome Info
   ========================================================================== */
.button.button-primary {
  color: #381A0F !important;
  background: linear-gradient(135deg, #F9DEC9 0%, #ECC5A8 100%);
  border: 1.5px solid #DEB493;
  font-weight: 700;
}

.button.button-primary:hover {
  background: linear-gradient(135deg, #FFE8D6 0%, #F4CEB3 100%);
}

@media (prefers-color-scheme: dark) {
  .button.button-primary {
    color: #F7EFE6 !important;
    background: linear-gradient(135deg, #B85D36 0%, #8A431F 100%);
    border: 1.5px solid #A8532E;
  }

  .button.button-primary:hover {
    background: linear-gradient(135deg, #C86D46 0%, #9A4C26 100%);
  }
}

/* ==========================================================================
   Responsive & Accessibility
   ========================================================================== */
@media (max-width: 360px) {
  .button,
  [class*="button-"]:not(.sharebutton) {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rounded-avatar,
  .social-icon,
  .button,
  [class*="button-"]:not(.sharebutton) {
    transition-duration: 0.01ms;
  }

  .rounded-avatar:hover,
  .social-icon:hover,
  .button:hover,
  [class*="button-"]:not(.sharebutton):hover {
    transform: none;
  }
}
