/* static/css/a50.css */

/* 分享彈窗遮罩 + 淡入動畫 + 背景模糊 */
.modal.a50-share-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* 左右保留距離（含 iOS 安全區域） */
  padding-left:  calc(env(safe-area-inset-left) + 12px);
  padding-right: calc(env(safe-area-inset-right) + 12px);
  animation: a50-fadeIn 0.3s ease-out forwards;
}
.modal.a50-share-modal.open {
  display: flex;
}
@keyframes a50-fadeIn {
  from { background: rgba(0,0,0,0); }
  to   { background: rgba(0,0,0,0.6); }
}

/* 內容盒子：漸變邊框 + 發光陰影 + 網格疊層 + 動態光暈 */
.a50-share-modal-content {
  position: relative;
  box-sizing: border-box;
  background: rgba(20,20,40,0.95);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #00ffff, #ff00ff) 1;
  border-radius: 12px;
  padding: 24px 20px;

  /* 寬度改為響應式，確保左右至少各 12px 留白 */
  width: min(320px, calc(100vw - 24px));
  max-width: 100%;
  margin: 0 auto;

  font-family: 'Orbitron', sans-serif;
  text-align: center;
  color: #0ff;
  box-shadow:
    0 0 12px rgba(0,255,255,0.5),
    0 0 24px rgba(255,0,255,0.3),
    inset 0 0 8px rgba(0,255,255,0.2);
  animation: a50-pulse 3s ease-in-out infinite alternate;
  overflow: hidden;
}
@keyframes a50-pulse {
  from {
    box-shadow:
      0 0 12px rgba(0,255,255,0.4),
      0 0 24px rgba(255,0,255,0.2);
  }
  to {
    box-shadow:
      0 0 24px rgba(0,255,255,0.8),
      0 0 48px rgba(255,0,255,0.6),
      inset 0 0 12px rgba(0,255,255,0.3);
  }
}

/* 科幻網格疊層 */
.a50-share-modal-content::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0;
  background-size: 20px 20px;
  mix-blend-mode: overlay;
}

/* 標題 發光效果 */
.a50-share-modal-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #0ff;
  text-shadow:
    0 0 6px #0ff,
    0 0 12px #f0f;
  animation: a50-titleGlow 1.5s ease-in-out infinite alternate;
}
@keyframes a50-titleGlow {
  from {
    text-shadow:
      0 0 4px #0ff,
      0 0 8px #f0f;
  }
  to {
    text-shadow:
      0 0 8px #0ff,
      0 0 16px #f0f;
  }
}

/* 關閉按鈕 光暈 + 旋轉效果 */
.a50-close {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}
.a50-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* 分享按鈕區塊（科幻風格） */
.a50-share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-around;
  margin-top: 1.5rem;
}
.a50-share-option {
  flex: 1 1 45%;
  padding: 0.6rem 0;
  text-decoration: none;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #00ffff, #ff00ff) 1;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: #0ff;
  background: rgba(20,20,40,0.8);
  box-shadow:
    0 0 6px rgba(0,255,255,0.5),
    inset 0 0 4px rgba(0,255,255,0.2);
  transition: box-shadow 0.3s, transform 0.2s;
}
.a50-share-option:hover {
  box-shadow:
    0 0 12px rgba(0,255,255,0.8),
    inset 0 0 6px rgba(0,255,255,0.4);
  transform: translateY(-2px);
}
.a50-share-option i,
.a50-share-option {
  text-shadow: 0 0 4px rgba(0,255,255,0.7);
}
