/* ==========================================================================
   DIOSA - Final Premium CSS Stylesheet
   ========================================================================== */

/* Import Google Fonts: Inter for text, Cormorant Garamond for elegant serif accents */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #000000;
  --bg-card: rgba(13, 13, 15, 0.65);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-button: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.16);
  
  --text-white: #ffffff;
  --text-grey: #9a9a9f; /* Brighter grey for better mobile contrast */
  --text-desc: #d2d2d6; /* Enhanced description contrast */
  --text-muted: #84848a; /* Improved secondary contrast */
  --accent-gold: #d8c27a;
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  
  /* Apple/High-end easeOutExpo timing for transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  /* Faint, elegant radial ambient backdrop lighting behind card */
  background-image: radial-gradient(circle at center, #1b1b1f 0%, #000000 100%);
  color: var(--text-white);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  overflow-y: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Main Card Container
   ========================================================================== */
.container {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 48px;
  padding: 3.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95),
              inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Premium top-light reflection */
  margin: auto; /* Centers card vertically without top clipping on short screens */
}

/* ==========================================================================
   Header Section (Logo, Name, Description)
   ========================================================================== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Circular logo with text inside and a subtle white halo glow */
.logo-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.logo-circle:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.logo-circle-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  color: var(--text-white);
  text-transform: uppercase;
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.link-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 3.6rem;
  letter-spacing: 0.08em;
  text-indent: 0.08em; /* Centers title perfectly by offsetting spacing */
  color: var(--text-white);
  line-height: 0.95;
  text-transform: uppercase;
}

.brand-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--text-grey);
  margin-top: 0.65rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.brand-description {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-desc);
  max-width: 320px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Horizontal Info Card (Time & Place Grid)
   ========================================================================== */
.info-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  margin-bottom: 1.5rem;
}

.info-column {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.info-column.clickable {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.info-column.clickable:hover .info-icon {
  color: var(--text-white);
  opacity: 1;
}

.info-column.clickable:hover .info-title {
  color: var(--text-white);
}

.info-icon {
  width: 20px;
  height: 20px;
  color: var(--text-white);
  opacity: 0.75;
  stroke-width: 1.5px;
  flex-shrink: 0;
}

.info-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.info-title {
  font-size: 0.76rem;
  font-weight: 500;
  color: #e5e5e5;
  line-height: 1.2;
}

.info-desc {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 3px;
}

.info-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Link Items List (Buttons Stack)
   ========================================================================== */
.links-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.link-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-button);
  border-radius: 20px;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02); /* Apple-like top glow border */
}

/* Icon rounded glass container on the left */
.link-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.link-icon-bg svg {
  width: 18px;
  height: 18px;
  color: var(--text-white);
  stroke-width: 1.75px;
}

/* Text elements stacked vertically */
.link-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-left: 1rem;
  flex-grow: 1;
}

.link-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.3;
}

.link-subtitle {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-grey);
  margin-top: 3px;
}

/* Seta à direita */
.link-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-white);
  opacity: 0.4;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

/* Hover behaviors */
.link-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.02),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.link-item:hover .link-icon-bg {
  background: rgba(255, 255, 255, 0.08);
}

.link-item:hover .link-arrow {
  opacity: 0.9;
  transform: translateX(4px);
}

.link-item:active {
  transform: translateY(0);
}

/* Disabled/Coming Soon Button overrides */
.link-item.disabled {
  cursor: default;
  opacity: 0.5;
}

.link-item.disabled:hover {
  transform: none;
  border-color: var(--border-button);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.link-item.disabled:hover .link-icon-bg {
  background: rgba(255, 255, 255, 0.04);
}

.link-item.disabled:hover .link-arrow {
  opacity: 0.4;
  transform: none;
}

/* ==========================================================================
   Footer Section (Star Icon & Motto)
   ========================================================================== */
.profile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.developer-credit {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  line-height: 1.4;
  margin-top: 1rem;
}

/* ==========================================================================
   Share Button Viewport overlay
   ========================================================================== */
.share-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: rgba(13, 13, 15, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.share-btn:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8px;
}

/* ==========================================================================
   Glassmorphic Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
}

.toast {
  background: rgba(13, 13, 15, 0.95);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 
              0 0 20px rgba(216, 194, 122, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.9rem 1.4rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-white);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  color: var(--accent-gold);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8px;
}

/* ==========================================================================
   Page Entry & Scroll Animations
   ========================================================================== */
.animate-on-load {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.animate-on-load.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Click Ripple Effect
   ========================================================================== */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  background-color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   Responsive Viewports (Mobile-First overrides)
   ========================================================================== */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 0.75rem;
  }
  
  .container {
    padding: 2.75rem 1.25rem;
    border-radius: 36px;
  }
  
  .logo-circle {
    width: 110px;
    height: 110px;
    margin-bottom: 1.25rem;
  }
  
  .logo-circle-text {
    font-size: 1.5rem;
  }
  
  .brand-title {
    font-size: 2.2rem;
  }
  
  .brand-subtitle {
    margin-bottom: 1.25rem;
  }
  
  .info-card {
    padding: 0.95rem 0.25rem;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
  }
  
  .info-column {
    gap: 0.4rem;
  }
  
  .info-title {
    font-size: 0.72rem;
  }
  
  .info-desc {
    font-size: 0.68rem;
  }
  
  .links-nav {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .link-item {
    padding: 0.75rem 1rem;
    border-radius: 18px;
  }
  
  .link-icon-bg {
    width: 38px;
    height: 38px;
  }
  
  .link-icon-bg svg {
    width: 16px;
    height: 16px;
  }
  
  .link-details {
    padding-left: 0.75rem;
  }
  
  .link-title {
    font-size: 0.88rem;
  }
  
  .link-subtitle {
    font-size: 0.72rem;
  }
  
  .link-arrow {
    width: 16px;
    height: 16px;
  }
}
