/* ============================================================
   com_agolf – 車票卡片共用樣式  ticket-card.css
   events (列表) 與 event (詳情) 共用
   ============================================================ */

/* ── 共用變數 ── */
:root {
  --go-gold: #c89a40;
  --go-gold-light: #faf6ee;
  --go-gold-bg: #fff6e6;
  --go-gold-border: #f2e2bf;
  --go-red: #d64545;
  --go-border: #e5e7eb;
  --go-text: #333;
  --go-text-light: #555;
  --go-text-muted: #777;
  --go-bg: #faf9f6;
  --go-white: #fff;
  --go-radius: 16px;
}

/* ── 容器 ── */
.go-container {
  margin: 0 auto;
  padding: 20px;
  max-width: 1100px;
}

/* ── 列表容器 ── */
.go-tickets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

/* ── 車票卡片 Grid ── */
.go-ticket {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 240px 200px !important;
  align-items: center;
  border: 2px solid var(--go-border);
  border-radius: var(--go-radius);
  min-height: 200px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background: var(--go-white);
}
.go-ticket.tm-has    { border-color: var(--go-gold); }
.go-ticket.tm-none   { border-color: #4caf50; }
.go-ticket.tm-buyout { border-color: #d32f2f; }

/* 細橫紋背景 移除 
.go-ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 22px,
    rgba(200,154,64,0.08) 22px 23px
  );
  pointer-events: none;
  z-index: 0;
}
*/
.go-ticket > * { position: relative; z-index: 1; }

/* 虛線分隔 移除 
.go-ticket::before {
  content: "";
  position: absolute;
  left: 150px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, transparent 0 8px, var(--go-border) 8px 16px);
  z-index: 1;
}
*/

/* ── 狀態標籤 ── */
.go-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}
.go-tag small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}
.go-tag--open { background: var(--go-gold); color: var(--go-white); border: 2px solid var(--go-gold); }
.go-tag--full { background: #fff5e6; color: var(--go-gold); border: 2px solid var(--go-gold); }
.go-tag--noticket { background: #4caf50; color: #fff; border: 2px solid #4caf50; }
.go-tag--nocancel { background: #d32f2f; color: #fff; border: 2px solid #d32f2f; }

/* ── 日期欄 ── */
.go-datecol {
  background: var(--go-gold-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* border-right: 1px dashed var(--go-border); 移除框線 */
  height: 100%;
  padding: 16px 8px;
}
.go-date { font-weight: 700; color: var(--go-gold); font-size: 18px; }
.go-week { color: #999; font-size: 14px; }
.go-time { color: #666; font-size: 16px; margin-top: 4px; }

/* ── 主資訊區 ── */
.go-main { padding: 16px 18px; min-width: 0; }
.go-loc {
  font-size: 14px;
  color: var(--go-text-muted);
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.go-locicon { color: var(--go-red); margin-right: 6px; font-size: 14px; }
.go-title {
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  color: var(--go-gold);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.go-info { font-size: 14px; color: var(--go-text-light); margin: 0 0 4px; }
.go-people { font-size: 14px; color: var(--go-text-light); margin: 0; word-break: break-all; }
.go-waitlist-people { color: var(--go-red); margin-top: 2px; }

/* 候補高亮 */
.go-wait { color: var(--go-red); font-weight: 600; }
.go-waiticon { color: var(--go-red); margin-right: 4px; font-size: 13px; }

/* ── 費用區 ── */
.go-fee {
  /* border-left: 1px dashed var(--go-border); 移除框線 */
  padding: 16px 18px;
  font-size: 14px;
  color: var(--go-text-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.go-fee div { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap !important; }
.go-fee span { color: var(--go-text); font-weight: 600; }

/* ── 操作按鈕區 ── */
.go-cta {
  /* border-left: 1px dashed var(--go-border); 移除框線 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 100%;
  background: #fafafa;
  padding: 12px 16px;
}
.go-cta .go-btn,
.go-cta .go-btn-outline {
  width: 100%;
  box-sizing: border-box;
}

/* ── 按鈕共用樣式 ── */
.go-btn {
  background: var(--go-gold);
  color: var(--go-white);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 14px;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.go-btn:hover { filter: brightness(.95); color: var(--go-white); text-decoration: none; }
.go-btn--full { background: var(--go-red); color: var(--go-white); }
.go-btn--full:hover { color: var(--go-white); }
.go-btn--registered {
  background: #bbb;
  color: #fff;
  cursor: not-allowed;
  opacity: .7;
}
.go-btn--registered:hover { filter: none; }
.go-btn--conflict {
  background: #f5f5f5;
  color: #e67e22;
  border: 1px solid #e67e22;
  cursor: not-allowed;
  opacity: .85;
  font-size: 13px;
}
.go-btn--conflict:hover { filter: none; }
.go-btn-outline {
  background: transparent;
  color: var(--go-gold);
  border: 1px solid var(--go-gold);
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  min-width: 120px;
  text-align: center;
  display: inline-block;
  transition: all .2s ease;
}
.go-btn-outline:hover,
.go-cta a.go-btn-outline:hover {
  background: var(--go-gold);
  color: #fff !important;
  text-decoration: none;
}

/* 有票/無票背景 */
.go-ticket.status-open { background: var(--go-white); }
.go-ticket.status-full { background: #fdfbf6; }

/* ── 無資料 ── */
.go-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--go-text-muted);
  font-size: 16px;
}
.go-empty i { font-size: 48px; color: var(--go-border); margin-bottom: 16px; display: block; }


/* ══════════════════════════════════════
   RWD 響應式
   ══════════════════════════════════════ */

/* 平板尺寸 */
@media (max-width: 900px) {
  .go-ticket {
    grid-template-columns: 120px minmax(0, 1fr) 160px !important;
  }
  .go-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    /* border-left: 0; */
    /* border-top: 1px dashed var(--go-border); 移除框線 */
    padding: 12px;
    background: var(--go-white);
  }
}

/* 手機尺寸 */
@media (max-width: 720px) {
  .go-ticket {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }
  .go-ticket::before { display: none; }
  .go-datecol {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    border: 0;
    /* border-bottom: 1px dashed var(--go-border); 移除框線 */
    width: 100%;
    padding: 12px 16px;
  }
  .go-main { /* border-bottom: 1px dashed var(--go-border); 移除框線 */ }
  .go-fee {
    /* border-left: 0; */
    /* border-bottom: 1px dashed var(--go-border); 移除框線 */
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .go-fee div {
    white-space: normal !important;
  }
  .go-cta {
    grid-column: auto;
    /* border-left: 0; */
    background: var(--go-white);
    padding: 12px;
    flex-direction: row;
  }
  .go-btn { width: 100%; min-width: 0; }
  .go-btn-outline { width: 100%; min-width: 0; }
  .go-tag { top: 8px; left: 8px; font-size: 12px; }
}
