/* Footori Trip Calendar v0.1 — .ftc- 격리, 공홈 그린 톤 */
.ftc-wrapper {
	--ftc-accent: #2e7d4f;
	--ftc-accent-deep: #1f5c39;
	--ftc-accent-soft: #eaf4ee;
	--ftc-hot: #e8833a;
	--ftc-ink: #1b2430;
	--ftc-muted: #68727f;
	--ftc-line: #e6e9ed;
	--ftc-panel: #f5f8f6;
	margin: 0 0 2rem;
	color: var(--ftc-ink);
	font-size: 14px;
}

/* ── 탭 (TBP 문법) ── */
.ftc-wrapper .ftc-tabs {
	display: flex;
	gap: 6px;
	margin: 0 0 14px;
}
.ftc-wrapper .ftc-tab {
	flex: 1 1 0;
	padding: 10px 0;
	border: 1px solid var(--ftc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ftc-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ftc-wrapper .ftc-tab--active {
	background: var(--ftc-accent);
	border-color: var(--ftc-accent);
	color: #fff;
}

/* ── 월/주 네비 ── */
.ftc-wrapper .ftc-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 14px;
}
.ftc-wrapper .ftc-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--ftc-accent);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(46, 125, 79, 0.28);
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.ftc-wrapper .ftc-nav__btn svg { display: block; }
.ftc-wrapper .ftc-nav__btn:hover {
	background: var(--ftc-accent-deep);
	box-shadow: 0 4px 12px rgba(46, 125, 79, 0.36);
}
.ftc-wrapper .ftc-nav__btn:active {
	transform: scale(0.92);
}
.ftc-wrapper .ftc-nav__label {
	min-width: 130px;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
}

/* ── 월별 그리드 ── */
.ftc-wrapper .ftc-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	border: 1px solid var(--ftc-line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--ftc-line);
	gap: 1px;
}
.ftc-wrapper .ftc-grid__head {
	background: var(--ftc-panel);
	padding: 8px 0;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--ftc-muted);
}
.ftc-wrapper .ftc-cell {
	background: #fff;
	min-height: 86px;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.ftc-wrapper .ftc-cell--empty {
	background: #fafbfc;
}
.ftc-wrapper .ftc-cell--today {
	background: var(--ftc-accent-soft);
}
.ftc-wrapper .ftc-cell__num {
	font-size: 12px;
	font-weight: 700;
	color: var(--ftc-ink);
}
.ftc-wrapper .ftc-sun { color: #d0342c; }
.ftc-wrapper .ftc-sat { color: #2563c9; }

.ftc-wrapper .ftc-entry {
	display: block;
	padding: 3px 7px;
	border-left: 3px solid var(--ftc-accent);
	border-radius: 6px;
	background: var(--ftc-accent-soft);
	color: var(--ftc-accent-deep);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	word-break: keep-all;
	overflow: hidden;
}
.ftc-wrapper a.ftc-entry:hover {
	background: var(--ftc-accent);
	color: #fff;
}
.ftc-wrapper .ftc-entry--past {
	opacity: 0.45;
	filter: grayscale(0.5);
}

/* ── 주간 뷰 ── */
.ftc-wrapper .ftc-week {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin: 0 0 16px;
}
.ftc-wrapper .ftc-week__day {
	border: 1px solid var(--ftc-line);
	border-radius: 10px;
	background: #fff;
	padding: 10px 4px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.ftc-wrapper .ftc-week__label {
	font-size: 12.5px;
	font-weight: 700;
}
.ftc-wrapper .ftc-week__dot {
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--ftc-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}
.ftc-wrapper .ftc-wcards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
}
.ftc-wrapper .ftc-wcard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	border: 1px solid var(--ftc-line);
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ftc-wrapper a.ftc-wcard:hover {
	transform: translateY(-2px);
	border-color: var(--ftc-accent);
	box-shadow: 0 8px 20px rgba(27, 36, 48, 0.09);
}
.ftc-wrapper .ftc-wcard__thumb {
	display: block;
	margin: -14px -14px 4px;
	aspect-ratio: 16 / 9;
	background: var(--ftc-panel);
	overflow: hidden;
}
.ftc-wrapper .ftc-wcard__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ftc-wrapper .ftc-wcard__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	word-break: keep-all;
}
.ftc-wrapper .ftc-wcard__meta {
	font-size: 12px;
	color: var(--ftc-muted);
}

/* ── 상태 ── */
.ftc-wrapper .ftc-state {
	padding: 32px 16px;
	border: 1px dashed var(--ftc-line);
	border-radius: 12px;
	text-align: center;
	color: var(--ftc-muted);
	margin: 12px 0 0;
}
.ftc-wrapper .ftc-state--error {
	color: #c0392b;
}

@media (prefers-reduced-motion: reduce) {
	.ftc-wrapper * { transition: none !important; }
}

/* ── 모바일: 월 그리드 → 날짜별 목록 대체는 v0.2, 우선 칸 축소 ── */
@media (max-width: 640px) {
	.ftc-wrapper .ftc-cell { min-height: 64px; padding: 4px; }
	.ftc-wrapper .ftc-entry { font-size: 10px; padding: 2px 4px; }
	.ftc-wrapper .ftc-week { gap: 3px; }
	.ftc-wrapper .ftc-week__label { font-size: 11px; }
	.ftc-wrapper .ftc-wcards { grid-template-columns: 1fr; }
}

/* ===== 0.2.0: 목록 보기 ===== */
.ftc-wrapper .ftc-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ftc-wrapper .ftc-lrow {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--ftc-line);
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ftc-wrapper a.ftc-lrow:hover {
	transform: translateY(-1px);
	border-color: var(--ftc-accent);
	box-shadow: 0 6px 16px rgba(27, 36, 48, 0.08);
}
.ftc-wrapper .ftc-lrow__thumb {
	flex: 0 0 84px;
	height: 60px;
	border-radius: 10px;
	background: var(--ftc-panel);
	overflow: hidden;
}
.ftc-wrapper .ftc-lrow__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ftc-wrapper .ftc-lrow__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.ftc-wrapper .ftc-lrow__name {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	word-break: keep-all;
}
.ftc-wrapper .ftc-lrow__meta {
	font-size: 12px;
	color: var(--ftc-muted);
}
.ftc-wrapper .ftc-lrow__date {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--ftc-accent-deep);
	white-space: nowrap;
}
@media (max-width: 640px) {
	.ftc-wrapper .ftc-lrow__thumb { flex-basis: 64px; height: 48px; }
}
