/**
 * Custom styles for The Events Calendar and Event Tickets
 * Based on index.html design
 * 
 * Version: 1.0.0
 * Last Updated: 2024-12-19
 * 
 * Changelog:
 * v1.0.0 (2024-12-19)
 * - Initial version
 * - Moved ticket-category animations to tribe-common.event-tickets.tribe-tickets__tickets-wrapper.ticket-section
 * - Removed tribe-events-pg-template background and padding styles
 * - Removed tribe-events-content background, margin, border-radius, padding, and box-shadow styles
 */

/* Hide default title and schedule outside hero section */
#tribe-events-content > .tribe-events-single-event-title:first-of-type,
#tribe-events-content > .tribe-events-schedule:first-of-type,
#tribe-events-content > .tribe-events-single-event-description:first-of-type {
	display: none;
}

/* Ticket Section */
.ticket-section {
	background: white;
	margin-top: 20px;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Ticket Section Animation - Moved from ticket-category */
.tribe-common.event-tickets.tribe-tickets__tickets-wrapper.ticket-section {
	transition: all 0.3s;
}

.tribe-common.event-tickets.tribe-tickets__tickets-wrapper.ticket-section:hover {
	border-color: #667eea;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.section-title {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 30px;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ticket-category {
	border: 2px solid #eee;
	border-radius: 12px;
	padding: 25px;
}

.ticket-category h3 {
	font-size: 22px;
	margin-bottom: 15px;
	color: #667eea;
}

/* Ticket Option Wrapper */
.ticket-option-wrapper {
	position: relative;
	margin-bottom: 20px;
}

/* Quantity Selector - Based on index.html design */
.quantity-selector {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 20px 0;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 12px;
}

.quantity-controls {
	display: flex;
	align-items: center;
	gap: 15px;
	background: white;
	padding: 10px 20px;
	border-radius: 8px;
	border: 2px solid #eee;
}

.quantity-btn {
	width: 40px;
	height: 40px;
	border: none;
	background: #667eea;
	color: white;
	border-radius: 50%;
	font-size: 20px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
	padding: 0;
	line-height: 1;
}

.quantity-btn:hover {
	background: #5568d3;
	transform: scale(1.1);
}

.quantity-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
}

.quantity-input {
	width: 60px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	border: none;
	background: transparent;
	color: #2c3e50;
	padding: 0;
}

.quantity-input:focus {
	outline: none;
}

/* Ticket Summary - Based on index.html design */
.ticket-summary {
	flex: 1;
}

.ticket-summary h4 {
	margin: 0 0 10px 0;
	color: #2c3e50;
	font-size: 18px;
}

.ticket-summary p {
	margin: 5px 0;
	color: #666;
}

.total-price {
	font-size: 24px;
	font-weight: bold;
	color: #667eea;
	margin-top: 10px;
}

/* Ticket Content */
.ticket-content {
	margin: 0;
}

.ticket-content h4 {
	margin: 0 0 10px 0;
	color: #2c3e50;
	font-size: 18px;
}

/* Selected Ticket Info / Footer - Based on index.html design */
.selected-ticket-info {
	background: #e8f5e9;
	padding: 15px;
	border-radius: 8px;
	margin-top: 20px;
	border-left: 4px solid #4caf50;
}

.selected-ticket-info h4 {
	color: #2e7d32;
	margin-bottom: 10px;
	font-size: 18px;
}

.selected-ticket-info p {
	margin: 5px 0;
	color: #555;
}

.tribe-tickets__tickets-footer {
	background: #e8f5e9;
	padding: 15px;
	border-radius: 8px;
	margin-top: 20px;
	border-left: 4px solid #4caf50;
}

.tribe-tickets__tickets-footer h4 {
	color: #2e7d32;
	margin-bottom: 10px;
	font-size: 18px;
}

.tribe-tickets__footer-details {
	margin: 0;
	color: #555;
}

/* Buy Button */
.btn-buy {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.btn-buy:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-buy:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.tribe-tickets__tickets-buy {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 18px 40px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
	margin-top: 20px;
}

.tribe-tickets__tickets-buy:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tribe-tickets__tickets-buy:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Ticket Content */
.ticket-content h4 {
	margin: 0 0 10px 0;
	color: #2c3e50;
	font-size: 18px;
}

/* Events List Page Styles - Based on index.html design */

/* Single Event Page - Hero Section */
#tribe-events-content .hero {
	background: white;
	margin-top: 20px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Event Info Section */
#tribe-events-content .hero .event-info {
	padding: 40px 40px 30px 40px;
}

/* Ticket Form - Based on index.html design */
.tribe-tickets__tickets-form,
.tribe-tickets__form {
	margin: 0;
	padding: 0;
}

.tribe-tickets__tickets-form .ticket-category {
	margin-bottom: 0;
}

/* Ticket Form inside event-info */
#tribe-events-content .hero .event-info #tribe-tickets__tickets-form,
#tribe-events-content .hero .event-info .tribe-tickets__tickets-form {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid #eee;
}

