/**
 * OneTwenty Giveaways — Draw Results block (Dream Big Draws-style timeline).
 * Own markup + classes, so nothing collides with theme CSS.
 * Palette (portable): navy #14263a, violet #7c3aed, violet-deep #6d28d9,
 * violet-purple #a855f7, tint #f4efff, line #4c1d9540, body #374758, muted #64748b.
 */

.otg-draws {
	margin: 0 auto;
	text-align: center;
}

/* ---- Tab toggle ---- */
.otg-draws__tabs {
	display: inline-flex;
	gap: 4px;
	margin: 0 0 2.25rem;
	padding: 5px;
	background: #f4efff;
	border-radius: 999px;
}

.otg-draws__tab {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 10px 24px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #6d28d9;
	font-size: var(--ep-fs-sm, 0.875rem);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

a.otg-draws__tab:not(.is-active):hover {
	color: #4c1d95;
	text-decoration: none;
}

.otg-draws__tab.is-active {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	color: #fff;
}

/* ---- Panels ---- */
.otg-draws__panel {
	display: none;
	text-align: left;
}

.otg-draws__panel.is-active {
	display: block;
}

.otg-draws__heading {
	margin: 0 0 1.5rem;
	color: #14263a;
	font-size: var(--ep-fs-h2, 1.625rem);
	font-weight: 700;
	text-align: center;
}

.otg-draws__empty {
	margin: 0;
	color: #64748b;
	font-style: italic;
	text-align: center;
}

/* ---- Timeline ---- */
.otg-timeline {
	position: relative;
	margin: 0;
	padding: 0 0 0 44px;
	list-style: none;
}

.otg-timeline::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 14px;
	bottom: 14px;
	width: 2px;
	background: linear-gradient(180deg, #a855f7, #6d28d9);
	border-radius: 2px;
}

.otg-timeline__node {
	position: relative;
	margin-bottom: 1.5rem;
}

.otg-timeline__node:last-child {
	margin-bottom: 0;
}

.otg-timeline__dot {
	position: absolute;
	left: -37px;
	top: 15px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #7c3aed;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #7c3aed;
	animation: otg-draw-pulse 2s ease-out infinite;
}

@keyframes otg-draw-pulse {
	0% {
		box-shadow: 0 0 0 2px #7c3aed, 0 0 0 0 rgba(124, 58, 237, 0.45);
	}
	70% {
		box-shadow: 0 0 0 2px #7c3aed, 0 0 0 11px rgba(124, 58, 237, 0);
	}
	100% {
		box-shadow: 0 0 0 2px #7c3aed, 0 0 0 0 rgba(124, 58, 237, 0);
	}
}

/* ---- Date card ---- */
.otg-timeline__card {
	background: #fff;
	border: 1px solid #4c1d9540;
	border-radius: 12px;
	overflow: hidden;
}

.otg-timeline__date {
	margin: 0;
	padding: 12px 20px;
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	color: #fff;
	font-size: var(--ep-fs-xs, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ---- Winner rows ---- */
.otg-timeline__winners {
	margin: 0;
	padding: 0;
	list-style: none;
}

.otg-winner {
	padding: 14px 20px;
	border-top: 1px solid #4c1d9540;
	color: #374758;
	line-height: 1.5;
}

.otg-timeline__winners .otg-winner:first-child {
	border-top: 0;
}

.otg-winner__title {
	font-weight: 700;
	color: #14263a;
}

.otg-winner__name {
	color: #374758;
}

.otg-winner__ticket {
	margin-left: 2px;
	color: #7c3aed;
	font-weight: 600;
	white-space: nowrap;
}

/* ---- Pagination ---- */
.otg-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 2.25rem;
}

.otg-pager__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #4c1d9540;
	border-radius: 10px;
	background: #fff;
	color: #14263a;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

a.otg-pager__link:hover {
	border-color: #7c3aed;
	color: #6d28d9;
}

.otg-pager__link.is-current {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	border-color: transparent;
	color: #fff;
}

.otg-pager__gap {
	display: inline-flex;
	align-items: flex-end;
	padding: 0 4px;
	color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
	.otg-timeline__dot {
		animation: none;
	}
}
