/**
 * ui-clock-map.css - Sprint 4a FR-020
 * 從 ui-clock-map.js 提取的靜態重複樣式
 */

/* 地圖錯誤 overlay */
.ucm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ucm-overlay--blur {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* popup 卡片 */
.ucm-popup {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border: 1px solid #262626;
}

/* popup header */
.ucm-popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

/* 右上角關閉按鈕 */
.ucm-close-x {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 資訊區 */
.ucm-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 地圖容器 */
.ucm-map-container {
  height: 220px;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

/* 按鈕區 */
.ucm-btn-area {
  padding: 16px 20px;
  border-top: 1px solid #333;
  display: flex;
  gap: 12px;
}

/* 通用按鈕基底 */
.ucm-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ucm-btn .material-icons {
  font-size: 18px;
  margin-right: 6px;
}

/* 重新定位按鈕 */
.ucm-btn--retry {
  background: #333;
  color: #f5f5f5;
}

/* 拍照驗證按鈕 */
.ucm-btn--photo {
  background: linear-gradient(135deg, #f5c563 0%, #d4a84b 100%);
  color: #1a1a1a;
  font-weight: 600;
}

/* GPS 指南彈窗 overlay */
.ucm-guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* GPS 指南彈窗 popup */
.ucm-guide-popup {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border: 1px solid #262626;
  text-align: center;
}

/* 圖標區域 */
.ucm-guide-icon-area {
  padding: 30px 20px 15px;
}

/* 指南按鈕 */
.ucm-guide-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.ucm-guide-btn--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.ucm-guide-btn--secondary {
  background: transparent;
  color: #888;
  font-weight: 400;
  border-top: 1px solid #333;
}

.consent-error-card {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  animation: karesansui-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.consent-error-icon {
  width: 56px;
  height: 56px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #ef4444;
}

.consent-error-title {
  color: #d4d4d4;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 0 0 8px;
  padding: 0 20px;
}

.consent-error-msg {
  color: #737373;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px;
  padding: 0 20px;
}

.consent-error-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px;
}

.consent-btn-guide {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consent-btn-retry {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: rgba(82, 82, 82, 0.35);
  color: #a3a3a3;
  border: 1px solid #333;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
