/**
 * Single Event Page Styles
 * Modern design with CGT branding
 */

/* Container */
.cgt-single-event {
	background: #fff;
	max-width: 1000px;
	margin: 40px auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;
}

.event-container {
	padding: 0;
}

/* Hero Section with Date */
.event-hero {
	background: linear-gradient(135deg, #CE1010 0%, #A30F0F 100%);
	color: white;
	padding: 50px 40px;
	position: relative;
	overflow: hidden;
}

.event-hero::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 300px;
	height: 300px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	transform: translate(50%, -50%);
}

.event-hero-content {
	position: relative;
	z-index: 1;
}

/* Status Badge */
.event-status-badge {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 25px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.event-status-badge.upcoming {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.4);
}

.event-status-badge.past {
	background: rgba(0, 0, 0, 0.2);
	color: rgba(255, 255, 255, 0.8);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Calendar Date Display */
.event-date-display {
	display: flex;
	align-items: center;
	gap: 25px;
	margin-bottom: 30px;
}

.event-calendar-icon {
	background: white;
	width: 90px;
	height: 90px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
}

.calendar-month {
	background: #1a1a1a;
	color: white;
	text-align: center;
	padding: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
}

.calendar-day {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	font-weight: 800;
	color: #CE1010;
}

.event-date-details {
	flex: 1;
}

.event-day-name {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 5px;
	opacity: 0.95;
	text-transform: capitalize;
}

.event-full-date {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
	text-transform: capitalize;
}

.event-time {
	font-size: 16px;
	font-weight: 600;
	opacity: 0.9;
	display: inline-block;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
}

/* Event Title */
.event-title {
	font-size: 42px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 25px 0;
	color: white;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Location */
.event-location {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: rgba(255, 255, 255, 0.15);
	padding: 18px 22px;
	border-radius: 10px;
	border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.location-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.location-text {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	opacity: 0.95;
}

/* Featured Image */
.event-featured-image {
	position: relative;
	overflow: hidden;
}

.event-featured-img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.event-featured-image:hover .event-featured-img {
	transform: scale(1.02);
}

/* Content Section */
.event-content-section {
	padding: 45px 40px;
	border-bottom: 1px solid #e5e7eb;
}

.section-title {
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 25px 0;
	padding-bottom: 15px;
	border-bottom: 3px solid #CE1010;
}

.event-content {
	font-size: 17px;
	line-height: 1.8;
	color: #374151;
}

.event-content p {
	margin-bottom: 18px;
}

.event-content h2,
.event-content h3 {
	color: #1f2937;
	margin-top: 30px;
	margin-bottom: 15px;
	font-weight: 700;
}

.event-content h2 {
	font-size: 26px;
}

.event-content h3 {
	font-size: 21px;
}

.event-content ul,
.event-content ol {
	margin-bottom: 18px;
	padding-left: 28px;
}

.event-content li {
	margin-bottom: 10px;
}

.event-content a {
	color: #CE1010;
	text-decoration: underline;
	font-weight: 600;
	transition: color 0.2s;
}

.event-content a:hover {
	color: #A30F0F;
}

/* Info Box */
.event-info-box {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 40px;
	margin: 0;
	border-top: 4px solid #CE1010;
}

.info-box-title {
	font-size: 22px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 25px 0;
}

.info-box-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 25px;
}

.info-item {
	background: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border-left: 4px solid #CE1010;
}

.info-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	margin-bottom: 8px;
}

.info-value {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.5;
}

/* Document Section */
.event-document {
	padding: 40px;
	background: #fef3c7;
	border-left: 5px solid #f59e0b;
}

.document-title {
	font-size: 20px;
	font-weight: 700;
	color: #92400e;
	margin: 0 0 20px 0;
}

.document-download-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 28px;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.document-download-button:hover {
	background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
	color: white;
}

.download-icon {
	font-size: 22px;
}

.download-text {
	font-size: 15px;
}

/* Navigation */
.event-navigation {
	display: flex;
	gap: 20px;
	padding: 35px 40px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
}

.nav-previous,
.nav-next {
	flex: 1;
}

.nav-previous a,
.nav-next a {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px;
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	text-decoration: none;
	color: #1f2937;
	transition: all 0.3s ease;
	height: 100%;
}

.nav-next a {
	justify-content: flex-end;
	text-align: right;
}

.nav-previous a:hover,
.nav-next a:hover {
	background: linear-gradient(135deg, #CE1010 0%, #A30F0F 100%);
	border-color: #CE1010;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(200, 16, 46, 0.25);
}

.nav-arrow {
	font-size: 28px;
	font-weight: 800;
	flex-shrink: 0;
}

.nav-content {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nav-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.7;
}

.nav-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.nav-date {
	font-size: 13px;
	opacity: 0.8;
}

/* Back Button */
.event-back {
	text-align: center;
	padding: 30px 40px;
	background: white;
}

.back-button {
	display: inline-block;
	padding: 14px 35px;
	background: linear-gradient(135deg, #CE1010 0%, #A30F0F 100%);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.back-button:hover {
	background: linear-gradient(135deg, #A30F0F 0%, #800A1E 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
	color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	.event-hero {
		padding: 35px 25px;
	}

	.event-date-display {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.event-calendar-icon {
		width: 80px;
		height: 80px;
	}

	.calendar-day {
		font-size: 32px;
	}

	.event-title {
		font-size: 32px;
	}

	.event-full-date {
		font-size: 20px;
	}

	.event-content-section {
		padding: 30px 25px;
	}

	.event-info-box {
		padding: 25px;
	}

	.info-box-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.event-document {
		padding: 25px;
	}

	.event-navigation {
		flex-direction: column;
		padding: 25px;
	}

	.nav-next a {
		justify-content: flex-start;
		text-align: left;
	}

	.event-back {
		padding: 25px;
	}
}

@media (max-width: 480px) {
	.cgt-single-event {
		margin: 20px 10px;
		border-radius: 8px;
	}

	.event-hero {
		padding: 25px 20px;
	}

	.event-title {
		font-size: 26px;
	}

	.section-title {
		font-size: 20px;
	}

	.info-item {
		padding: 15px;
	}

	.document-download-button {
		width: 100%;
		justify-content: center;
	}
}