/* Image Gallery */
#tribe-events-content .hero .image-gallery {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin: 0;
}

#tribe-events-content .hero .image-gallery img {
	width: 100%;
	height: auto;
	display: block;
}

/* Event Content Section */
#tribe-events-content .hero .event-content {
	padding: 30px 40px 40px 40px;
}

#tribe-events-content .event-title,
#tribe-events-content .tribe-events-single-event-title {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 30px;
	color: #2c3e50;
	line-height: 1.4;
}

/* Event Description inside Hero Section */
#tribe-events-content .hero .event-content .tribe-events-single-event-description,
#tribe-events-content .hero .event-content .tribe-events-content {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

#tribe-events-content .hero .event-content .tribe-events-single-event-description p {
	margin-bottom: 20px;
}

#tribe-events-content .hero .event-content .tribe-events-single-event-description h4 {
	color: #2c3e50;
	margin: 25px 0 15px 0;
	font-size: 20px;
}

#tribe-events-content .hero .event-content .tribe-events-single-event-description ul {
	margin-left: 20px;
	margin-bottom: 20px;
}

#tribe-events-content .hero .event-content .tribe-events-single-event-description li {
	margin-bottom: 10px;
}

/* Event Meta */
#tribe-events-content .event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 2px solid #eee;
}

#tribe-events-content .meta-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

#tribe-events-content .meta-icon {
	font-size: 24px;
}

#tribe-events-content .meta-text {
	font-size: 16px;
	color: #666;
}

#tribe-events-content .meta-text strong {
	color: #2c3e50;
}

#tribe-events-content .tribe-events-cost {
	font-size: 20px;
	font-weight: bold;
	color: #667eea;
}

/* Event Details Section */
#tribe-events-content .event-details {
	background: white;
	margin-top: 20px;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#tribe-events-content .event-details-content {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

#tribe-events-content .event-details-content p {
	margin-bottom: 20px;
}

#tribe-events-content .event-details-content h4 {
	color: #2c3e50;
	margin: 25px 0 15px 0;
	font-size: 20px;
}

#tribe-events-content .event-details-content ul {
	margin-left: 20px;
	margin-bottom: 20px;
}

#tribe-events-content .event-details-content li {
	margin-bottom: 10px;
}

#tribe-events-content .event-details-content .highlight {
	background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
}

/* Single Event Page Styles - Based on index.html design */
#tribe-events-pg-template .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Event Back Link */
#tribe-events-pg-template .tribe-events-back {
	margin-bottom: 20px;
}

#tribe-events-pg-template .tribe-events-back a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

#tribe-events-pg-template .tribe-events-back a:hover {
	color: #5568d3;
}

/* Event Title - Similar to event-title in index.html */
#tribe-events-pg-template .tribe-events-single-event-title,
#tribe-events-pg-template h1.tribe-events-single-event-title {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 30px;
	color: #2c3e50;
	line-height: 1.4;
}

/* Event Schedule and Cost - Similar to event-meta in index.html */
#tribe-events-pg-template .tribe-events-schedule {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px;
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 2px solid #eee;
	font-size: 16px;
	color: #666;
}

#tribe-events-pg-template .tribe-events-cost {
	font-size: 24px;
	font-weight: bold;
	color: #667eea;
}

/* Event Featured Image */
#tribe-events-pg-template .tribe-events-event-image,
#tribe-events-pg-template .tribe-events-single-event-image {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#tribe-events-pg-template .tribe-events-event-image img,
#tribe-events-pg-template .tribe-events-single-event-image img {
	border-radius: 12px;
	width: 100%;
	height: auto;
}

/* Event Content - Similar to event-details in index.html */

#tribe-events-pg-template .tribe-events-single-event-description p {
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

#tribe-events-pg-template .tribe-events-single-event-description h4 {
	color: #2c3e50;
	margin: 25px 0 15px 0;
	font-size: 20px;
}

#tribe-events-pg-template .tribe-events-single-event-description ul {
	margin-left: 20px;
	margin-bottom: 20px;
}

#tribe-events-pg-template .tribe-events-single-event-description li {
	margin-bottom: 10px;
}

/* Highlight text in event description */
#tribe-events-pg-template .tribe-events-single-event-description .highlight {
	background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
}

/* Event Meta Groups - Details, Organizer, Venue - Similar to event-details section */
#tribe-events-pg-template .tribe-events-meta-group {
	background: white;
	margin-top: 20px;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#tribe-events-pg-template .tribe-events-meta-group h3,
#tribe-events-pg-template .tribe-events-meta-group h2 {
	font-size: 22px;
	margin-bottom: 15px;
	color: #667eea;
}

#tribe-events-pg-template .tribe-events-meta-group dt {
	font-weight: 600;
	color: #2c3e50;
	margin-top: 15px;
}

#tribe-events-pg-template .tribe-events-meta-group dd {
	color: #666;
	margin-left: 0;
	margin-top: 5px;
}

/* Event Navigation */
#tribe-events-pg-template .tribe-events-nav-pagination {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid #eee;
}

