/* ============================================================
   balboa.events.css — Events page styles
   Bootstrap 3 base; mobile-first
   ============================================================ */

/* ---- Page header ----------------------------------------- */
.events-page-header {
	padding-bottom: 0;
	border-bottom: none;
	margin-bottom: 0;
}
.events-header-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}
.events-title {
	margin: 0 0 4px 0;
	font-size: 26px;
	line-height: 1.2;
}
.season-label-text {
	font-size: 15px;
	color: #999;
	font-weight: 400;
	margin-left: 6px;
}

/* ---- Filter pill bar ------------------------------------- */
.events-filter-bar {
	background: #f7f7f7;
	border-top: 1px solid #e8e8e8;
	border-bottom: 1px solid #e8e8e8;
	margin: 10px -15px 24px;
	padding: 10px 15px;
}
.filter-pills-scroll {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 6px;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.filter-pills-scroll::-webkit-scrollbar { display: none; }

.filter-pill {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	border: 1px solid #d0d0d0;
	background: #fff;
	color: #555;
	text-decoration: none !important;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.4;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
	cursor: pointer;
}
.filter-pill:hover {
	background: #eaeaea;
	border-color: #bbb;
	color: #333;
}
.filter-pill.active {
	background: #2c5f8a;
	border-color: #2c5f8a;
	color: #fff;
	font-weight: 600;
}

/* ---- Section header -------------------------------------- */
.events-section {
	margin-bottom: 36px;
	background: #ffffff;
	padding: 20px;
}
.events-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #ddd;
	padding-bottom: 8px;
	margin-bottom: 4px;
}
.events-section-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.section-event-count {
	font-size: 13px;
	color: #999;
	font-weight: 400;
}

/* ---- Recently Completed section -------------------------- */
.events-section.recently-completed-section {
	border-left: 3px solid #3a8a5c;
	margin-bottom: 0;
	padding-bottom: 12px;
}
.events-section.recently-completed-section .events-section-header {
	border-bottom-color: #c8e6d4;
}
.events-section.recently-completed-section .events-section-header h3 {
	color: #2a6644;
}
.events-section.recently-completed-section .event-date-badge {
	background: #4a7c59;
}

/* ---- Older past events section --------------------------- */
.events-section.older-past-section {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}
.older-past-section .events-section-header {
	border-bottom-color: #e8e8e8;
}

/* ---- Show-more older events button ----------------------- */
.show-more-older-wrap {
	text-align: center;
	padding: 4px 0 0;
}
.btn-show-older-past {
	font-size: 13px;
	color: #2c5f8a;
	background: none;
	border: 1px solid #c8d8e8;
	border-radius: 20px;
	padding: 5px 20px;
	cursor: pointer;
	transition: background 0.12s;
}
.btn-show-older-past:hover {
	background: #e8f0f8;
}

/* ---- Event card row -------------------------------------- */
.event-card-row {
	display: flex;
	align-items: center;
	padding: 11px 4px 11px 0;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none !important;
	color: inherit;
	background: #ffffff;
	transition: background 0.1s;
	border-radius: 3px;
}
.event-card-row:hover {
	background: #f4f8fc;
	color: inherit;
}
.event-card-row:last-child {
	border-bottom: none;
}

/* Date badge */
.event-date-badge {
	flex: 0 0 54px;
	min-width: 54px;
	text-align: center;
	background: #2c5f8a;
	color: #fff;
	border-radius: 7px;
	padding: 7px 5px 6px;
	margin-right: 14px;
	line-height: 1;
}
.past-events .event-date-badge {
	background: #7a8c9a;
}
.edb-month {
	display: block;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	opacity: 0.85;
	font-weight: 600;
}
.edb-day {
	display: block;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.05;
	margin: 1px 0;
}
.edb-dow {
	display: block;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	opacity: 0.85;
	font-weight: 600;
}

/* Info column */
.event-info-col {
	flex: 1 1 auto;
	min-width: 0;
}
.event-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #2c5f8a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}
.past-events .event-card-title,
.recently-completed-section .event-card-title {
	color: #4a5a6a;
}
.event-card-meta {
	margin-top: 3px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}
.event-card-label {
	font-size: 12px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 260px;
}
.event-rounds-secondary {
	font-size: 11px;
	color: #aaa;
	margin-top: 2px;
}

/* Type badge pill */
.event-type-pill {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	white-space: nowrap;
	background: #e2e3e5;
	color: #555;
}
.etp-weekday-event    { background: #d4edda; color: #155724; }
.etp-weekend-event    { background: #cce5ff; color: #004085; }
.etp-major-tournament { background: #fff3cd; color: #7c5c00; }
.etp-away-event       { background: #e2d9f3; color: #5a3e85; }
.etp-board-meeting    { background: #e2e3e5; color: #3d454d; }
.etp-happy-hour       { background: #ffe5d0; color: #7c4000; }
.etp-banquets         { background: #d0f0ea; color: #0a5040; }
.etp-scga-team-event  { background: #d6e0ea; color: #1a3a5c; }

/* ---- Event status badge ---------------------------------- */
.event-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}
.esb-today    { background: #fff3cd; color: #7c5c00; }
.esb-open     { background: #d4edda; color: #155724; }
.esb-closed   { background: #e9ecef; color: #6c757d; }
.esb-not-open { background: #e8f0f8; color: #2c5f8a; }

/* Attendee count column */
.event-attendees-col {
	flex: 0 0 52px;
	text-align: right;
	color: #333;
	font-size: 13px;
	padding-right: 10px;
	white-space: nowrap;
}
.event-attendees-col i {
	color: #333;
}

/* Chevron arrow */
.event-arrow-col {
	flex: 0 0 16px;
	color: #999;
	font-size: 13px;
}

/* ---- Empty state ---------------------------------------- */
.events-empty-state {
	padding: 40px 20px;
	text-align: center;
	color: #aaa;
}
.events-empty-state i {
	font-size: 40px;
	display: block;
	margin-bottom: 12px;
	color: #ddd;
}
.events-empty-state p {
	font-size: 15px;
	margin: 0;
}

/* ---- Mobile tweaks --------------------------------------- */
@media (max-width: 480px) {
	.events-filter-bar   { margin: 10px -15px 18px; }
	.event-date-badge    { flex: 0 0 46px; min-width: 46px; margin-right: 10px; }
	.edb-day             { font-size: 20px; }
	.event-card-title    { font-size: 14px; }
	.event-card-label    { display: none; }
	.event-attendees-col { flex: 0 0 42px; font-size: 12px; padding-right: 6px; }
}
