/* Talks/Schedule Page Styles */

/* Day filter buttons */
.day-filter-container {
	margin-top: 0;
	padding-top: 2px;
	background-color: transparent;
	border: none;
}

.day-filter-buttons-wrapper {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 0;
}

.day-filter-btn {
	background-color: #5b5476;
	color: white;
	border: 2px solid white;
	padding: 6px 16px;
	margin: 0 5px;
	cursor: pointer;
	border-radius: 4px;
	font-size: 15px;
	font-weight: normal;
	min-width: 100px;
	text-align: center;
	display: inline-block;
}

.day-filter-btn.active {
	background-color: #e8b84a;
	color: #2c2540;
	border-color: #e8b84a;
	font-weight: bold;
}

.day-filter-btn.active:hover {
	background-color: #f0c96a;
	color: #2c2540;
}

/* Search container */
.search-container {
	width: 345px;
	margin: 10px auto;
	position: relative;
}

.search-container .fa-search {
	position: absolute;
	left: 2px;
	top: 2px;
	bottom: 2px;
	color: #666;
	background-color: #e0e0e0;
	padding: 0 12px;
	border-radius: 3px 0 0 3px;
	pointer-events: none;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

#schedule-search {
	width: 100%;
	padding: 10px 40px 10px 50px;
	font-size: 16px;
	border: 2px solid #ccc;
	border-radius: 5px;
}

#clear-search {
	display: none;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: #d32f2f;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 18px;
	padding: 5px 10px;
	border-radius: 4px;
}

#clear-search:hover {
	background-color: #b71c1c;
}

/* Schedule tables */
.table_session {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto !important; /* Override style.css which sets table-layout: fixed */
	margin-bottom: 32px;
}

/* FIRST COLUMN - Fixed 125px width - MUST be first column in header2 and data rows */
/* Note: header1 has colspan so it doesn't have a first-child th */
table.table_session .header2 th:first-child,
table.table_session tbody tr td:first-child {
	width: 125px !important;
	min-width: 125px !important;
	max-width: 125px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	text-align: center !important;
	vertical-align: middle !important;
	box-sizing: border-box !important;
}

/* All table cells */
table.table_session th,
table.table_session td {
	padding: 6px 10px;
	border: 1px solid #ddd;
	vertical-align: top;
}

/* Slate blue session title row (legacy; title now outside table) */
table.table_session .header1 th {
	background: #5A6F8C;
	color: white !important;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}

/* Session block header + hide button inside slate bar */
.schedule-session-header {
	position: relative;
	background-color: #5A6F8C;
	color: white;
	padding: 8px 10px;
	font-weight: bold;
	font-size: 18px;
	border: 1px solid #ccc;
	cursor: pointer;
}

/* Title always starts at 1/3 of the header width */
.schedule-session-title {
	display: block;
	margin-left: 33.333%;
	text-align: left;
	padding-right: 100px; /* keep clear of the hide button */
	box-sizing: border-box;
}

.session-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #5b5476;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 4px 14px;
	cursor: pointer;
	font-size: 14px;
	font-weight: normal;
}

/* Past-sessions filter bar — same width/font as session headers */
.earlier-talks-bar {
	margin: 0;
	cursor: default;
	background-color: #5b5476;
}
.earlier-talks-bar .schedule-session-title {
	margin-left: 0;
	text-align: center;
	padding-right: 0;
	padding-left: 0;
}
.earlier-talks-actions {
	background-color: #f0f0f0;
	text-align: center;
	padding: 12px;
}
.earlier-talks-actions #show-earlier-talks {
	width: auto;
	margin-left: 0;
	white-space: nowrap;
}

/* Column header row - slate blue */
table.table_session .header2 th {
	background: #E4E9F0;
	color: #2a3140;
	font-weight: bold;
	text-align: center;
}

/* Cell contents */
.table_session .cell_content {
	vertical-align: top;
	padding-top: 12px;
	line-height: 1.3;
}

.table_session .cell_content .talk-presenter,
.table_session .cell_content .talk-title {
	font-size: 85%;
}

/* Clickable cell highlight */
.table_session .cell_content.clickable-cell {
	cursor: pointer;
	min-height: 40px;
	position: relative;
	transition: transform 0.2s ease;
}

/* Room for bottom-aligned > abstract / > authors */
.table_session .cell_content.clickable-cell.has-talk-toggles {
	padding-bottom: 28px;
}

.table_session .cell_content.clickable-cell.highlighted {
	background-color: #d4e1ff;
}

.table_session .cell_content.clickable-cell.highlighted.multiple-in-row {
	background-color: #fffacd;
}

/* Engage button */
.btn_engage {
	background: linear-gradient(135deg, #f5f5f5 0%, #dcdcdc 100%);
	color: #333;
	border: none;
	border-radius: 24px;
	padding: 8px 20px;
	font-size: 15.6px;
	font-weight: 500;
	cursor: pointer;
	margin-top: 8px;
	margin-bottom: 4px;
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), 
				0 1px 2px rgba(0, 0, 0, 0.08),
				inset 0 1px 0 rgba(255, 255, 255, 0.5);
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn_engage i {
	margin-right: 8px;
}

.engage-wrap {
	text-align: center;
}

.engage-caption {
	font-size: 11px;
	color: #666;
	margin-top: 2px;
	line-height: 1.2;
}

.btn_engage::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.5s;
}

.btn_engage:hover {
	background: linear-gradient(135deg, #d0d0d0 0%, #b0b0b0 100%);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 
				0 4px 8px rgba(0, 0, 0, 0.1),
				inset 0 1px 0 rgba(255, 255, 255, 0.6);
	transform: translateY(-1px);
}

.btn_engage:hover::before {
	left: 100%;
}

.btn_engage:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 
				0 1px 2px rgba(0, 0, 0, 0.08),
				inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.table_session .header2 th.clickable-column-header {
	cursor: pointer;
}

/* Animation for cell click */
@keyframes cellSaved {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(91, 84, 118, 0.7);
	}
	50% {
		transform: scale(1.02);
		box-shadow: 0 0 0 8px rgba(91, 84, 118, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(91, 84, 118, 0);
	}
}

.table_session .cell_content.clickable-cell.saved-animation {
	animation: cellSaved 0.4s ease;
}

/* Abstract (left) + authors (right) pinned to bottom of cell */
.talk-toggles {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 6px;
}

.talk-toggles .toggle-one-authors {
	margin-left: auto;
}

/* Per-talk abstract / authors toggles after title */
.toggle-one-abstract,
.toggle-one-authors {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: #5b5476;
	font-size: 12px;
	font-weight: normal;
	cursor: pointer;
	vertical-align: baseline;
	text-decoration: none;
	white-space: nowrap;
}

.toggle-one-abstract-arrow {
	color: #007bff;
	font-weight: bold;
}

.toggle-one-abstract:hover,
.toggle-one-authors:hover {
	text-decoration: underline;
}

/* Abstract and Authors — shared left edge */
.abstract,
.authors {
	margin-left: 0;
	margin-right: 0;
	border-left: 3px solid #5b5476;
}

.abstract {
	text-align: justify;
	font-size: 66.5%;
	background-color: #eee;
	line-height: 1.4;
	color: #333;
	padding: 4px 6px;
	border-radius: 3px;
}

.authors {
	text-align: left;
	font-size: 62.5%;
	background-color: #eee;
	line-height: 1.4;
	color: #333;
	margin-top: 4px;
	margin-bottom: 8px;
	padding: 4px 6px;
	border-radius: 3px;
	cursor: pointer;
}

.abstract * {
	margin: 0;
	padding: 0;
}

