﻿/**
 * Events Calendar - Frontend Styles
 * Replica exacta de EventsListingNew.tsx (project_event_custom)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===================================
   EVENTS LISTING
   =================================== */

/* ------- Filters ------- */
.ecl-filters-wrap {
	background: #ffffff;
	padding: 48px 0;
}

.ecl-filters-inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

@media (min-width: 768px) {
	.ecl-filters-inner {
		padding: 0 48px;
	}
}

.ecl-filter {
	padding: 10px 18px;
	background: #ffffff;
	color: #6b6b6b;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.ecl-filter {
		padding: 12px 24px;
		font-size: 16px;
	}
}

.ecl-filter:hover {
	border-color: #01458c;
}

.ecl-filter.active {
	background: #01458c;
	color: #ffffff;
	border-color: #01458c;
}

/* ------- Content Wrapper ------- */
.ecl-content-wrap {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px 48px;
}

@media (min-width: 768px) {
	.ecl-content-wrap {
		padding: 0 48px 64px;
	}
}

/* ------- Grid 3 columnas ------- */
.ecl-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media (min-width: 768px) {
	.ecl-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ecl-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ------- Card ------- */
.ecl-card {
	transition: all 0.3s ease;
}

.ecl-card.ecl-hidden {
	display: none;
}

.ecl-card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #ffffff;
	border-radius: 18.774px;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	box-shadow: 0px 5.007px 7.51px -1.252px rgba(0,0,0,0.1), 0px 2.503px 5.007px -2.503px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	height: 100%;
}

.ecl-card:hover .ecl-card-link {
	box-shadow: 0px 10px 20px -3px rgba(0,0,0,0.15);
}

/* ------- Image ------- */
.ecl-card-img {
	position: relative;
	height: 220px;
	overflow: hidden;
	background: #f5f5f5;
	flex-shrink: 0;
}

.ecl-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.ecl-card:hover .ecl-card-img img {
	transform: scale(1.05);
}

/* Badges — ambos en top left */
.ecl-badge-tl {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ecl-cbadge {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 6px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #ffffff;
	background: #01458c;
}

.ecl-sbadge {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 6px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: #0093dd;
}

/* ------- Card Body ------- */
.ecl-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

@media (min-width: 768px) {
	.ecl-card-body {
		padding: 28px;
	}
}

/* Iconos SVG */
.ecl-icon {
	width: 16px;
	height: 16px;
	color: #0093dd;
	flex-shrink: 0;
}

.ecl-icon-pin {
	margin-top: 4px;
}

/* Date & time */
.ecl-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 12px;
}

.ecl-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #6b6b6b;
}

/* Title */
.ecl-card-title {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #01458c;
	margin: 0 0 12px;
	line-height: 1.3;
	transition: color 0.3s ease;
}

@media (min-width: 768px) {
	.ecl-card-title {
		font-size: 24px;
	}
}

.ecl-card:hover .ecl-card-title {
	color: #0093dd;
}

/* Location */
.ecl-card-loc {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 16px;
}

.ecl-card-loc p {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	color: #6b6b6b;
	line-height: 1.75;
	margin: 0;
}

/* Description */
.ecl-card-desc {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	color: #6b6b6b;
	line-height: 1.75;
	margin: 0 0 24px;
	flex: 1;
}

/* Footer */
.ecl-card-foot {
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	margin-top: auto;
}

.ecl-card-btn {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: #0093dd;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s ease;
}

.ecl-card-btn:hover {
	background: #01458c;
}

/* ------- No Events Message ------- */
.ec-no-events {
	text-align: center;
	padding: 80px 40px;
	background: #f9f9f9;
	border-radius: 16px;
	border: 2px dashed #e0e0e0;
	margin: 40px 0;
}

.ec-no-events-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 24px;
	color: #999;
}

.ec-no-events-title {
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 12px;
}

.ec-no-events-text {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	color: #6b6b6b;
	line-height: 1.6;
	margin: 0;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* ===================================
   EVENT SINGLE DETAIL PAGE
   =================================== */

.ec-event-detail {
	background: #fff;
	width: 100%;
	min-height: 100vh;
}

/* Hero Section */
.ec-hero {
	position: relative;
	height: 500px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.ec-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3));
}

.ec-hero-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0 24px 48px;
}

@media (min-width: 768px) {
	.ec-hero-content {
		padding: 0 80px 48px;
	}
}

.ec-hero-inner {
	max-width: 1760px;
	margin: 0 auto;
}

/* Hero Badge */
.ec-hero-badge {
	margin-bottom: 24px;
}

.ec-badge-category-large {
	background: #0093dd;
	color: #fff;
	padding: 10px 24px;
	border-radius: 100px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: inline-block;
}

