/* ============================================
   Doorkeeper List — study314.jp Design System
   Version 2.1.0
   ============================================ */

/* ---- List Container ---- */
.doorkeeper-list {
	max-width: 48rem;
	margin: 0 auto;
	background: white;
	border-radius: 1.5rem;
	border: 1px solid #EAE8E3;
	padding: 2rem 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
	.doorkeeper-list {
		padding: 2.5rem 3rem;
	}
}

/* ---- Date Divider ---- */
.doorkeeper-list__date {
	font-family: 'Georgia', 'Times New Roman', serif;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1A365D;
	letter-spacing: 0.08em;
	padding: 1.75rem 0 0.375rem;
	border-top: 1px solid #EAE8E3;
	margin-top: 0.25rem;
}

.doorkeeper-list__date:first-child {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

/* ---- Event Row ---- */
.doorkeeper-list__event {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1rem 1rem;
	margin: 0.25rem -1rem;
	border-radius: 0.75rem;
	transition: background 0.35s ease;
}

.doorkeeper-list__event:hover {
	background: #F3F2F0;
}

@media (min-width: 640px) {
	.doorkeeper-list__event {
		flex-direction: row;
		align-items: center;
		gap: 1.25rem;
	}
}

/* ---- Time ---- */
.doorkeeper-list__time {
	font-family: monospace;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #8A8683;
	letter-spacing: 0.05em;
	white-space: nowrap;
	flex-shrink: 0;
	padding-top: 0.1875rem;
	min-width: 6.5rem;
}

@media (min-width: 640px) {
	.doorkeeper-list__time {
		padding-top: 0;
	}
}

/* ---- Body (title + button) ---- */
.doorkeeper-list__body {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 1.25rem;
}

/* ---- Title ---- */
.doorkeeper-list__title {
	flex: 1 1 200px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #2C2A29;
	text-decoration: none;
	line-height: 1.7;
	letter-spacing: 0.025em;
	transition: color 0.3s;
}

.doorkeeper-list__title:hover {
	color: #1A365D;
}

/* ---- Button ---- */
.doorkeeper-list__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	flex-shrink: 0;
	background: #1A365D;
	color: white;
	padding: 0.4375rem 1.125rem;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 8px rgba(26, 54, 93, 0.18);
}

.doorkeeper-list__btn svg {
	width: 12px;
	height: 12px;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.doorkeeper-list__btn:hover {
	background: #2A4A7F;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(26, 54, 93, 0.28);
}

.doorkeeper-list__btn:hover svg {
	transform: translateX(3px);
}

/* ---- Last Update ---- */
.doorkeeper-list__updated {
	font-family: monospace;
	font-size: 0.5625rem;
	color: #8A8683;
	letter-spacing: 0.06em;
	text-align: right;
	margin-top: 1.5rem;
	opacity: 0.5;
}

/* ============================================
   Entrance Animation
   ============================================ */
@keyframes doorkeeper-fadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.doorkeeper-list__event {
	animation: doorkeeper-fadeUp 0.5s ease both;
}

.doorkeeper-list__event:nth-child(1)  { animation-delay: 0s; }
.doorkeeper-list__event:nth-child(2)  { animation-delay: 0.06s; }
.doorkeeper-list__event:nth-child(3)  { animation-delay: 0.12s; }
.doorkeeper-list__event:nth-child(4)  { animation-delay: 0.18s; }
.doorkeeper-list__event:nth-child(5)  { animation-delay: 0.24s; }
.doorkeeper-list__event:nth-child(6)  { animation-delay: 0.3s; }
.doorkeeper-list__event:nth-child(7)  { animation-delay: 0.36s; }
.doorkeeper-list__event:nth-child(8)  { animation-delay: 0.42s; }
.doorkeeper-list__event:nth-child(9)  { animation-delay: 0.48s; }
.doorkeeper-list__event:nth-child(10) { animation-delay: 0.54s; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
	.doorkeeper-list__event {
		animation: none;
	}
}