#tribe-events-pg-template .tribe-events-sub-nav {
	display: flex;
	justify-content: space-between;
	list-style: none;
	padding: 0;
	margin: 0;
}

#tribe-events-pg-template .tribe-events-sub-nav a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

#tribe-events-pg-template .tribe-events-sub-nav a:hover {
	color: #5568d3;
}

/* Event Header Navigation */
#tribe-events-pg-template #tribe-events-header {
	margin-bottom: 30px;
}

/* Post wrapper - Single event post */
#tribe-events-pg-template #tribe-events-content > div[id^="post-"] {
	background: white;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	margin-top: 20px;
}

/* Single event section wrapper */
#tribe-events-pg-template .tribe-events-single-section {
	background: white;
	margin-top: 20px;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Event meta section title */
#tribe-events-pg-template .tribe-events-single-section-title {
	font-size: 22px;
	margin-bottom: 15px;
	color: #667eea;
}

/* Event meta dl (definition list) */
#tribe-events-pg-template .tribe-events-meta-group dl {
	margin: 0;
}

/* Google Map wrapper */
#tribe-events-pg-template .tribe-events-meta-group-gmap {
	margin-top: 20px;
}

#tribe-events-pg-template .tribe-events-meta-group-gmap iframe {
	border-radius: 12px;
	width: 100%;
	height: 400px;
	border: none;
}

/* Ensure main content wrapper has proper styling */
#tribe-events-pg-template > div {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Event notices */
#tribe-events-pg-template .tribe-events-notices {
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 8px;
	background: #fff3cd;
	border-left: 4px solid #ffc107;
}

/* Subscribe links */
#tribe-events-pg-template .tribe-events-c-subscribe-dropdown {
	margin-top: 20px;
}

/* Ensure proper spacing for all sections */

/* Event footer */
#tribe-events-pg-template #tribe-events-footer {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid #eee;
}

/* Responsive adjustments for single event page */
@media (max-width: 768px) {
	#tribe-events-pg-template .tribe-events-single-event-title,
	#tribe-events-content .event-title {
		font-size: 24px;
	}

	#tribe-events-pg-template .tribe-events-single-event-description,
	#tribe-events-pg-template .tribe-events-content,
	#tribe-events-pg-template #tribe-events-content,
	#tribe-events-pg-template .tribe-events-meta-group,
	#tribe-events-pg-template .tribe-events-single-section,
	#tribe-events-content .event-info,
	#tribe-events-content .event-details,
	#tribe-events-content .ticket-section {
		padding: 20px;
	}

	#tribe-events-pg-template .tribe-events-schedule,
	#tribe-events-content .event-meta {
		flex-direction: column;
		gap: 15px;
	}

	#tribe-events-pg-template > div {
		padding: 0 10px;
	}
	
	#tribe-events-content .image-gallery {
		height: 300px;
	}
}

.events-list-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.events-list-custom {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 20px;
}

/* Event Card Styles - Similar to ticket-section */
.event-card-custom {
	background: white;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	transition: all 0.3s;
	margin: 0 !important;
}

.event-card-custom:hover {
	box-shadow: 0 6px 25px rgba(0,0,0,0.15);
	transform: translateY(-2px);
}

.tribe-events-calendar-list__event-wrapper {
	padding: 0 !important;
}

.event-details-custom {
	padding: 0 !important;
}

/* Event Header Styles */
.event-header-custom {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 2px solid #eee;
}

/* Event Title */
.tribe-events-calendar-list__event-title {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 15px;
	color: #2c3e50;
	line-height: 1.4;
}

.tribe-events-calendar-list__event-title a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.3s;
}

.tribe-events-calendar-list__event-title a:hover {
	color: #667eea;
}

/* Event Date */
.tribe-events-calendar-list__event-datetime-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	font-size: 16px;
	color: #666;
}

.tribe-events-calendar-list__event-datetime {
	font-weight: 500;
}

/* Event Meta (Venue, Category) */
.tribe-events-calendar-list__event-venue,
.tribe-events-calendar-list__event-category {
	margin: 10px 0;
	font-size: 16px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Event Description */
.tribe-events-calendar-list__event-description {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin: 20px 0;
	display: block !important;
}

/* Event Cost */
.tribe-events-calendar-list__event-cost {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #eee;
}

.tribe-events-c-small-cta__price {
	font-size: 24px;
	font-weight: bold;
	color: #667eea;
}

/* Featured Image */
.tribe-events-calendar-list__event-featured-image {
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
}

.tribe-events-calendar-list__event-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Date Tag */
.tribe-events-calendar-list__event-date-tag {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 600;
	margin-bottom: 15px;
	display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
	.ticket-section {
		padding: 20px;
	}

	.quantity-selector {
		flex-direction: column;
		gap: 20px;
	}

	.quantity-controls {
		width: 100%;
		justify-content: center;
	}

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

	.event-card-custom {
		padding: 20px;
	}

	.tribe-events-calendar-list__event-title {
		font-size: 24px;
	}

	.events-list-container {
		padding: 0 10px;
	}
}