/* Hero Title */
.ec-hero-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 28px;
	color: #fff;
	margin-bottom: 24px;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.ec-hero-title {
		font-size: 42px;
	}
}

/* Hero Meta */
.ec-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	color: #fff;
}

.ec-hero-meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ec-hero-meta-item .ec-icon {
	width: 24px;
	height: 24px;
	color: #fff;
}

.ec-hero-meta-item span {
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
}

/* Content Section */
.ec-content-section {
	padding: 64px 24px;
}

@media (min-width: 768px) {
	.ec-content-section {
		padding: 64px 80px;
	}
}

.ec-content-container {
	max-width: 1760px;
	margin: 0 auto;
}

.ec-content-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}

@media (min-width: 1024px) {
	.ec-content-grid {
		grid-template-columns: 1.5fr 1fr;
	}
}

/* Content Left Column */
.ec-content-left {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* Content Box */
.ec-content-box {
	background: #fff;
	border-radius: 18.774px;
	border: 1px solid #e5e5e5;
	padding: 32px;
}

@media (min-width: 768px) {
	.ec-content-box {
		padding: 48px;
	}
}

.ec-section-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 24px;
	color: #01458c;
	margin-bottom: 24px;
}

.ec-section-content p {
	font-family: 'Poppins', sans-serif;
	color: #6b6b6b;
	font-size: 14px;
	line-height: 24px;
	margin-bottom: 20px;
}

.ec-section-content p:last-child {
	margin-bottom: 0;
}

/* What's Included List */
.ec-included-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ec-included-list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.ec-icon-check {
	width: 28px;
	height: 28px;
	color: #0093dd;
	flex-shrink: 0;
	margin-top: 4px;
}

.ec-included-list span {
	font-family: 'Poppins', sans-serif;
	color: #6b6b6b;
	font-size: 20px;
	line-height: 1.6;
}

/* Venue Information */
.ec-venue-info {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ec-venue-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.ec-venue-item .ec-icon {
	width: 28px;
	height: 28px;
	color: #0093dd;
	flex-shrink: 0;
	margin-top: 4px;
}

.ec-venue-header {
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e5e5;
}

.ec-venue-item h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: #01458c;
	margin: 0 0 8px 0;
}

.ec-venue-item p {
	font-family: 'Poppins', sans-serif;
	color: #6b6b6b;
	font-size: 18px;
	line-height: 1.6;
	margin: 0;
}

/* Registration Box */
.ec-registration-box {
	background: #fff;
	border-radius: 18.774px;
	border: 1px solid #e5e5e5;
	padding: 32px;
	position: sticky;
	top: 32px;
}

@media (min-width: 768px) {
	.ec-registration-box {
		padding: 44px;
	}
}

.ec-registration-header {
	margin-bottom: 36px;
}

.ec-registration-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 30px;
	color: #01458c;
	margin-bottom: 12px;
}

.ec-registration-subtitle {
	font-family: 'Poppins', sans-serif;
	color: #6b6b6b;
	font-size: 17.5px;
	margin: 0;
}

/* Contact Form 7 Styling */
.ec-registration-form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ec-registration-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.ec-registration-form input[type="text"],
.ec-registration-form input[type="email"],
.ec-registration-form input[type="tel"],
.ec-registration-form input[type="number"],
.ec-registration-form select,
.ec-registration-form textarea {
	width: 100%;
	padding: 16px 20px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	color: #6b6b6b;
	transition: border-color 0.3s ease;
}

.ec-registration-form input::placeholder,
.ec-registration-form textarea::placeholder {
	color: rgba(107, 107, 107, 0.5);
}

.ec-registration-form input:focus,
.ec-registration-form select:focus,
.ec-registration-form textarea:focus {
	outline: none;
	border-color: #0093dd;
}

.ec-registration-form textarea {
	resize: none;
	min-height: 120px;
}

.ec-registration-form input[type="submit"] {
	width: 100%;
	background: #0093dd;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: background 0.3s ease;
}

.ec-registration-form input[type="submit"]:hover {
	background: #01458c;
}

.ec-no-form {
	padding: 20px;
	background: #f5f5f5;
	border-radius: 8px;
	text-align: center;
}

.ec-no-form p {
	font-family: 'Poppins', sans-serif;
	color: #6b6b6b;
	margin: 8px 0;
}

.ec-admin-note {
	color: #d63638 !important;
	font-size: 14px !important;
}

.ec-admin-note a {
	color: #0093dd;
	text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.ec-hero {
		height: 400px;
	}
	
	.ec-hero-title {
		font-size: 28px;
	}
	
	.ec-section-title {
		font-size: 24px;
	}
	
	.ec-section-content p,
	.ec-included-list span,
	.ec-venue-item p {
		font-size: 14px;
		line-height: 24px;
	}
}
