/**
 * Single event page styles.
 *
 * @package Tobalt_Renginiai
 * @author  Tobalt — https://tobalt.lt
 *
 * Palette:
 *   Teal:  #003333
 *   Olive: #008E67
 *   Gray:  #54595F
 *   Font:  "Poppins", sans-serif
 */

/* ==========================================================================
   Base
   ========================================================================== */

.tr-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 60px;
	font-family: "Poppins", system-ui, sans-serif;
	color: #1a1a1a;
	line-height: 1.6;
}

.tr-single *,
.tr-single *::before,
.tr-single *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.tr-single__hero {
	background: #003333;
	border-radius: 12px;
	margin: 32px 0 32px;
	overflow: hidden;
}

.tr-single__hero-inner {
	display: flex;
	align-items: stretch;
}

/* ── Date Column ────────────────────────────────────── */

.tr-single__date-col {
	flex: 0 0 160px;
	background: rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 24px 28px;
	gap: 2px;
}

.tr-single__date-category {
	background: #008E67;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 0 0 6px 6px;
	margin-bottom: 12px;
	white-space: nowrap;
}

.tr-single__date-day {
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.tr-single__date-month {
	font-size: 20px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
	text-transform: capitalize;
}

.tr-single__date-year {
	font-size: 18px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
}

/* ── Hero Content ───────────────────────────────────── */

.tr-single__hero-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px 36px;
	min-width: 0;
}

.tr-single__title {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.25;
}

.tr-single__hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.tr-single__hero-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
}

.tr-single__hero-meta-item svg {
	color: #008E67;
	flex-shrink: 0;
}

/* ==========================================================================
   Body — Two-Column Layout
   ========================================================================== */

.tr-single__body {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 32px;
	align-items: start;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.tr-single__thumbnail {
	margin-bottom: 24px;
	border-radius: 10px;
	overflow: hidden;
}

.tr-single__img {
	width: 100%;
	height: auto;
	display: block;
}

.tr-single__content {
	font-size: 16px;
	line-height: 1.7;
}

.tr-single__content h2,
.tr-single__content h3,
.tr-single__content h4 {
	color: #003333;
	margin-top: 1.5em;
}

.tr-single__content a {
	color: #003333;
	text-decoration: underline;
}

.tr-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.tr-single__sidebar {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Details Card ───────────────────────────────────── */

.tr-single__details-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px;
}

.tr-single__details-heading {
	font-size: 16px;
	font-weight: 700;
	color: #003333;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #008E67;
}

.tr-single__details-list {
	margin: 0;
	padding: 0;
}

.tr-single__detail {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f1;
}

.tr-single__detail:last-child {
	border-bottom: none;
}

.tr-single__detail dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #54595F;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.tr-single__detail dt svg {
	color: #008E67;
	flex-shrink: 0;
}

.tr-single__detail dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.tr-single__badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

.tr-single__badge--full {
	background: #FEE2E2;
	color: #991B1B;
}

/* ── Tags ───────────────────────────────────────────── */

.tr-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f1;
}

.tr-single__tag {
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	background: #f3f4f6;
	color: #54595F;
}

/* ── RSVP Card ──────────────────────────────────────── */

.tr-single__rsvp-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 24px;
}

.tr-single__rsvp-heading {
	font-size: 16px;
	font-weight: 700;
	color: #003333;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #008E67;
}

.tr-single__rsvp-status {
	font-size: 14px;
	color: #54595F;
	margin: 0 0 12px;
}

.tr-single__rsvp-status--registered {
	color: #166534;
	font-weight: 600;
}

.tr-single__rsvp-status--full {
	color: #991B1B;
	font-weight: 600;
}

.tr-single__rsvp-status a {
	color: #003333;
	font-weight: 600;
}

/* ── RSVP Form ──────────────────────────────────────── */

.tr-single__rsvp-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tr-single__rsvp-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.tr-single__rsvp-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	color: #1a1a1a;
	background: #fff;
	transition: border-color 0.15s;
}

.tr-single__rsvp-field input:focus {
	border-color: #003333;
	outline: 2px solid #003333;
	outline-offset: 1px;
}

/* ── RSVP Button ────────────────────────────────────── */

.tr-single__rsvp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 24px;
	background: #008E67;
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.15s;
}

.tr-single__rsvp-btn:hover {
	background: #007A58;
	color: #fff;
	text-decoration: none;
}

.tr-single__rsvp-btn:focus {
	outline: 2px solid #003333;
	outline-offset: 2px;
}

.tr-single__rsvp-btn--cancel {
	background: #DC2626;
	color: #fff;
}

.tr-single__rsvp-btn--cancel:hover {
	background: #B91C1C;
	color: #fff;
}

.tr-single__rsvp-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
}

.tr-single__rsvp-message--success {
	background: #F0FDF4;
	color: #166534;
	border: 1px solid #BBF7D0;
}

.tr-single__rsvp-message--error {
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

/* ==========================================================================
   Back Link
   ========================================================================== */

.tr-single__back {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.tr-single__back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #003333;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s;
}

.tr-single__back-link:hover {
	color: #008E67;
	text-decoration: none;
}

.tr-single__back-link:focus {
	outline: 2px solid #003333;
	outline-offset: 2px;
}

/* ==========================================================================
   Responsive — Tablet (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
	.tr-single__body {
		grid-template-columns: 1fr;
	}

	.tr-single__sidebar {
		position: static;
	}
}

/* ==========================================================================
   Responsive — Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
	.tr-single {
		padding: 0 16px 40px;
	}

	.tr-single__hero {
		margin: 20px 0 24px;
	}

	.tr-single__hero-inner {
		flex-direction: column;
	}

	.tr-single__date-col {
		flex: none;
		flex-direction: row;
		padding: 16px 20px;
		gap: 8px;
		align-items: baseline;
	}

	.tr-single__date-category {
		border-radius: 4px;
		margin-bottom: 0;
		margin-right: auto;
	}

	.tr-single__date-day {
		font-size: 36px;
	}

	.tr-single__date-month {
		font-size: 16px;
	}

	.tr-single__date-year {
		font-size: 16px;
	}

	.tr-single__hero-content {
		padding: 20px;
	}

	.tr-single__title {
		font-size: 22px;
	}
}
