/*
 * ===================================================================
 * READING LIST BUTTON STYLING SYSTEM
 * ===================================================================
 * 
 * This system handles reading list buttons across different user states:
 * 
 * 1. .reading-list-btn-login - Logged-out users (signup link)
 * 2. .reading-list-btn - Logged-in users (dropdown OR static button)
 *    - <select> elements: "+ Reading List" dropdown for new books
 *    - <a> elements: "To Be Read"/"Have Read" for existing books
 * 
 * CRITICAL RULES:
 * - All buttons must look IDENTICAL regardless of user state or element type
 * - NO min-height/min-width on base .reading-list-btn class
 * - Only apply sizing constraints to specific element types (select vs a)
 * - Test both dropdown and static button appearances when making changes
 * 
 * ===================================================================
 */
/* Quick Nav Sidebar */
.quick-nav {
	position: fixed;
	left: 20px;
	top: 120px;
	width: 200px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(4, 86, 37, 0.15);
	padding: 20px;
	z-index: 100;
	border: 2px solid #F2EEE9;
}

.quick-nav h3 {
	font: 18px/22px 'Inter';
	font-weight: 700;
	color: #045625;
	margin: 0 0 16px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #F2EEE9;
}

.quick-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.quick-nav li {
	margin: 0 0 8px 0;
}

.quick-nav .nav-link {
	display: block;
	padding: 10px 12px;
	font: 14px/18px 'Inter';
	font-weight: 500;
	color: #2d332f;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.2s ease;
	background: transparent;
}

.quick-nav .nav-link:hover {
	background: rgba(87, 198, 64, 0.1);
	color: #045625;
	transform: translateX(4px);
}

.quick-nav .nav-link.active {
	background: #045625;
	color: white;
	font-weight: 600;
}

/* Hide quick nav on smaller screens */
@media (max-width: 1200px) {
	.quick-nav {
		display: none;
	}
}

/* Recently Viewed Sidebar */
.recently-viewed {
	position: fixed;
	right: 20px;
	top: 120px;
	width: 240px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(4, 86, 37, 0.15);
	padding: 20px;
	z-index: 100;
	border: 2px solid #F2EEE9;
	max-height: calc(100vh - 160px);
	overflow-y: auto;
}

.recently-viewed h3 {
	font: 18px/22px 'Inter';
	font-weight: 700;
	color: #045625;
	margin: 0 0 16px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #F2EEE9;
}

.recent-books-list {
	margin-bottom: 12px;
}

.recent-books-list .empty-state {
	font: 14px/20px 'Inter';
	color: #9ca3af;
	text-align: center;
	padding: 20px 0;
	margin: 0;
}

.recent-book-item {
	display: flex;
	gap: 10px;
	padding: 10px;
	margin-bottom: 8px;
	border-radius: 8px;
	background: #FDFCFA;
	transition: all 0.2s ease;
	text-decoration: none;
	border: 1px solid transparent;
}

.recent-book-item:hover {
	background: rgba(87, 198, 64, 0.05);
	border-color: #57C640;
	transform: translateX(-2px);
}

