/**
 * GlouGlou Shortcodes Styles
 * @package GlouGlou
 * @since 1.4.0
 */

/* ==========================================================================
   Common Styles
   ========================================================================== */

.glouglou-error {
	color: #c0392b;
	background: #fdf2f2;
	padding: 1rem;
	border-radius: 6px;
	border-left: 4px solid #c0392b;
}

.glouglou-empty {
	color: #7f8c8d;
	font-style: italic;
	padding: 1rem;
}

/* ==========================================================================
   Events Shortcode
   ========================================================================== */

.glouglou-events {
	margin: 1.5rem 0;
}

.glouglou-events-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.glouglou-event-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid #eee;
}

.glouglou-event-item:last-child {
	border-bottom: none;
}

.glouglou-events-section-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 1.5rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #2c3e50;
}

.glouglou-events-upcoming .glouglou-events-section-title {
	color: #27ae60;
	border-color: #27ae60;
}

.glouglou-events-past .glouglou-events-section-title {
	color: #7f8c8d;
	border-color: #bdc3c7;
}

/* Pagination */
.glouglou-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 2rem 0 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

.glouglou-pagination a {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #3498db;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s;
}

.glouglou-pagination a:hover {
	background: #2980b9;
}

.glouglou-pagination-info {
	color: #7f8c8d;
}

/* ==========================================================================
   News Shortcode
   ========================================================================== */

.glouglou-news {
	margin: 1.5rem 0;
}

.glouglou-news-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.glouglou-news-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid #eee;
}

.glouglou-news-item:last-child {
	border-bottom: none;
}

.glouglou-news-excerpt {
	color: #7f8c8d;
	font-size: 0.9em;
}

.glouglou-news-footer {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	text-align: center;
}

.glouglou-news-all-link {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	background: #3498db;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s;
}

.glouglou-news-all-link:hover {
	background: #2980b9;
	color: #fff;
}

/* ==========================================================================
   Booking Shortcode
   ========================================================================== */

