/* css/record.css */
#screen-record {
  background: #f8fafc;
}

.record-header {
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
  background: transparent;
}
.record-header h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-100);
}

/* CALENDAR CARD CONTAINER */
.record-calendar {
  background: #ffffff;
  padding: 18px 14px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin: 0;
}

.record-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 8px;
}
.record-cal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-100);
}
.record-cal-header button {
  background: transparent;
  border: none;
  color: var(--text-400);
  padding: 4px;
}

.record-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-300);
  margin-bottom: 6px;
}
.record-cal-days div:first-child {
  color: #ef4444;
}

.record-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  align-content: start;
  grid-auto-rows: 70px;
}

.record-cal-cell {
  height: 70px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5px;
  box-sizing: border-box;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s;
}
.record-cal-cell:not(.empty) {
  /* removed background box */
}
.record-cal-cell:not(.empty):active {
  background: rgba(0,0,0,0.05);
}
.record-cal-cell.has-record {
  /* removed border and background for cleaner look */
}
.record-cal-cell.selected {
  background: transparent !important;
  border: 2px solid var(--text-100);
}

.day-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-200);
  z-index: 1;
}
.record-cal-grid .record-cal-cell:nth-child(7n+1) .day-num {
  color: #ef4444;
}

.record-badge {
  position: absolute;
  bottom: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 2px;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  line-height: 1.15;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92%;
  box-sizing: border-box;
}

.record-badge-course {
  font-size: 9.5px;
  font-weight: 700;
  color: #3b82f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  margin-bottom: 1px;
}

.record-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.record-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.record-date {
  font-size: 13px;
  color: #007aff;
  font-weight: 800;
}

.record-score-box {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.score-num {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
}
.score-unit {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.record-course-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.record-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.record-btn-del {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  background: #fee2e2;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.record-btn-edit {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  background: #04122d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.score-unit {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-400);
}

.record-action {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  border: none;
}

/* 타수 추이 */
.rec-trend { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:12px 14px 8px; margin:-6px 0 6px; }
.rec-trend-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:12.5px; font-weight:800; color:#0f172a; margin-bottom:2px; }
.rec-trend-msg { font-size:11.5px; font-weight:600; color:#64748b; }
.rec-trend-foot { display:flex; justify-content:space-between; font-size:10.5px; font-weight:600; color:#94a3b8; }
.rec-trend-foot span:nth-child(2) { color:#d97706; }

/* 같은 날 라운드 추가 */
.rec-add-round { width:100%; padding:12px; border-radius:12px; border:1.5px dashed #cbd5e1; background:#fff; color:#334155; font-size:14px; font-weight:800; cursor:pointer; }
.record-badge-more { font-size:9px; font-weight:800; color:#2563eb; }

/* 홀별 입력 */
.rec-holes { margin-top:10px; border-top:1px dashed #e2e8f0; padding-top:8px; }
.rec-holes summary { font-size:12px; font-weight:800; color:#2563eb; cursor:pointer; list-style:none; }
.rec-holes summary::-webkit-details-marker { display:none; }
.rec-holes summary::before { content:'＋ '; }
.rec-holes[open] summary::before { content:'－ '; }
.rec-holes summary span { color:#94a3b8; font-weight:600; }
.rec-holes-label { font-size:10.5px; font-weight:700; color:#64748b; margin:8px 0 4px; }
.rec-holes-grid { display:grid; grid-template-columns:repeat(9, 1fr); gap:3px; }
.rec-holes-grid label { display:flex; flex-direction:column; align-items:center; gap:2px; }
.rec-holes-grid label span { font-size:9.5px; font-weight:700; color:#94a3b8; }
.rec-holes-grid input { width:100%; height:32px; border:1px solid #e2e8f0; border-radius:6px; background:#f8fafc; text-align:center; font-size:13px; font-weight:800; color:#0f172a; padding:0; -moz-appearance:textfield; }
.rec-holes-grid input::-webkit-outer-spin-button, .rec-holes-grid input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.rec-holes-hint { font-size:10.5px; color:#94a3b8; margin-top:6px; }
.rec-nine { align-self:center; font-size:11px; font-weight:800; color:#7c3aed; background:#f5f3ff; border:1px solid #ede9fe; border-radius:6px; padding:2px 6px; margin-right:6px; }
.rec-nine-check { display:flex; align-items:center; gap:6px; margin-top:10px; font-size:12px; font-weight:700; color:#334155; }
.rec-nine-check input { -webkit-appearance:checkbox; appearance:auto; width:16px; height:16px; accent-color:#007aff; }
.rec-nine-check span { color:#94a3b8; font-weight:600; font-size:11px; }