.recent-book-item img {
	width: 50px;
	height: 75px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.recent-book-info {
	flex: 1;
	min-width: 0;
}

.recent-book-info .title {
	font: 13px/16px 'Inter';
	font-weight: 600;
	color: #2d332f;
	margin: 0 0 4px 0;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.recent-book-info .author {
	font: 12px/16px 'Inter';
	color: #6b7280;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.clear-history-btn {
	width: 100%;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid #2d332f;
	border-radius: 6px;
	color: #2d332f;
	font: 12px/16px 'Inter';
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.clear-history-btn:hover {
	background: #2d332f;
	color: white;
}

/* Hide recently viewed on smaller screens */
@media (max-width: 1400px) {
	.recently-viewed {
		display: none;
	}
}

/* Layout Toggle Button */
.layout-toggle {
	text-align: center;
	margin: 20px 0;
	animation: fadeIn 0.5s ease;
}

.layout-toggle .toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: white;
	border: 2px solid #045625;
	border-radius: 8px;
	color: #045625;
	text-decoration: none;
	font: 14px/18px 'Inter';
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(4, 86, 37, 0.15);
	transition: all 0.3s ease;
}

.layout-toggle .toggle-btn:hover {
	background: #045625;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(4, 86, 37, 0.3);
}

.layout-toggle .toggle-icon {
	font-size: 16px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* On larger screens, position it fixed in the top right */
@media (min-width: 1400px) {
	.layout-toggle {
		position: fixed;
		right: 20px;
		top: 10px;
		z-index: 1000;
		margin: 0;
		animation: fadeInRight 0.5s ease;
	}
	
	.layout-toggle .toggle-btn:hover {
		transform: translateX(-4px);
	}
	
	@keyframes fadeInRight {
		from {
			opacity: 0;
			transform: translateX(20px);
		}
		to {
			opacity: 1;
			transform: translateX(0);
		}
	}
}

/* Container */
.infinite-scroll-wrapper,
.quiz-results-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0;
	overflow: visible;
}

.feed-intro {
	text-align: center;
	margin-bottom: 35px;
	padding: 30px 20px;
	background: linear-gradient(135deg, #045625 0%, rgba(4, 86, 37, 0.8) 100%);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(4, 86, 37, 0.3);
}

.feed-intro h1 {
	font: 32px/38px 'Domine';
	color: #ffffff;
	margin: 0;
	text-shadow: 0 2px 8px rgba(0,0,0,0.2);
	letter-spacing: 0.5px;
}

.vertical-feed {
	display: flex;
	flex-direction: column;
	gap: 24px;
	overflow: visible;
	padding-top: 100px;
	margin-top: -100px;
}

/* Feed Card Base Styles */
.feed-card {
	background: linear-gradient(135deg, #ffffff 0%, #f9f7f4 100%);
	border-radius: 16px;
	padding: 24px 28px;
	animation: fadeInUp 0.6s ease;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	border: 2px solid transparent;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: visible;
}

.feed-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #045625 0%, rgba(4, 86, 37, 0) 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.feed-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.12);
	border-color: rgba(4, 86, 37, 0.2);
}

.feed-card:hover::before {
	transform: scaleX(1);
}

/* Different colors for different card types - single color to transparent */
.feed-card.editor-card::before {
	background: linear-gradient(90deg, #045625 0%, rgba(4, 86, 37, 0) 100%);
}

.feed-card.members-card::before {
	background: linear-gradient(90deg, #079343 0%, rgba(7, 147, 67, 0) 100%);
}

.feed-card.bookclub-card::before {
	background: linear-gradient(90deg, #57C640 0%, rgba(87, 198, 64, 0) 100%);
}

.feed-card.paperback-card::before {
	background: linear-gradient(90deg, #6a4c93 0%, rgba(106, 76, 147, 0) 100%);
}

.feed-card.reader-review-card::before {
	background: linear-gradient(90deg, #079343 0%, rgba(7, 147, 67, 0) 100%);
}

.feed-card.discourse-card::before {
	background: linear-gradient(90deg, #57C640 0%, rgba(87, 198, 64, 0) 100%);
}

.feed-card.join-card::before {
	background: linear-gradient(90deg, #6a4c93 0%, rgba(106, 76, 147, 0) 100%);
}

.feed-card .card-header {
	border-bottom: 3px solid transparent;
	background: linear-gradient(to right, #045625 0%, transparent 100%);
	background-size: 100% 3px;
	background-position: bottom;
	background-repeat: no-repeat;
	padding-bottom: 12px;
	margin-bottom: 20px;
	position: relative;
	overflow: visible;
	z-index: 1;
}

.feed-card .card-header:hover {
	z-index: 10001;
}

.feed-card .card-header h3 {
	font: 22px/26px 'Inter';
	font-weight: 700;
	color: #045625;
	margin: 0;
	display: inline-block;
}

/* Card Title Links with Tooltips */
.card-title-link {
	color: inherit !important;
	text-decoration: none !important;
	position: relative;
	transition: color 0.2s ease;
	cursor: pointer;
	border: none !important;
}

.card-title-link:hover {
	color: inherit !important;
	text-decoration: none !important;
}

/* Tooltip styling */
.card-title-link[data-tooltip] {
	position: relative;
}

.card-title-link[data-tooltip]::before,
.card-title-link[data-tooltip]::after {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 999999;
}

/* Tooltip text bubble */
.card-title-link[data-tooltip]::before {
	content: attr(data-tooltip);
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	background: rgba(45, 51, 47, 0.95);
	color: white;
	padding: 12px 16px;
	border-radius: 8px;
	font: 13px/18px 'Inter';
	font-weight: 400;
	white-space: normal;
	width: 280px;
	max-width: 280px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	margin-bottom: 8px;
}

/* Tooltip arrow */
.card-title-link[data-tooltip]::after {
	content: '';
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(0px);
	border: 6px solid transparent;
	border-top-color: rgba(45, 51, 47, 0.95);
	margin-bottom: 2px;
}

/* Show tooltip on hover with delay */
.card-title-link[data-tooltip]:hover::before,
.card-title-link[data-tooltip]:hover::after {
	opacity: 1;
	transition-delay: 0.5s;
}

.card-title-link[data-tooltip]:hover::before {
	transform: translateX(-50%) translateY(-4px);
}

.card-title-link[data-tooltip]:hover::after {
	transform: translateX(-50%) translateY(-4px);
}

/* Mobile - hide tooltips on touch devices */
@media (max-width: 768px) {
	.card-title-link[data-tooltip]::before,
	.card-title-link[data-tooltip]::after {
		display: none;
	}
}

.feed-card .card-content {
	display: flex;
	gap: 22px;
	align-items: flex-start;
}

.feed-card .card-content.centered {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.feed-card .book-image {
	flex-shrink: 0;
	width: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.feed-card .book-image::after {
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	right: -8px;
	bottom: -8px;
	background: #045625;
	border-radius: 10px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
}

.feed-card .book-image:hover::after {
	opacity: 0.15;
}

.feed-card .book-image img {
	width: 100%;
	max-width: 120px;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-card .book-image img:hover {
	transform: scale(1.08) rotateZ(2deg);
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.feed-card .book-details {
	flex: 1;
	min-width: 0;
}

/* Stack layout for narrow cards to prevent text squishing */
@media (max-width: 640px) {
	.feed-card .card-content {
		flex-direction: column;
		align-items: center;
	}

	.feed-card .book-image {
		width: 160px;
	}

	.feed-card .book-image img {
		max-width: 160px;
		height: 240px;
	}

	.feed-card .book-details {
		text-align: center;
	}
	
	/* Join button alignment for smaller mobile screens */
	.feed-card .join-btn,
	.feed-card.join-card .button.join-btn {
		padding: 10px 20px !important;
		font-size: 14px !important;
		border-radius: 8px !important;
		font-weight: 600 !important;
		margin: 0 !important;
		text-align: center !important;
	}
	
	.feed-card.join-card .promo {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
	}
}

.feed-card .book-details h4 {
	font: 20px/24px 'Domine';
	font-weight: bold;
	color: #2d332f;
	margin: 0 0 12px 0;
	transition: color 0.2s ease;
}

.feed-card .book-details h4 a {
	color: #2d332f;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
	padding-bottom: 2px;
}

.feed-card .book-details h4 a:hover {
	color: #045625;
	border-bottom-color: #045625;
}

.feed-card .book-details p {
	font: 15px/22px 'Inter';
	color: #4a5568;
	margin: 0 0 12px 0;
}

.feed-card .author {
	font-style: italic;
	color: #718096;
	font-size: 14px;
}

.feed-card .section-label {
	font-weight: bold;
	margin-bottom: 8px;
}

.feed-card .review-section,
.feed-card .btb-section {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e2e8f0;
}

.feed-card .btb-section {
	border-bottom: none;
}

.feed-card .btb-title {
	font-size: 15px;
	margin-bottom: 8px;
}

.feed-card .rating {
	margin: 10px 0;
	filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.feed-card .promo-text {
	line-height: 1.7;
}

.feed-card .button-group {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.feed-card .button-group .button {
	margin: 0;
	transition: all 0.3s ease;
}

.feed-card .button-group .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(4, 86, 37, 0.3);
}

/* Fun Button Styles - matches reading list button structure */
.feed-card .gradient-btn {
	background: #045625 !important;
	color: white !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	box-shadow: 0 4px 12px rgba(4, 86, 37, 0.3) !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-block !important;
	position: relative !important;
	overflow: hidden !important;
	height: auto !important;
	width: auto !important;
}

.feed-card .gradient-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s ease;
}

.feed-card .gradient-btn:hover::before {
	left: 100%;
}

.feed-card .gradient-btn:hover {
	transform: translateY(-3px) scale(1.03) !important;
	box-shadow: 0 6px 20px rgba(4, 86, 37, 0.4) !important;
	background: #079343 !important;
}

.feed-card .gradient-btn:active {
	transform: translateY(-1px) scale(0.98) !important;
}

/* Alternative gradient for variety */
.feed-card .gradient-btn.alt {
	background: #6a4c93 !important;
	box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3) !important;
}

.feed-card .gradient-btn.alt:hover {
	box-shadow: 0 6px 20px rgba(106, 76, 147, 0.4) !important;
	background: #8e6bb8 !important;
}

/* 
 * READING LIST BUTTON STYLING - CRITICAL NOTES:
 * 
 * This class is used for BOTH dropdowns (<select>) and static buttons (<a>)
 * - Dropdowns: Used for "+ Reading List" when book not yet added
 * - Static buttons: Used for "To Be Read"/"Have Read" when book already added
 * 
 * IMPORTANT: These must look IDENTICAL to .reading-list-btn-login
 * - Same background, padding, border-radius, font, etc.
 * - NO min-height on base class (makes static buttons too tall)
 * - NO min-width on base class (makes static buttons too wide)
 * - Use appearance: none to remove default select styling
 * 
 * If you modify this CSS, test BOTH:
 * 1. Dropdown functionality (logged-in members, new books)
 * 2. Static button appearance (logged-in members, existing books)
 */
.feed-card .reading-list-btn {
	background: #6a4c93 !important;
	color: white !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3) !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-block !important;
	position: relative !important;
	overflow: hidden !important;
	height: auto !important;
	width: auto !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}

/* Ensure text is visible in select dropdowns */
.feed-card .reading-list-btn option {
	background: white !important;
	color: #2d332f !important;
	padding: 8px 12px !important;
}

/* 
 * SELECT-SPECIFIC SIZING:
 * Only apply min-height to <select> elements, not static <a> buttons
 * This prevents static "Have Read"/"To Be Read" buttons from being too tall
 */
.feed-card .reading-list-btn select {
	min-height: 40px !important;
}

/* No dropdown arrow needed */

.feed-card .reading-list-btn:hover {
	transform: translateY(-3px) scale(1.03) !important;
	box-shadow: 0 6px 20px rgba(106, 76, 147, 0.4) !important;
	background: #8e6bb8 !important;
}

.feed-card .reading-list-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s ease;
}

.feed-card .reading-list-btn:hover::before {
	left: 100%;
}


.feed-card .reading-list-btn option {
	background: white !important;
	color: #2d332f !important;
}

/* 
 * LOGGED-OUT BUTTON STYLING:
 * This is the reference styling that .reading-list-btn must match exactly
 * Used for non-logged-in users (signup link)
 * 
 * CRITICAL: Any changes to this CSS must be replicated in .reading-list-btn
 * to maintain visual consistency between logged-in and logged-out states
 */
.feed-card .reading-list-btn-login {
	background: #6a4c93 !important;
	color: white !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3) !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-block !important;
	position: relative !important;
	overflow: hidden !important;
	height: auto !important;
	width: auto !important;
}

/* Library Search Button - matches reading list button color */
.feed-card .library-search-btn {
	background: #6a4c93 !important;
	color: white !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3) !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-block !important;
	position: relative !important;
	overflow: hidden !important;
	height: auto !important;
	width: auto !important;
}

.feed-card .library-search-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s ease;
}

.feed-card .library-search-btn:hover::before {
	left: 100%;
}

.feed-card .library-search-btn:hover {
	transform: translateY(-3px) scale(1.03) !important;
	box-shadow: 0 6px 20px rgba(106, 76, 147, 0.4) !important;
	background: #8e6bb8 !important;
}

.feed-card .reading-list-btn-login::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s ease;
}

.feed-card .reading-list-btn-login:hover::before {
	left: 100%;
}

.feed-card .reading-list-btn-login:hover {
	transform: translateY(-3px) scale(1.03) !important;
	box-shadow: 0 6px 20px rgba(106, 76, 147, 0.4) !important;
	background: #8e6bb8 !important;
}

/* Added to Reading List Button */
.feed-card .added-btn {
	background: #079343 !important;
	color: white !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	box-shadow: 0 4px 12px rgba(7, 147, 67, 0.3) !important;
	transition: all 0.3s ease !important;
	position: relative !important;
	animation: successPulse 2s ease-in-out infinite !important;
}

.feed-card .added-btn:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(7, 147, 67, 0.4) !important;
	animation: none !important;
	background: #0bb356 !important;
}

@keyframes successPulse {
	0%, 100% {
		box-shadow: 0 4px 12px rgba(7, 147, 67, 0.3);
	}
	50% {
		box-shadow: 0 4px 16px rgba(7, 147, 67, 0.5);
	}
}

/* Join Button - matches reading list button structure with white background */
.feed-card .join-btn {
	background: white !important;
	color: #045625 !important;
	border: none !important;
	padding: 14px 32px !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	text-decoration: none !important;
	display: inline-block !important;
	position: relative !important;
	overflow: hidden !important;
}

.feed-card .join-btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(4, 86, 37, 0.1);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.feed-card .join-btn:hover::after {
	width: 300px;
	height: 300px;
}

.feed-card .join-btn:hover {
	transform: translateY(-4px) scale(1.08) !important;
	box-shadow: 0 8px 30px rgba(0,0,0,0.3) !important;
}

/* Centered Cards (Book Club, Paperback, Join) */
.feed-card.centered .card-content {
	gap: 18px;
}

.feed-card.bookclub-card.centered img {
	max-width: 200px;
	height: auto;
	margin-bottom: 15px;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
	transition: transform 0.3s ease;
}

.feed-card.bookclub-card.centered img:hover {
	transform: scale(1.05);
}

/* BookBrowse Book Club with side-by-side layout */
.feed-card.bookclub-card:not(.centered) .book-image img {
	width: 120px;
	height: 180px;
	object-fit: cover;
}

.feed-card.paperback-card h4 {
	margin: 10px 0;
	font-size: 18px;
}

/* Editor's Choice Card Special Styling */
.feed-card.editor-card .editor-summary {
	font-style: italic;
	color: #2d332f;
	margin: 12px 0;
	padding-left: 12px;
	border-left: 3px solid #6a4c93;
	background: rgba(106, 76, 147, 0.08);
	padding: 12px;
	border-radius: 4px;
	line-height: 1.6;
	font-size: 15px;
	font-weight: 500;
}

.feed-card.editor-card .beyond-subtitle {
	color: #666;
	margin: 8px 0 12px 0;
	font-size: 14px;
	line-height: 1.5;
}

.feed-card.editor-card .beyond-subtitle a {
	color: #6a4c93;
	text-decoration: none;
	font-weight: 500;
}

.feed-card.editor-card .beyond-subtitle a:hover {
	text-decoration: underline;
}

.feed-card.editor-card .editor-excerpt {
	font-style: normal;
	color: #4a5568;
	margin: 12px 0;
	line-height: 1.6;
}

/* Reader Review Card Special Styling */
.feed-card.reader-review-card .reviewer-info {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.feed-card.reader-review-card .power-reviewer-badge {
	font-size: 18px;
	display: inline-block;
	animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
	0%, 100% {
		transform: scale(1);
		filter: brightness(1);
	}
	50% {
		transform: scale(1.2);
		filter: brightness(1.5);
	}
}

.feed-card.reader-review-card .reviewer-name {
	font-size: 15px;
	color: #045625;
}

.feed-card.reader-review-card .reviewer-name a {
	color: #045625;
	text-decoration: none;
	transition: color 0.2s ease;
}

.feed-card.reader-review-card .reviewer-name a:hover {
	color: #6a4c93;
}

.feed-card.reader-review-card .review-title {
	font-style: italic;
	color: #2d332f;
	margin: 8px 0;
	padding-left: 12px;
	border-left: 3px solid #6a4c93;
	background: rgba(106, 76, 147, 0.1);
	padding: 8px 12px;
	border-radius: 4px;
}

.feed-card.reader-review-card .review-excerpt {
	line-height: 1.6;
	color: #4a5568;
	margin: 12px 0;
}

/* Discourse Mention Card Special Styling */
.feed-card.discourse-card .discussion-info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #4a5568;
	line-height: 1.5;
}

.feed-card.discourse-card .username {
	font-size: 15px;
	color: #57C640;
	font-weight: 600;
}

.feed-card.discourse-card .post-title {
	font-style: italic;
	color: #2d332f;
	font-weight: 500;
}

.feed-card.discourse-card .book-summary {
	line-height: 1.6;
	color: #4a5568;
	margin: 12px 0;
}

/* Author Interview Card Special Styling */
.feed-card.interview-card .author-image {
	flex-shrink: 0;
	width: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.feed-card.interview-card .author-image img {
	width: 120px;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
	border: 3px solid #f2eee9;
}

.feed-card.interview-card .author-image img:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
	border-color: #045625;
}

.feed-card.interview-card .author-book {
	font-style: italic;
	color: #6b7280;
	font-size: 14px;
	margin: 8px 0;
}

.feed-card.interview-card .interview-excerpt {
	line-height: 1.6;
	color: #4a5568;
	margin: 12px 0;
}

.feed-card.interview-card::before {
	background: linear-gradient(90deg, #8e6bb8 0%, rgba(142, 107, 184, 0) 100%);
}

/* Read-Alike Card Special Styling */
.feed-card.readalike-card::before {
	background: linear-gradient(90deg, #057a48 0%, rgba(5, 122, 72, 0) 100%);
}

.feed-card.readalike-card .readalike-layout {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.feed-card.readalike-card .section-label {
	font-size: 12px;
	text-transform: uppercase;
	color: #045625;
	font-weight: 700;
	margin: 0 0 12px 0;
	letter-spacing: 0.5px;
}

/* Source Book Section */
.feed-card.readalike-card .readalike-source-section {
	padding-bottom: 20px;
	border-bottom: 2px solid #f2eee9;
}

.feed-card.readalike-card .readalike-featured-book {
	display: flex;
	gap: 20px;
	align-items: center;
}

.feed-card.readalike-card .readalike-featured-book img.featured-jacket {
	width: 100px;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
}

.feed-card.readalike-card .readalike-featured-book img.featured-jacket:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.feed-card.readalike-card .featured-info {
	flex: 1;
}

.feed-card.readalike-card .featured-info h4 {
	font-size: 18px;
	margin: 0 0 8px 0;
}

.feed-card.readalike-card .featured-info .author {
	font-size: 14px;
	color: #6b7280;
	font-style: italic;
	margin: 0;
}

/* Read-Alike Suggestions Grid */
.feed-card.readalike-card .readalike-suggestions-section {
	/* No additional styling needed */
}

.feed-card.readalike-card .readalike-books-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.feed-card.readalike-card .readalike-book-item {
	text-align: center;
}

.feed-card.readalike-card .readalike-book-item img {
	width: 100%;
	max-width: 100px;
	height: 150px;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	margin: 0 auto 10px auto;
	display: block;
	transition: all 0.3s ease;
}

.feed-card.readalike-card .readalike-book-item img:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.feed-card.readalike-card .readalike-book-item h5 {
	font: 14px/18px 'Domine';
	font-weight: 600;
	margin: 0 0 4px 0;
	min-height: 36px;
}

.feed-card.readalike-card .readalike-book-item h5 a {
	color: #2d332f;
	text-decoration: none;
	transition: color 0.2s ease;
}

.feed-card.readalike-card .readalike-book-item h5 a:hover {
	color: #045625;
}

.feed-card.readalike-card .readalike-book-item .author {
	font-size: 12px;
	color: #6b7280;
	font-style: italic;
	margin: 0;
}

@media (max-width: 768px) {
	.feed-card.readalike-card .readalike-books-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.feed-card.readalike-card .readalike-featured-book {
		flex-direction: column;
		text-align: center;
	}
}

/* Hot Topic Card Special Styling */
.feed-card.hot-topic-card::before {
	background: linear-gradient(90deg, #22c55e 0%, rgba(34, 197, 94, 0) 100%);
}

.feed-card.hot-topic-card .hot-topic-vertical {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.feed-card.hot-topic-card h4 {
	margin: 0;
	line-height: 1.4;
	font-size: 20px;
}

.feed-card.hot-topic-card .topic-excerpt {
	line-height: 1.6;
	color: #4a5568;
	margin: 0;
	flex: 1;
}

.feed-card.hot-topic-card .topic-stats-highlight {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.05) 100%);
	border-radius: 8px;
	border: 2px solid rgba(34, 197, 94, 0.15);
}

.feed-card.hot-topic-card .topic-stats-highlight .stat {
	font-size: 15px;
	color: #2d332f;
	font-weight: 500;
}

.feed-card.hot-topic-card .topic-stats-highlight .stat strong {
	color: #22c55e;
	font-size: 20px;
	font-weight: 700;
	margin-right: 4px;
}

.feed-card.hot-topic-card .topic-stats-highlight .stat-divider {
	color: #cbd5e0;
	font-size: 18px;
	font-weight: 300;
}

.feed-card.hot-topic-card .button-group {
	margin-top: 0;
}

/* Newsletter Card Special Styling */
.feed-card.newsletter-card {
	background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
	border: none;
	position: relative;
	overflow: hidden;
}

.feed-card.newsletter-card::before {
	display: none;
}

.feed-card.newsletter-card .newsletter-signup-block {
	position: relative;
	z-index: 1;
}

.newsletter-signup-block {
	padding: 0;
}

.newsletter-header {
	text-align: center;
	margin-bottom: 20px;
}

.newsletter-header h3 {
	font: 24px/28px 'Domine';
	color: #ffffff;
	margin: 0 0 8px 0;
	text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.newsletter-header .newsletter-tagline {
	font: 14px/18px 'Inter';
	color: rgba(255,255,255,0.9);
	margin: 0;
	font-style: italic;
}

.newsletter-content {
	background: rgba(255,255,255,0.95);
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.newsletter-content p {
	font: 15px/22px 'Inter';
	color: #2d332f;
	margin: 0 0 20px 0;
	text-align: center;
}

.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.newsletter-form .form-group {
	margin: 0;
	width: 400px;
	max-width: 100%;
	display: flex;
	justify-content: center;
}

.newsletter-form .form-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font: 15px/20px 'Inter';
	color: #2d332f;
	transition: all 0.2s ease;
	box-sizing: border-box;
	text-align: left;
}

.newsletter-form .form-input:focus {
	outline: none;
	border-color: #0d9488;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.newsletter-form .newsletter-submit-btn {
	width: auto;
	min-width: 200px;
	padding: 14px 32px;
	background: #0d9488;
	color: white;
	border: none;
	border-radius: 8px;
	font: 16px/20px 'Inter';
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.newsletter-form .newsletter-submit-btn:hover {
	background: #0f766e;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.newsletter-form .newsletter-submit-btn:active {
	transform: translateY(0);
}

.newsletter-form .newsletter-privacy {
	font: 12px/18px 'Inter';
	color: #6b7280;
	text-align: center;
	margin: 8px 0 0 0;
}

/* Personal Recommendations Card Special Styling */
.feed-card.personal-rec-card::before {
	background: linear-gradient(90deg, #8b5cf6 0%, rgba(139, 92, 246, 0) 100%);
}

.feed-card.personal-rec-card .personal-rec-content {
	padding: 20px;
	text-align: center;
}

.feed-card.personal-rec-card .personal-rec-content h4 {
	font: 20px/24px 'Domine';
	font-weight: 600;
	color: #2d332f;
	margin: 0 0 12px 0;
}

.feed-card.personal-rec-card .personal-rec-content p {
	font: 15px/22px 'Inter';
	color: #4a5568;
	margin: 0 0 20px 0;
	line-height: 1.6;
}

/* Wordplay Card Special Styling */
.feed-card.wordplay-card::before {
	background: linear-gradient(90deg, #3b82f6 0%, rgba(59, 130, 246, 0) 100%);
}

.feed-card.wordplay-card .wordplay-content {
	padding: 20px;
	text-align: center;
}

.feed-card.wordplay-card .wordplay-prompt {
	font: 16px/22px 'Inter';
	color: #2d332f;
	margin: 0 0 15px 0;
}

.feed-card.wordplay-card .wordplay-clue-highlight {
	font: 18px/26px 'Domine';
	font-weight: 600;
	color: #1e40af;
	margin: 15px 0;
	padding: 20px;
	border-left: 4px solid #3b82f6;
	background: rgba(59, 130, 246, 0.12);
	border-radius: 6px;
	line-height: 1.6;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
	transition: all 0.3s ease;
}

.feed-card.wordplay-card .wordplay-clue-highlight:hover {
	background: rgba(59, 130, 246, 0.18);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
	transform: translateY(-2px);
}

.feed-card.wordplay-card .wordplay-prize {
	font: 15px/22px 'Inter';
	color: #4a5568;
	margin: 15px 0 0 0;
	font-style: italic;
}

.feed-card.wordplay-card .wordplay-name {
	font: 20px/26px 'Domine';
	font-weight: 600;
	color: #2d332f;
	margin: 0 0 12px 0;
}

.feed-card.wordplay-card .wordplay-tagline {
	font: 15px/22px 'Inter';
	color: #4a5568;
	margin: 0;
}

/* Blog Post Card Special Styling */
.feed-card.blog-card::before {
	background: linear-gradient(90deg, #f97316 0%, rgba(249, 115, 22, 0) 100%);
}

.feed-card.blog-card .blog-content {
	padding: 20px;
	text-align: center;
}

.feed-card.blog-card .blog-date {
	font: 13px/18px 'Inter';
	font-weight: 600;
	color: #f97316;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 15px 0;
}

.feed-card.blog-card h4 {
	font: 22px/28px 'Domine';
	font-weight: 700;
	color: #2d332f;
	margin: 0 0 15px 0;
}

.feed-card.blog-card h4 a {
	color: #2d332f;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
	padding-bottom: 2px;
}

.feed-card.blog-card h4 a:hover {
	color: #f97316;
	border-bottom-color: #f97316;
}

.feed-card.blog-card .blog-excerpt {
	font: 15px/24px 'Inter';
	color: #4a5568;
	margin: 0;
	line-height: 1.7;
}

/* Reading List Card Special Styling */
.feed-card.reading-list-card::before {
	background: linear-gradient(90deg, #8b5cf6 0%, rgba(139, 92, 246, 0) 100%);
}

/* Library Search Card Special Styling */
.feed-card.library-search-card::before {
	background: linear-gradient(90deg, #dc2626 0%, rgba(220, 38, 38, 0) 100%);
}

.feed-card.library-search-card .library-search-info {
	text-align: center;
	padding: 20px;
}

.feed-card.library-search-card .library-search-info h4 {
	font: 20px/24px 'Domine';
	font-weight: 600;
	color: #2d332f;
	margin: 0 0 12px 0;
}

.feed-card.library-search-card .library-search-info p {
	font: 15px/22px 'Inter';
	color: #4a5568;
	margin: 0 0 20px 0;
	line-height: 1.6;
}

.feed-card.library-search-card .library-search-example {
	background: rgba(220, 38, 38, 0.05);
	border: 1px solid rgba(220, 38, 38, 0.1);
	border-radius: 8px;
	padding: 16px;
	margin: 16px 0;
	text-align: left;
}

.feed-card.library-search-card .library-search-example p {
	margin: 0 0 8px 0;
	font-weight: 600;
	color: #dc2626;
}

.feed-card.library-search-card .library-search-example ul {
	margin: 0;
	padding-left: 20px;
	list-style: none;
}

.feed-card.library-search-card .library-search-example li {
	font: 14px/20px 'Inter';
	color: #4a5568;
	margin: 0 0 6px 0;
	position: relative;
}

.feed-card.library-search-card .library-search-example li::before {
	content: "•";
	color: #dc2626;
	font-weight: bold;
	position: absolute;
	left: -15px;
}

.feed-card.reading-list-card .reading-list-books {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.feed-card.reading-list-card .reading-list-book-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px;
	background: rgba(139, 92, 246, 0.05);
	border-radius: 12px;
	border: 1px solid rgba(139, 92, 246, 0.1);
	transition: all 0.3s ease;
}

.feed-card.reading-list-card .reading-list-book-item:hover {
	background: rgba(139, 92, 246, 0.08);
	border-color: rgba(139, 92, 246, 0.2);
	transform: translateX(4px);
}

.feed-card.reading-list-card .reading-list-book-item img {
	width: 80px;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
}

.feed-card.reading-list-card .reading-list-book-item img:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.feed-card.reading-list-card .book-info {
	flex: 1;
	min-width: 0;
}

.feed-card.reading-list-card .book-info h5 {
	font: 16px/20px 'Domine';
	font-weight: 600;
	margin: 0 0 6px 0;
	color: #2d332f;
}

.feed-card.reading-list-card .book-info h5 a {
	color: #2d332f;
	text-decoration: none;
	transition: color 0.2s ease;
}

.feed-card.reading-list-card .book-info h5 a:hover {
	color: #8b5cf6;
}

.feed-card.reading-list-card .book-info .author {
	font: 14px/18px 'Inter';
	color: #6b7280;
	margin: 0 0 4px 0;
	font-style: italic;
}

.feed-card.reading-list-card .book-info .category {
	font: 12px/16px 'Inter';
	color: #8b5cf6;
	margin: 0;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Join Card Special Styling */
.feed-card.join-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.feed-card.join-card::before {
	display: none;
}

.feed-card.join-card::after {
	content: '📚';
	position: absolute;
	font-size: 120px;
	opacity: 0.1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-15deg);
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0%, 100% {
		transform: translate(-50%, -50%) rotate(-15deg);
	}
	50% {
		transform: translate(-50%, -55%) rotate(-12deg);
	}
}

.feed-card.join-card h3 {
	font: 26px/30px 'Domine';
	color: #ffffff;
	margin: 0 0 15px 0;
	text-shadow: 0 2px 8px rgba(0,0,0,0.2);
	position: relative;
	z-index: 1;
}

.feed-card.join-card p {
	font: 17px/24px 'Inter';
	color: #ffffff;
	margin: 0 0 24px 0;
	text-shadow: 0 1px 4px rgba(0,0,0,0.1);
	position: relative;
	z-index: 1;
}

.feed-card.join-card .promo {
	padding: 20px;
	position: relative;
	z-index: 1;
}

/* Loading Indicator */
.loading-indicator {
	text-align: center;
	padding: 24px;
	color: #4a5568;
	font: 16px/20px 'Inter';
	background: linear-gradient(135deg, #f9f7f4 0%, #ffffff 100%);
	border-radius: 12px;
	margin-top: 20px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.infinite-scroll-wrapper,
	.quiz-results-container {
		padding: 10px;
		max-width: 100%;
	}
	
	.feed-intro {
		padding: 24px 16px;
		margin-bottom: 24px;
	}
	
	.feed-intro h1 {
		font-size: 26px;
		line-height: 32px;
	}
	
	.feed-card {
		padding: 18px 20px;
	}
	
	.feed-card .card-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	.feed-card .book-image {
		margin-bottom: 15px;
	}
	
	.feed-card .book-details {
		width: 100%;
	}
	
	.feed-card .button-group {
		justify-content: center;
	}
	
	/* Join button mobile alignment - match other buttons exactly */
	.feed-card .join-btn,
	.feed-card.join-card .button.join-btn {
		padding: 10px 20px !important;
		font-size: 14px !important;
		border-radius: 8px !important;
		font-weight: 600 !important;
		height: auto !important;
		width: auto !important;
		margin: 0 !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		line-height: normal !important;
		display: inline-block !important;
		box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
		text-align: center !important;
	}
	
	.feed-card .join-btn:hover,
	.feed-card.join-card .button.join-btn:hover {
		transform: translateY(-2px) !important;
		box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
	}
	
	/* Ensure promo container centers the button */
	.feed-card.join-card .promo {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
	}
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
	.infinite-scroll-wrapper {
		max-width: 90%;
	}
}

/* Add smooth scroll behavior */
html {
	scroll-behavior: smooth;
}