.glouglou-booking {
	max-width: 800px;
	margin: 2rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.glouglou-booking-loading {
	text-align: center;
	padding: 3rem;
	color: #7f8c8d;
}

.glouglou-booking-step {
	background: #fff;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.glouglou-booking-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	color: #2c3e50;
	text-align: center;
}

/* Resources Grid */
.glouglou-booking-resources {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.glouglou-resource-card {
	background: #f8f9fa;
	border: 2px solid transparent;
	border-radius: 10px;
	padding: 1rem;
	cursor: pointer;
	transition: all 0.2s;
}

.glouglou-resource-card:hover {
	border-color: #3498db;
	transform: translateY(-2px);
}

.glouglou-resource-card.selected {
	border-color: #27ae60;
	background: #e8f8f0;
}

.glouglou-resource-image {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 0.75rem;
}

.glouglou-resource-name {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: #2c3e50;
}

.glouglou-resource-desc {
	font-size: 0.9rem;
	color: #7f8c8d;
	margin: 0 0 0.5rem;
}

.glouglou-resource-price {
	font-size: 0.85rem;
	color: #27ae60;
	font-weight: 500;
	margin: 0;
}

/* Calendar */
.glouglou-booking-calendar {
	margin-bottom: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
	padding: 1rem;
}

.glouglou-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding: 0 0.5rem;
}

.glouglou-calendar-month {
	font-size: 1.15rem;
	font-weight: 600;
	color: #2c3e50;
	text-transform: capitalize;
}

.glouglou-calendar-nav {
	background: #fff;
	border: 1px solid #e1e5e9;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2rem;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2c3e50;
}

.glouglou-calendar-nav:hover {
	background: #3498db;
	border-color: #3498db;
	color: #fff;
}

.glouglou-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.glouglou-calendar-day-name {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: #7f8c8d;
	padding: 0.5rem 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.glouglou-calendar-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
	font-size: 0.9rem;
	position: relative;
	background: transparent;
}

.glouglou-calendar-day .glouglou-day-number {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.15s ease;
	position: relative;
	z-index: 2;
	font-weight: 500;
}

/* Selectable days */
.glouglou-calendar-day.selectable .glouglou-day-number {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.glouglou-calendar-day.selectable:hover .glouglou-day-number {
	background: #3498db;
	color: #fff;
	transform: scale(1.1);
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

/* Today marker */
.glouglou-calendar-day.today .glouglou-day-number {
	border: 2px solid #3498db;
}

/* Empty day */
.glouglou-calendar-day.empty {
	cursor: default;
}

/* Past days */
.glouglou-calendar-day.past {
	cursor: not-allowed;
}

.glouglou-calendar-day.past .glouglou-day-number {
	color: #bdc3c7;
	background: transparent;
	box-shadow: none;
}

/* Occupied days */
.glouglou-calendar-day.occupied {
	cursor: not-allowed;
}

.glouglou-calendar-day.occupied .glouglou-day-number {
	background: rgba(231, 76, 60, 0.15);
	color: #c0392b;
	font-weight: 600;
}

/* Range start */
.glouglou-calendar-day.range-start {
	background: linear-gradient(to right, transparent 50%, rgba(52, 152, 219, 0.2) 50%);
}

.glouglou-calendar-day.range-start .glouglou-day-number {
	background: #27ae60;
	color: #fff;
	box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
	font-weight: 600;
}

/* Range end */
.glouglou-calendar-day.range-end {
	background: linear-gradient(to left, transparent 50%, rgba(52, 152, 219, 0.2) 50%);
}

.glouglou-calendar-day.range-end .glouglou-day-number {
	background: #e74c3c;
	color: #fff;
	box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
	font-weight: 600;
}

/* Same day start and end */
.glouglou-calendar-day.range-start.range-end {
	background: transparent;
}

.glouglou-calendar-day.range-start.range-end .glouglou-day-number {
	background: linear-gradient(135deg, #27ae60 50%, #e74c3c 50%);
}

/* In range (between start and end) */
.glouglou-calendar-day.in-range {
	background: rgba(52, 152, 219, 0.2);
}

.glouglou-calendar-day.in-range .glouglou-day-number {
	background: rgba(52, 152, 219, 0.15);
	color: #2980b9;
	font-weight: 500;
}

/* First day of week in range - round left side */
.glouglou-calendar-day.in-range:nth-child(7n+1) {
	border-radius: 20px 0 0 20px;
}

/* Last day of week in range - round right side */
.glouglou-calendar-day.in-range:nth-child(7n) {
	border-radius: 0 20px 20px 0;
}

/* Calendar Instructions */
.glouglou-calendar-instructions {
	background: linear-gradient(135deg, #e8f4fc, #f0f8ff);
	border: 1px solid #b8daef;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	text-align: center;
	font-size: 0.95rem;
	color: #2c3e50;
}

.glouglou-instruction-icon {
	font-size: 1.2rem;
	margin-right: 0.25rem;
}

/* Calendar Legend */
.glouglou-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	padding: 1rem;
	background: #fff;
	border-radius: 8px;
	margin-bottom: 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.glouglou-legend-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: #5a6c7d;
}

.glouglou-legend-color {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
}

.glouglou-legend-occupied {
	background: rgba(231, 76, 60, 0.15);
	border: 2px solid #e74c3c;
}

.glouglou-legend-start {
	background: #27ae60;
	box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.glouglou-legend-end {
	background: #e74c3c;
	box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.glouglou-legend-range {
	background: rgba(52, 152, 219, 0.2);
	border: 2px solid rgba(52, 152, 219, 0.5);
}

/* Selection Summary */
.glouglou-selection-summary {
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
}

.glouglou-selection-summary.empty {
	background: #f5f6f7;
	border: 2px dashed #d1d5db;
	text-align: center;
}

.glouglou-summary-empty {
	color: #7f8c8d;
	font-size: 0.95rem;
}

.glouglou-selection-summary.partial {
	background: linear-gradient(135deg, #fff9e6, #fffbf0);
	border: 2px solid #f1c40f;
}

.glouglou-summary-partial {
	text-align: center;
}

.glouglou-summary-partial strong {
	color: #27ae60;
}

.glouglou-summary-hint {
	color: #7f8c8d;
	font-size: 0.85rem;
	display: block;
	margin-top: 0.5rem;
}

.glouglou-selection-summary.complete {
	background: linear-gradient(135deg, #e8f8f0, #f0fbf6);
	border: 2px solid #27ae60;
}

.glouglou-summary-complete {
	text-align: center;
}

.glouglou-summary-dates {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.glouglou-summary-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.glouglou-summary-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #7f8c8d;
	font-weight: 600;
}

.glouglou-summary-value {
	font-size: 0.95rem;
	font-weight: 600;
	color: #2c3e50;
}

.glouglou-summary-arrow {
	font-size: 1.5rem;
	color: #3498db;
}

.glouglou-summary-duration {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(39, 174, 96, 0.3);
	font-size: 1rem;
	font-weight: 600;
	color: #27ae60;
}

/* Buttons - Clear dates button */
.glouglou-btn-secondary {
	background: #fff;
	border: 1px solid #e74c3c;
	color: #e74c3c;
}

.glouglou-btn-secondary:hover {
	background: #fdf2f2;
}

/* Auth Toggle */
.glouglou-auth-toggle {
	display: flex;
	gap: 0;
	margin-bottom: 1.5rem;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #ddd;
}

.glouglou-auth-tab {
	flex: 1;
	padding: 0.75rem 1rem;
	background: #f8f9fa;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	transition: all 0.2s;
}

.glouglou-auth-tab:hover {
	background: #e9ecef;
}

.glouglou-auth-tab.active {
	background: #3498db;
	color: #fff;
}

.glouglou-auth-error {
	background: #fdf2f2;
	color: #c0392b;
	padding: 0.75rem;
	border-radius: 6px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

/* Form Styles */
.glouglou-booking-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.glouglou-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.glouglou-form-group label {
	font-size: 0.9rem;
	font-weight: 500;
	color: #2c3e50;
}

.glouglou-form-group input,
.glouglou-form-group select,
.glouglou-form-group textarea {
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.glouglou-form-group input:focus,
.glouglou-form-group select:focus,
.glouglou-form-group textarea:focus {
	outline: none;
	border-color: #3498db;
}

/* Buttons */
.glouglou-booking-actions {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

.glouglou-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.2s;
	background: #f1f2f6;
	color: #2c3e50;
}

.glouglou-btn:hover {
	background: #dfe4ea;
}

.glouglou-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.glouglou-btn-primary {
	background: #3498db;
	color: #fff;
}

.glouglou-btn-primary:hover {
	background: #2980b9;
}

/* Success Step */
.glouglou-booking-success {
	text-align: center;
}

.glouglou-success-icon {
	width: 80px;
	height: 80px;
	background: #27ae60;
	color: #fff;
	font-size: 2.5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.glouglou-success-message {
	font-size: 1.1rem;
	color: #2c3e50;
	margin-bottom: 1.5rem;
}

.glouglou-app-links {
	background: #f8f9fa;
	padding: 1.5rem;
	border-radius: 8px;
}

.glouglou-app-links p {
	margin: 0 0 1rem;
	color: #7f8c8d;
}

.glouglou-app-link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	margin: 0.25rem;
	background: #2c3e50;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	transition: background 0.2s;
}

.glouglou-app-link:hover {
	background: #1a252f;
	color: #fff;
}

.glouglou-app-link-ios {
	background: #000;
}

.glouglou-app-link-android {
	background: #3ddc84;
	color: #000;
}

.glouglou-app-link-android:hover {
	background: #2bc573;
	color: #000;
}

/* Error State */
.glouglou-booking-error {
	text-align: center;
	padding: 2rem;
	background: #fdf2f2;
	border-radius: 8px;
}

.glouglou-booking-error p {
	color: #c0392b;
	margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
	.glouglou-booking-step {
		padding: 1.25rem;
	}
	
	.glouglou-booking-resources {
		grid-template-columns: 1fr;
	}
	
	.glouglou-booking-actions {
		flex-direction: column;
	}
	
	.glouglou-btn {
		width: 100%;
	}
	
	.glouglou-booking-calendar {
		padding: 0.75rem;
	}
	
	.glouglou-calendar-day .glouglou-day-number {
		width: 32px;
		height: 32px;
		font-size: 0.85rem;
	}
	
	.glouglou-calendar-day-name {
		font-size: 0.7rem;
		padding: 0.35rem 0.15rem;
	}
	
	.glouglou-calendar-legend {
		gap: 0.75rem;
		padding: 0.75rem;
	}
	
	.glouglou-legend-item {
		font-size: 0.75rem;
	}
	
	.glouglou-legend-color {
		width: 16px;
		height: 16px;
	}
	
	.glouglou-calendar-instructions {
		font-size: 0.85rem;
		padding: 0.75rem 1rem;
	}
	
	.glouglou-summary-dates {
		gap: 0.75rem;
	}
	
	.glouglou-summary-value {
		font-size: 0.85rem;
	}
	
	.glouglou-summary-arrow {
		font-size: 1.2rem;
	}
}
