/* ==========================================================================
   Joaquim Arnaud - Links Page Stylesheet
   ========================================================================== */

:root {
  --color-terracotta: #BE4429;
  --color-terracotta-hover: #AC3D24;
  --color-dark: #141414;
  --color-subtext: #3A3A3A;
  --color-backdrop: #9E9E9E;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 4px 14px -1px rgba(0, 0, 0, 0.12), 0 2px 6px -2px rgba(0, 0, 0, 0.08);
  --shadow-container: 0 25px 60px -15px rgba(0, 0, 0, 0.22);
}

/* Base resets & typography */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-backdrop);
  color: #1A1A1A;
  font-family: var(--font-sans);
}

/* Micro-interactions */
.press-effect {
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.18s cubic-bezier(0.2, 0, 0, 1), background-color 0.18s ease;
}

.press-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(190, 68, 41, 0.35);
}

.press-effect:active {
  transform: translateY(1px) scale(0.995);
}

/* Outline & Terracotta Glow Highlight for "Guardar contacto" button */
.btn-save-contact-glow {
  outline: 2px solid rgba(190, 68, 41, 0.55);
  outline-offset: 3px;
  box-shadow: 
    0 0 16px 2px rgba(190, 68, 41, 0.40),
    0 4px 14px -1px rgba(0, 0, 0, 0.12);
  animation: terracotta-glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes terracotta-glow-pulse {
  0% {
    outline-color: rgba(190, 68, 41, 0.40);
    box-shadow: 
      0 0 12px 1px rgba(190, 68, 41, 0.30),
      0 4px 14px -1px rgba(0, 0, 0, 0.12);
  }
  100% {
    outline-color: rgba(190, 68, 41, 0.85);
    box-shadow: 
      0 0 24px 6px rgba(190, 68, 41, 0.55),
      0 6px 18px -1px rgba(0, 0, 0, 0.16);
  }
}

.btn-save-contact-glow:hover {
  outline-color: rgba(190, 68, 41, 0.95);
  box-shadow: 
    0 0 28px 8px rgba(190, 68, 41, 0.65),
    0 8px 24px -2px rgba(190, 68, 41, 0.45);
}

/* Toast */
#share-toast {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal transitions */
#action-modal,
#contact-modal {
  transition: opacity 0.25s ease;
}

.modal-panel,
.contact-modal-panel {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}

/* QR Code floating widget */
.qr-widget {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
