/**
 * AA Events Frontend Styles
 *
 * @package AA_Events
 */

/* Base */
.aa-button {
	display: inline-block;
	padding: 12px 24px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.aa-button:hover {
	background: #135e96;
	color: #fff;
}

.aa-button-secondary {
	background: #f0f0f1;
	color: #1d2327;
}

.aa-button-secondary:hover {
	background: #dcdcde;
	color: #1d2327;
}

.aa-button-large {
	padding: 16px 32px;
	font-size: 1.1em;
}

/* Status Badges */
.aa-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	text-transform: capitalize;
}

/* Events Grid */
.aa-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.aa-event-card {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s;
	background: #fff;
}

.aa-event-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.aa-event-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #2271b1;
	color: #fff;
	min-width: 80px;
}

.aa-event-date .aa-day {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.aa-event-date .aa-month {
	font-size: 14px;
	text-transform: uppercase;
	margin-top: 4px;
}

.aa-event-date .aa-year {
	font-size: 12px;
	opacity: 0.8;
}

.aa-event-details {
	padding: 16px;
	flex: 1;
}

.aa-event-details h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.aa-event-details .aa-time,
.aa-event-details .aa-location,
.aa-event-details .aa-description {
	margin: 4px 0;
	font-size: 14px;
	color: #555;
}

.aa-event-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.aa-price {
	font-weight: 600;
	font-size: 18px;
	color: #1d2327;
}

.aa-member-discount {
	font-size: 12px;
	color: #00a32a;
	font-weight: normal;
}

.aa-sold-out {
	color: #d63638;
	font-weight: 600;
	font-size: 14px;
}

.aa-low-spots {
	color: #dba617;
	font-weight: 500;
	font-size: 13px;
}

.aa-no-events {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-style: italic;
}

/* Single Event */
.aa-single-event {
	max-width: 800px;
	margin: 0 auto;
}

.aa-event-meta p {
	margin: 6px 0;
}

.aa-event-description {
	margin: 20px 0;
	line-height: 1.6;
}

.aa-event-registration {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px;
	margin-top: 24px;
}

.aa-price-box {
	margin-bottom: 16px;
}

.aa-price-box .aa-price {
	font-size: 24px;
}

/* Booking Form */
.aa-event-booking {
	max-width: 700px;
	margin: 0 auto;
}

.aa-event-booking-header {
	margin-bottom: 24px;
}

.aa-booking-section {
	margin-bottom: 24px;
}

.aa-booking-section h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.aa-form-row {
	margin-bottom: 16px;
}

.aa-form-row label {
	display: block;
	font-weight: 500;
	margin-bottom: 4px;
}

.aa-form-row input[type="text"],
.aa-form-row input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.aa-form-row .required {
	color: #d63638;
}

.aa-field-help {
	font-size: 13px;
	color: #666;
	margin-top: 4px;
}

/* Radio Options */
.aa-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aa-radio-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.aa-radio-label:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.aa-radio-label input[type="radio"]:checked + .aa-option-name {
	font-weight: 600;
}

.aa-option-name {
	flex: 1;
}

.aa-option-price {
	font-weight: 600;
	color: #1d2327;
}

.aa-option-meta {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-left: 28px;
	margin-top: -4px;
}

.aa-option-description {
	font-size: 13px;
	color: #646970;
	line-height: 1.4;
}

.aa-option-sold-out {
	opacity: 0.5;
	cursor: not-allowed;
}

.aa-availability {
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}

.aa-low-stock {
	color: #dba617;
}

.aa-not-released {
	color: #8c8f94;
}

/* Order Summary */
.aa-booking-summary {
	background: #fff !important;
	padding: 20px;
	border-radius: 6px;
	border: 2px solid #2271b1 !important;
}

.aa-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.aa-summary-row.aa-total {
	border-bottom: none;
	border-top: 2px solid #1d2327;
	margin-top: 8px;
	padding-top: 12px;
	font-weight: 700;
	font-size: 18px;
}

/* Error Notice */
.aa-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
}

.aa-notice-error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #d63638;
}

/* Form Actions */
.aa-form-actions {
	margin-top: 24px;
	text-align: center;
}

/* Success/Cancelled Pages */
.aa-checkout-success,
.aa-checkout-cancelled {
	max-width: 600px;
	margin: 0 auto;
}
