/* Event Details Styles */

.agcga-event-details {
	max-width: 1000px;
	margin: 2rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #333;
}

/* Event Header */
.agcga-event-header {
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 2rem;
	margin-bottom: 1.5rem;
}

.agcga-event-title {
	font-size: 1.8rem;
	font-weight: 600;
	color: #333;
	margin-top: 0;
	margin-bottom: 1.5rem;
	line-height: 1.3;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 1rem;
}

/* Event Meta Information */
.agcga-event-meta {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}

.agcga-event-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.agcga-event-meta-icon {
	width: 40px;
	height: 40px;
	background-color: #f8f9fa;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d7282f;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.agcga-event-meta-content label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	color: #666;
	margin-bottom: 0.25rem;
}

.agcga-event-meta-content p {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
}

/* Event Content */
.agcga-event-content {
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 2rem;
}

.agcga-event-description h3 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #333;
	margin-top: 0;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 1rem;
}

.agcga-event-description h3 i {
	color: #d7282f;
}

.agcga-event-description-content {
	line-height: 1.6;
}

.agcga-event-description-content p {
	margin-bottom: 1rem;
}

.agcga-event-description-content img {
	max-width: 100%;
	height: auto !important;
	display: block;
	margin: 1rem 0;
	object-fit: contain;
	width: auto !important;
}

.agcga-event-description-content ul,
.agcga-event-description-content ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.agcga-event-description-content li {
	margin-bottom: 0.5rem;
}

/* Iframe specific styles for event details */
.agcga-iframe-container {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
	margin: 1rem 0;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.agcga-iframe {
	width: 100%;
	height: 100%;
	border: none;
	background: #fff;
}

.agcga-iframe-fallback {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.agcga-iframe-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100%;
	padding: 2rem;
}

.agcga-iframe-error h3 {
	margin-bottom: 1rem;
	color: #d7282f;
}

.agcga-iframe-error p {
	margin-bottom: 1.5rem;
	max-width: 500px;
}

/* Event Actions */
.agcga-event-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 2px solid #f0f0f0;
}

.agcga-event-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.agcga-event-button-primary {
	background-color: #d7282f;
	color: white;
}

.agcga-event-button-primary:hover {
	background-color: #b5151c;
	color: white;
}

.agcga-event-button-secondary {
	background-color: #f8f9fa;
	color: #333;
	border: 1px solid #ddd;
}

.agcga-event-button-secondary:hover {
	background-color: #e9ecef;
	color: #333;
}

/* Not Found State */
.agcga-event-not-found {
	max-width: 500px;
	margin: 3rem auto;
	text-align: center;
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 3rem 2rem;
}

.agcga-event-not-found-icon {
	width: 80px;
	height: 80px;
	background-color: #f8f9fa;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.agcga-event-not-found-icon i {
	font-size: 2.5rem;
	color: #d7282f;
}

.agcga-event-not-found h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #333;
}

.agcga-event-not-found p {
	color: #666;
	margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.agcga-event-header,
	.agcga-event-content {
		padding: 1.5rem;
	}

	.agcga-event-title {
		font-size: 1.5rem;
	}

	.agcga-event-meta {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.agcga-event-actions {
		flex-direction: column;
		gap: 1rem;
	}

	.agcga-event-button {
		width: 100%;
		justify-content: center;
	}

	/* Responsive iframe adjustments */
	.agcga-iframe-container {
		height: 500px;
	}
}

@media (max-width: 480px) {
	.agcga-iframe-container {
		height: 400px;
	}
}
