/* ========================================= */
/* 文件：voyage-log.css                       */
/* 功能：航行日志弹窗的全部样式 —— 书本翻页动画、*/
/*       日期展示、星星发光效果、同步闪烁指示灯 */
/* ========================================= */

/* =========================================
   📖 航行日志 (Voyage Log) UI ✨✨✨
   ========================================= */
.log-book {
  width: 85%; height: 60vh; max-height: 600px;
  background: rgba(67, 63, 83, 0.2); 
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(162, 155, 254, 0.3); 
  box-shadow: 0 0 30px rgba(162, 155, 254, 0.15), inset 0 0 60px rgba(53, 47, 65, 0.5); 
  border-radius: 16px;
  display: flex; flex-direction: column; padding: 24px;
  position: relative; overflow: hidden;
  animation: bookOpen 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.log-book::before {
  content: ""; position: absolute; top: 0; left: 24px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}
.log-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-left: 16px; 
}
.log-date-group { display: flex; align-items: center; gap: 10px; }
.log-day { font-size: 36px; font-weight: 700; color: #a29bfe; font-family: sans-serif; line-height: 1; text-shadow: 0 0 10px rgba(162, 155, 254, 0.3); }
.log-meta { display: flex; flex-direction: column; justify-content: center; }
.log-month { font-size: 12px; color: rgba(255,255,255,0.8); letter-spacing: 2px; font-weight: 700; }
.log-weather { font-size: 10px; color: rgba(255,255,255,0.4); }

.log-nav { display: flex; gap: 8px; }
.nav-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  color: #cfbcef; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.nav-btn:active { background: rgba(255,255,255,0.2); transform: scale(0.95); }

.log-content-area {
  flex: 1; background: rgba(255, 255, 255, 0.03);
  border-radius: 8px; padding: 16px; margin-left: 16px; 
  display: flex; flex-direction: column; overflow: hidden;
}
.log-title { font-size: 16px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.log-divider { height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 12px; width: 100%; }
.log-text {
  flex: 1; font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.8;
  overflow-y: auto; white-space: pre-wrap; text-align: justify;
}
.log-footer {
  margin-top: 16px; text-align: right;
  font-family: cursive, serif; 
  font-size: 14px; color: rgba(255,255,255,0.3); font-style: italic;
}
@keyframes bookOpen {
  from { opacity: 0; transform: scale(0.9) rotateY(-10deg); }
  to { opacity: 1; transform: scale(1) rotateY(0); }
}

.log-stars {
  position: absolute; left: 24px; bottom: 20px; 
  display: flex; gap: 4px; z-index: 5; pointer-events: none; 
}
.log-stars span {
  color: #a29bfe; font-size: 16px; 
  animation: starGlow 3s infinite ease-in-out;
  text-shadow: 0 0 8px rgba(162, 155, 254, 0.6); 
}
.log-stars span:nth-child(1) { animation-delay: 0s; transform: scale(1); }
.log-stars span:nth-child(2) { animation-delay: 1s; transform: scale(0.7); opacity: 0.8; } 
.log-stars span:nth-child(3) { animation-delay: 2s; transform: scale(0.9); }
@keyframes starGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); text-shadow: 0 0 5px rgba(162, 155, 254, 0.4); }
  50% { opacity: 1; transform: scale(1.1); text-shadow: 0 0 12px rgba(162, 155, 254, 0.9); }
}
/* 航行日志同步时的呼吸闪烁动画 */
@keyframes pulse-blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.syncing-blink {
    animation: pulse-blink 1.2s ease-in-out infinite;
}
