/* ============================================================
   Exchanged Timeline — Reading List Styles (reading-list.css)
   Powers both the timeline toolbar dropdown (.et-rl-dropdown)
   and the standalone [et_reading_list] shortcode page (.et-rl-page).
   ============================================================ */

/* ---- Toolbar toggle button (timeline-controls integration) -- */
.et-reading-list-group {
	position: relative;
}

.et-rl-toggle-btn .et-rl-count {
	display: inline-block;
	margin-left: .35em;
	padding: 0 .4em;
	min-width: 1.4em;
	height: 1.4em;
	line-height: 1.4em;
	text-align: center;
	background: #2271b1;
	color: #fff;
	border-radius: 999px;
	font-size: .75em;
	font-weight: 600;
}

/* ---- Dropdown panel (anchored under the toggle) ------------ */
.et-rl-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: .35rem;
	width: 360px;
	max-width: calc(100vw - 1rem);
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 5px;
	box-shadow: 0 6px 18px rgba(0,0,0,.14);
	z-index: 500;
	max-height: 480px;
	display: flex;
	flex-direction: column;
}
.et-rl-dropdown[hidden] { display: none; }

.et-rl-dropdown .et-rl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	padding: .5rem .55rem;
	border-bottom: 1px solid #e5e5e5;
	background: #f6f7f7;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.et-rl-dropdown .et-rl-items {
	overflow-y: auto;
	padding: .25rem 0;
	flex: 1;
}

/* ---- Standalone page surface -------------------------------- */
.et-rl-page {
	max-width: 780px;
	margin: 0 auto;
	font-family: inherit;
}

.et-rl-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid #e5e5e5;
}

.et-rl-title {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
}
.et-rl-title .et-rl-count {
	display: inline-block;
	margin-left: .35em;
	padding: 0 .5em;
	min-width: 1.4em;
	height: 1.6em;
	line-height: 1.6em;
	text-align: center;
	background: #e5e5e5;
	color: #3c434a;
	border-radius: 999px;
	font-size: .7em;
	font-weight: 600;
	vertical-align: middle;
}

.et-rl-page .et-rl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

/* ---- Action buttons (shared) -------------------------------- */
.et-rl-btn {
	display: inline-block;
	padding: .3rem .7rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	font-size: .82rem;
	cursor: pointer;
	transition: background .12s, border-color .12s;
}
.et-rl-btn:hover:not(:disabled) {
	background: #f0f6fc;
	border-color: #2271b1;
}
.et-rl-btn:disabled {
	opacity: .6;
	cursor: default;
}
.et-rl-btn--danger {
	color: #b32d2e;
	border-color: #e0c4c4;
}
.et-rl-btn--danger:hover:not(:disabled) {
	background: #fcf0f1;
	border-color: #b32d2e;
}

/* ---- Items list --------------------------------------------- */
.et-rl-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.et-rl-item {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	padding: .5rem .75rem;
	border-bottom: 1px solid #f0f0f1;
}
.et-rl-item:last-child { border-bottom: none; }
.et-rl-item:hover { background: #fafbfc; }

.et-rl-item-type {
	flex-shrink: 0;
	display: inline-block;
	padding: .1rem .4rem;
	border-radius: 3px;
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .04em;
	margin-top: .1rem;
}
.et-rl-item--work   .et-rl-item-type { background: #fcf2e3; color: #784d09; }
.et-rl-item--author .et-rl-item-type { background: #e7f1fb; color: #134e7a; }

.et-rl-item-body {
	flex: 1;
	min-width: 0;
}
.et-rl-item-head {
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.35;
}
.et-rl-item-head .et-rl-item-title {
	color: #1d2327;
	text-decoration: none;
}
.et-rl-item-head a.et-rl-item-title { color: #2271b1; }
.et-rl-item-head a.et-rl-item-title:hover { text-decoration: underline; }

.et-rl-item-meta {
	font-size: .78rem;
	color: #646970;
	margin-top: .1rem;
}

.et-rl-item-remove {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	background: transparent;
	color: #8c8f94;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .12s, color .12s;
}
.et-rl-item-remove:hover {
	background: #fcf0f1;
	color: #b32d2e;
}

.et-rl-empty {
	margin: 0;
	padding: 1.25rem .75rem;
	color: #8c8f94;
	font-style: italic;
	text-align: center;
}
