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

/* 全螢幕 overlay（表單查詢） */
.qf-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #0C0A09 0%, #1C1917 50%, #292524 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
  overscroll-behavior: contain;
}

/* 右上角 X 按鈕 */
.qf-close-x {
  position: absolute;
  top: max(16px, env(safe-area-inset-top) + 8px);
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(68, 64, 60, 0.3);
  border: 1px solid rgba(68, 64, 60, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}

.qf-close-x:hover {
  background: rgba(68, 64, 60, 0.5);
}

.qf-close-x .material-icons {
  font-size: 18px;
  color: rgba(168, 162, 158, 0.7);
}

/* 內容容器 */
.qf-overlay-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(50px, env(safe-area-inset-top) + 30px) 20px max(20px, env(safe-area-inset-bottom) + 10px);
}

/* header */
.qf-header {
  text-align: center;
  margin-bottom: 20px;
}

/* 頁面標題 */
.qf-title {
  font-size: 20px;
  font-weight: 500;
  color: #FAFAF9;
  letter-spacing: 3px;
  margin: 0;
}

/* 主容器 */
.qf-main-container {
  flex: 1;
  background: rgba(28, 25, 23, 0.6);
  border: 1px solid rgba(68, 64, 60, 0.4);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 分頁標籤列 */
.qf-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(68, 64, 60, 0.3);
  background: rgba(15, 15, 15, 0.5);
}

/* 分頁按鈕 */
.qf-tab-btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 統計列 */
.qf-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(15, 15, 15, 0.3);
  border-bottom: 1px solid rgba(68, 64, 60, 0.3);
}

/* 底部關閉按鈕 */
.qf-bottom-close {
  padding: 10px 20px;
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.qf-bottom-close-btn {
  padding: 5px 20px;
  background: rgba(68, 64, 60, 0.2);
  border: 1px solid rgba(68, 64, 60, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qf-bottom-close-btn:hover {
  background: rgba(68, 64, 60, 0.4);
}

.qf-bottom-close-btn .material-icons {
  font-size: 12px;
  color: #000;
}
