/* 活動心得 v2 — 深色＋金色 */
.reviews-section { background: #1a1a1a; border-radius: 20px; padding: 24px 20px; margin-bottom: 20px; scroll-margin-top: 12px; position: relative; overflow: visible; }
.reviews-title { font-size: 20px; font-weight: bold; color: #cbb382; margin-bottom: 16px; }
.reviews-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0; }
.reviews-tab { flex: 1; max-width: 200px; padding: 12px 16px; background: none; border: none; border-bottom: 2px solid transparent; color: #888; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; min-height: 44px; margin-bottom: -1px; }
.reviews-tab:hover { color: #cbb382; }
.reviews-tab.active { color: #cbb382; border-bottom-color: #cbb382; }
.reviews-panel { display: none; }
.reviews-panel.active { display: block; }
.reviews-flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reviews-flash.ok { background: rgba(76, 175, 80, 0.15); color: #81c784; }
.reviews-flash.err { background: rgba(229, 115, 115, 0.15); color: #e57373; }
.reviews-flash-close { background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; padding: 4px 8px; min-width: 44px; min-height: 44px; }
.reviews-auth { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px; background: rgba(255,255,255,0.04); border-radius: 12px; }
.reviews-user { display: flex; align-items: center; gap: 10px; }
.reviews-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.reviews-user-name { font-size: 14px; color: #fff; font-weight: 600; }
.reviews-user-handle { font-size: 13px; color: #888; }
.reviews-login-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; color: #0f0f0f; border-radius: 24px; text-decoration: none; font-size: 14px; font-weight: 600; min-height: 44px; }
.reviews-login-btn:hover { background: #e8e8e8; }
.reviews-logout { color: #888; font-size: 13px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.reviews-logout:hover { color: #cbb382; }

/* 發布表單 */
.reviews-form { padding: 16px; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.reviews-form label { display: block; font-size: 13px; color: #b0b0b0; margin-bottom: 6px; }
.reviews-form-row { margin-bottom: 14px; }
.reviews-field-error { font-size: 12px; color: #e57373; margin-top: 4px; min-height: 18px; }
.reviews-picker-btn { width: 100%; text-align: left; padding: 12px 14px; background: #252525; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; font-size: 15px; font-family: inherit; cursor: pointer; min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.reviews-picker-btn:hover { border-color: #cbb382; }
.reviews-picker-btn.placeholder { color: #888; align-items: center; }
.reviews-picker-btn .chev { color: #cbb382; flex-shrink: 0; margin-top: 2px; }
.reviews-picker-btn.placeholder .chev { margin-top: 0; }
.reviews-picker-summary { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; white-space: normal; word-break: break-word; line-height: 1.45; }
.reviews-picker-summary .line1 { font-size: 14px; color: #e0e0e0; }
.reviews-picker-summary .line2 { font-size: 14px; color: #cbb382; }
.reviews-picker-summary.date-only .line1 { color: #fff; font-size: 15px; }
.reviews-session-clear { margin-top: 6px; background: none; border: none; color: #888; font-size: 13px; cursor: pointer; padding: 8px 0; min-height: 44px; font-family: inherit; }
.reviews-session-clear:hover { color: #cbb382; }
.reviews-form textarea { width: 100%; padding: 12px; background: #252525; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; font-size: 15px; font-family: inherit; min-height: 100px; resize: vertical; color-scheme: dark; }
.reviews-form textarea:focus { outline: none; border-color: #cbb382; }
.reviews-char-count { text-align: right; font-size: 12px; color: #888; margin-top: 4px; }
.reviews-char-count.over { color: #e57373; }
.reviews-form-agree { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 13px; color: #888; }
.reviews-form-agree input { margin-top: 3px; min-width: 18px; min-height: 18px; }
.reviews-submit { padding: 12px 24px; background: #cbb382; color: #0f0f0f; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px; width: 100%; }
.reviews-submit:hover:not(:disabled) { background: #d4c090; }
.reviews-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 月曆 */
.reviews-cal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9000; display: none; align-items: flex-end; justify-content: center; }
.reviews-cal-overlay.open { display: flex; }
@media (min-width: 640px) {
    .reviews-cal-overlay { align-items: center; }
}
.reviews-cal-sheet { background: #1a1a1a; border: 1px solid rgba(203,179,130,0.3); border-radius: 16px 16px 0 0; width: 100%; max-width: 400px; max-height: 90vh; overflow: auto; padding: 16px; }
@media (min-width: 640px) {
    .reviews-cal-sheet { border-radius: 16px; }
}
.reviews-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.reviews-cal-head button { background: rgba(255,255,255,0.08); border: none; color: #cbb382; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; font-size: 18px; }
.reviews-cal-title { font-size: 16px; font-weight: 600; color: #fff; flex: 1; text-align: center; }
.reviews-cal-year-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.reviews-cal-year-row select { background: #252525; border: 1px solid rgba(255,255,255,0.12); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 14px; color-scheme: dark; min-height: 44px; }
.reviews-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.reviews-cal-dow { font-size: 12px; color: #888; padding: 6px 0; }
.reviews-cal-day { aspect-ratio: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid transparent; background: none; color: #666; font-size: 14px; cursor: default; font-family: inherit; position: relative; padding: 2px; }
.reviews-cal-day.has-event { color: #fff; cursor: pointer; border-color: rgba(203,179,130,0.25); }
.reviews-cal-day.has-review { color: #fff; cursor: pointer; border-color: rgba(129,199,132,0.35); }
.reviews-cal-day.has-review:hover { background: rgba(129,199,132,0.12); }
.reviews-filter-sheet-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.reviews-filter-sheet-body label { display: block; font-size: 13px; color: #b0b0b0; }
.reviews-filter-sheet-body .reviews-filter-input,
.reviews-filter-sheet-body .reviews-filter-select { width: 100%; margin-top: 6px; }
.reviews-cal-day.has-event:hover { background: rgba(203,179,130,0.15); }
.reviews-cal-day.selected { background: rgba(203,179,130,0.35); border-color: #cbb382; color: #fff; font-weight: 600; }
.reviews-cal-day .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 2px; }
.reviews-cal-day .dot.gold { background: #cbb382; }
.reviews-cal-day .dot.green { background: #81c784; }
.reviews-cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: #888; }
.reviews-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.reviews-cal-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* 場次選擇器 */
.reviews-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9001; display: none; flex-direction: column; justify-content: flex-end; }
.reviews-sheet-overlay.open { display: flex; }
.reviews-sheet { background: #1a1a1a; border-top: 1px solid rgba(203,179,130,0.3); max-height: 85vh; display: flex; flex-direction: column; width: 100%; }
@media (min-width: 640px) {
    .reviews-sheet-overlay { align-items: center; justify-content: center; }
    .reviews-sheet { max-width: 480px; border-radius: 16px; border: 1px solid rgba(203,179,130,0.3); max-height: 80vh; }
}
.reviews-sheet-head { padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.reviews-sheet-head h3 { flex: 1; font-size: 16px; color: #cbb382; margin: 0; }
.reviews-sheet-close { background: none; border: none; color: #888; font-size: 24px; cursor: pointer; min-width: 44px; min-height: 44px; }
.reviews-sheet-search { padding: 12px 16px; }
.reviews-sheet-search input { width: 100%; padding: 12px; background: #252525; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; font-size: 15px; min-height: 44px; color-scheme: dark; }
.reviews-sheet-list { overflow-y: auto; flex: 1; padding: 0 16px 16px; }
.reviews-sheet-group-title { font-size: 12px; color: #cbb382; padding: 12px 0 6px; font-weight: 600; }
.reviews-sheet-item { width: 100%; text-align: left; padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; color: #e0e0e0; font-size: 14px; line-height: 1.5; cursor: pointer; margin-bottom: 8px; font-family: inherit; min-height: 44px; white-space: pre-line; }
.reviews-sheet-item:hover, .reviews-sheet-item.selected { border-color: #cbb382; background: rgba(203,179,130,0.12); }
.reviews-sheet-item.none { color: #888; font-style: italic; }

/* 篩選區 */
.reviews-browse-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.reviews-browse-head h3 { font-size: 17px; color: #cbb382; margin: 0; }
.reviews-browse-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.reviews-quick { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.reviews-quick-btn { padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(203,179,130,0.35); background: none; color: #b0b0b0; font-size: 13px; cursor: pointer; font-family: inherit; min-height: 44px; }
.reviews-quick-btn:hover { border-color: #cbb382; color: #fff; }
.reviews-quick-btn.active { background: rgba(203,179,130,0.35); color: #fff; border-color: #cbb382; }
.reviews-filter-toggle { flex-shrink: 0; padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(203,179,130,0.45); background: rgba(255,255,255,0.04); color: #cbb382; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; min-height: 44px; min-width: 88px; }
.reviews-filter-toggle:hover { border-color: #cbb382; background: rgba(203,179,130,0.12); color: #fff; }
.reviews-list-count { font-size: 14px; color: #b0b0b0; margin: 0 0 10px; }
.reviews-filter-panel { margin-bottom: 10px; }
.reviews-filter-panel[hidden] { display: none !important; }
.reviews-filter-panel-inner { padding: 14px; border: 1px solid rgba(203,179,130,0.25); border-radius: 12px; background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 12px; }
.reviews-filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reviews-filter-label { font-size: 13px; color: #b0b0b0; }
.reviews-filter-keyword,
.reviews-filter-select,
.reviews-filter-field .reviews-picker-btn { width: 100%; box-sizing: border-box; }
.reviews-filter-picker { font-size: 14px; min-height: 44px; }
.reviews-filter-field-clear { align-self: flex-start; background: none; border: none; color: #888; font-size: 13px; cursor: pointer; padding: 4px 0; min-height: 36px; font-family: inherit; }
.reviews-filter-field-clear:hover { color: #cbb382; text-decoration: underline; }
.reviews-filter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.reviews-filter-apply { flex: 1 1 140px; min-height: 44px; width: auto; }
.reviews-filter-clear-btn { flex: 1 1 120px; padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: none; color: #888; font-size: 14px; cursor: pointer; font-family: inherit; min-height: 44px; }
.reviews-filter-clear-btn:hover { color: #cbb382; border-color: rgba(203,179,130,0.4); }
.reviews-applied-summary { font-size: 13px; color: #888; margin-bottom: 12px; line-height: 1.6; word-break: break-word; }
.reviews-applied-summary[hidden] { display: none !important; }
.reviews-applied-summary .reviews-filter-clear { background: none; border: none; color: #cbb382; font-size: 13px; cursor: pointer; text-decoration: underline; font-family: inherit; min-height: 44px; padding: 4px 8px; margin-left: 4px; vertical-align: baseline; }
@media (max-width: 767px) {
    .reviews-browse-toolbar { flex-direction: column; align-items: stretch; }
    .reviews-filter-toggle { width: 100%; text-align: center; }
}
.reviews-filter-input { padding: 10px 12px; background: #252525; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; font-size: 14px; min-height: 44px; color-scheme: dark; box-sizing: border-box; }
.reviews-filter-select { padding: 10px 12px; background: #252525; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; font-size: 14px; color-scheme: dark; min-height: 44px; box-sizing: border-box; }
.reviews-cal-footer { margin-top: 12px; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }

/* 列表 — 計數僅在 list-count 顯示 */
.reviews-list { min-height: 80px; }
.reviews-skeleton { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.reviews-skeleton .sk-line { height: 12px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-bottom: 8px; animation: review-pulse 1.2s ease-in-out infinite; }
.reviews-skeleton .sk-line.w60 { width: 60%; }
.reviews-skeleton .sk-line.w40 { width: 40%; }
@keyframes review-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.review-card { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.review-card:last-child { border-bottom: none; }
.review-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-card-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.1); }
.review-card-meta { flex: 1; min-width: 0; }
.review-card-author { font-size: 14px; font-weight: 600; color: #fff; }
.review-card-time { font-size: 12px; color: #666; }
.review-event-badge { display: inline-block; max-width: 100%; margin-bottom: 8px; padding: 6px 10px; background: rgba(203,179,130,0.2); color: #cbb382; border-radius: 6px; font-size: 12px; line-height: 1.5; word-break: break-word; }
.review-content { font-size: 15px; color: #e0e0e0; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.review-edited { font-size: 11px; color: #666; margin-left: 6px; }
.review-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review-action-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #b0b0b0; font-size: 13px; cursor: pointer; padding: 8px 14px; border-radius: 8px; font-family: inherit; min-height: 44px; min-width: 44px; }
.review-action-btn:hover { color: #cbb382; border-color: rgba(203,179,130,0.4); }
.review-action-btn.danger:hover { color: #e57373; border-color: rgba(229,115,115,0.4); }
.reviews-empty, .reviews-error { text-align: center; padding: 32px 16px; color: #888; font-size: 14px; }
.reviews-error button { margin-top: 12px; padding: 10px 20px; background: #cbb382; color: #0f0f0f; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; min-height: 44px; }
.reviews-pagination { margin-top: 16px; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; }
.reviews-pagination button, .reviews-pagination .pagination-btn { padding: 10px 16px; background: rgba(203,179,130,0.2); border: 1px solid rgba(203,179,130,0.4); color: #cbb382; border-radius: 8px; cursor: pointer; font-size: 14px; text-decoration: none; min-height: 44px; font-family: inherit; }
.reviews-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 對話框 */
.reviews-dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9100; display: none; align-items: center; justify-content: center; padding: 16px; }
.reviews-dialog-overlay.open { display: flex; }
.reviews-dialog { background: #1a1a1a; border: 1px solid rgba(203,179,130,0.3); border-radius: 12px; padding: 20px; max-width: 400px; width: 100%; }
.reviews-dialog h4 { color: #cbb382; margin: 0 0 12px; font-size: 16px; }
.reviews-dialog label { display: block; margin: 8px 0; color: #e0e0e0; font-size: 14px; cursor: pointer; }
.reviews-dialog-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.reviews-dialog-actions button { padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; min-height: 44px; font-family: inherit; }
.reviews-dialog-cancel { background: rgba(255,255,255,0.08); color: #b0b0b0; }
.reviews-dialog-confirm { background: #cbb382; color: #0f0f0f; font-weight: 600; }
.reviews-dialog-confirm.danger { background: rgba(229,115,115,0.3); color: #e57373; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 768px) {
    .reviews-section { border-radius: 0; padding: 20px 16px; }
    .reviews-form-row { margin-bottom: 12px; }
}
