/* ==========================================================================
   SpinTheWheelApp Blog - Stylesheet
   Vibrant, high-conversion, playful yet ultra-clean modern design
   ========================================================================== */

:root {
	--font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

	/* Color Tokens - Light */
	--bg-primary: #f8fafc;
	--bg-card: #ffffff;
	--bg-elevated: #ffffff;
	--bg-subtle: #f1f5f9;
	--bg-hover: #e2e8f0;
	--border-light: #e2e8f0;
	--border-subtle: #edf2f7;

	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-muted: #64748b;
	--text-inverse: #ffffff;

	/* Brand Vibrant Accents */
	--brand-primary: #6366f1;
	--brand-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
	--brand-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #db2777 50%, #d97706 100%);
	--accent-pink: #ec4899;
	--accent-purple: #8b5cf6;
	--accent-yellow: #f59e0b;
	--accent-teal: #14b8a6;
	--accent-blue: #3b82f6;
	--accent-orange: #f97316;
	--accent-emerald: #10b981;

	--shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
	--shadow-lg: 0 20px 40px -8px rgba(99, 102, 241, 0.15), 0 10px 20px -4px rgba(15, 23, 42, 0.06);
	--shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;
	--radius-full: 9999px;

	--nav-height: 72px;
	--transition-fast: 0.15s ease;
	--transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	--transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
	--bg-primary: #0b0f19;
	--bg-card: #131b2e;
	--bg-elevated: #1a243d;
	--bg-subtle: #1e2942;
	--bg-hover: #263353;
	--border-light: #24304f;
	--border-subtle: #1a243d;

	--text-primary: #f8fafc;
	--text-secondary: #cbd5e1;
	--text-muted: #94a3b8;
	--text-inverse: #0b0f19;

	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 10px 30px -4px rgba(0, 0, 0, 0.5);
	--shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.7);
	--shadow-glow: 0 0 35px rgba(139, 92, 246, 0.4);
}

/* Base reset */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Top Conversion Announcement Bar */
.top-announcement {
	background: var(--brand-gradient);
	color: #ffffff;
	padding: 8px 16px;
	font-size: 0.85rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	position: relative;
	z-index: 101;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-announcement a {
	color: #ffffff;
	text-decoration: underline;
	font-weight: 800;
	background: rgba(255,255,255,0.2);
	padding: 2px 10px;
	border-radius: var(--radius-full);
	transition: background var(--transition-fast);
}

.top-announcement a:hover {
	background: rgba(255,255,255,0.35);
}

/* Navigation Header */
.main-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-light);
	transition: background var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .main-nav {
	background: rgba(11, 15, 25, 0.85);
}

.nav-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: var(--nav-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text-primary);
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.brand-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--brand-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	box-shadow: var(--shadow-glow);
	transition: transform var(--transition-spring);
}

.brand-logo:hover .brand-icon {
	transform: rotate(180deg) scale(1.1);
}

.brand-badge {
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: var(--bg-subtle);
	color: var(--brand-primary);
	padding: 3px 8px;
	border-radius: var(--radius-full);
	border: 1px solid var(--border-light);
}

.nav-search {
	flex: 1;
	max-width: 380px;
	position: relative;
	display: none;
}

@media (min-width: 768px) {
	.nav-search {
		display: block;
	}
}

.nav-search input {
	width: 100%;
	padding: 10px 16px 10px 42px;
	border-radius: var(--radius-full);
	border: 1px solid var(--border-light);
	background: var(--bg-subtle);
	color: var(--text-primary);
	font-size: 0.9rem;
	font-family: var(--font-main);
	outline: none;
	transition: all var(--transition-fast);
}

.nav-search input:focus {
	border-color: var(--brand-primary);
	background: var(--bg-card);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.nav-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	border: 1px solid var(--border-light);
	background: var(--bg-card);
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.1rem;
	transition: all var(--transition-fast);
}

.btn-icon:hover {
	color: var(--text-primary);
	background: var(--bg-subtle);
	border-color: var(--brand-primary);
	transform: translateY(-1px);
}

.btn-spin-roulette {
	background: var(--bg-card);
	border: 2px solid var(--accent-pink);
	color: var(--accent-pink);
	font-weight: 700;
	padding: 8px 16px;
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all var(--transition-spring);
}

.btn-spin-roulette:hover {
	background: var(--accent-pink);
	color: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.btn-launch-app {
	background: var(--brand-gradient);
	color: #ffffff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	padding: 10px 20px;
	border-radius: var(--radius-full);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: var(--shadow-md);
	transition: all var(--transition-spring);
	border: none;
	cursor: pointer;
}

.btn-launch-app:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: var(--shadow-glow);
}

/* Category Subnav Strip */
.category-strip {
	background: var(--bg-card);
	border-bottom: 1px solid var(--border-light);
	padding: 10px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar {
	display: none;
}

.category-strip-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cat-pill {
	white-space: nowrap;
	padding: 6px 14px;
	border-radius: var(--radius-full);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-secondary);
	background: var(--bg-subtle);
	border: 1px solid var(--border-subtle);
	cursor: pointer;
	transition: all var(--transition-fast);
	display: flex;
	align-items: center;
	gap: 6px;
}

.cat-pill:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
	border-color: var(--border-light);
}

.cat-pill.active {
	background: var(--text-primary);
	color: var(--bg-primary);
	border-color: var(--text-primary);
	box-shadow: var(--shadow-sm);
}

/* Hero Section with Interactive Spin Wheel & Content */
.hero-wrapper {
	max-width: 1280px;
	margin: 32px auto 48px;
	padding: 0 24px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-xl);
	padding: 32px;
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1.15fr 0.85fr;
		padding: 40px;
		gap: 48px;
		align-items: center;
	}
}

.hero-backdrop-glow {
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
	top: -100px;
	right: -100px;
	pointer-events: none;
}

.hero-content {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
	z-index: 2;
}

.hero-badge-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.kicker {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
	color: var(--brand-primary);
	font-weight: 800;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 12px;
	border-radius: var(--radius-full);
	border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
	font-family: var(--font-display);
	font-size: 2.2rem;
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--text-primary);
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 3rem;
	}
}

.hero-title span.highlight {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.hero-cta-group {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.btn-hero-primary {
	background: var(--brand-gradient);
	color: #ffffff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1rem;
	padding: 14px 28px;
	border-radius: var(--radius-full);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
	transition: all var(--transition-spring);
	border: none;
	cursor: pointer;
}

.btn-hero-primary:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.btn-hero-secondary {
	background: var(--bg-subtle);
	color: var(--text-primary);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 14px 22px;
	border-radius: var(--radius-full);
	border: 1px solid var(--border-light);
	cursor: pointer;
	transition: all var(--transition-fast);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-hero-secondary:hover {
	background: var(--bg-hover);
	border-color: var(--brand-primary);
}

.hero-stats-row {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--border-light);
	margin-top: 12px;
}

.stat-item {
	display: flex;
	flex-direction: column;
}

.stat-val {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 900;
	color: var(--text-primary);
}

.stat-lbl {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Interactive Wheel Card (in Hero) */
.wheel-interactive-card {
	background: var(--bg-elevated);
	border: 2px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	box-shadow: var(--shadow-lg);
	transition: all var(--transition-normal);
}

.wheel-card-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.wheel-preset-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-subtle);
	padding: 6px 12px;
	border-radius: var(--radius-full);
	border: 1px solid var(--border-light);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--text-primary);
}

.wheel-preset-selector select {
	background: transparent;
	border: none;
	color: var(--text-primary);
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 0.85rem;
	outline: none;
	cursor: pointer;
}

/* Spin Wheel Canvas & Pointer Container */
.wheel-stage {
	position: relative;
	width: 320px;
	height: 320px;
	margin: 12px auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 400px) {
	.wheel-stage {
		width: 270px;
		height: 270px;
	}
}

.wheel-pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 26px solid #ef4444;
	z-index: 10;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.wheel-canvas {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.1);
	transition: filter 0.2s ease;
}

.wheel-center-button {
	position: absolute;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #ffffff;
	color: #0f172a;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid #f8fafc;
	box-shadow: 0 4px 18px rgba(0,0,0,0.3);
	cursor: pointer;
	z-index: 8;
	transition: transform var(--transition-spring), background var(--transition-fast);
	letter-spacing: -0.01em;
}

.wheel-center-button:hover:not(:disabled) {
	transform: scale(1.1);
	background: #ffedd5;
	color: #ea580c;
}

.wheel-center-button:disabled {
	cursor: not-allowed;
	opacity: 0.9;
}

/* Winner Banner */
.winner-banner {
	margin-top: 14px;
	padding: 10px 20px;
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
	border: 1px solid var(--accent-emerald);
	border-radius: var(--radius-md);
	text-align: center;
	width: 100%;
	animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.winner-banner .winner-label {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent-emerald);
}

.winner-banner .winner-result {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--text-primary);
}

@keyframes popIn {
	0% { transform: scale(0.85); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

.wheel-card-footer {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--border-light);
	font-size: 0.8rem;
}

.wheel-sound-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-weight: 600;
	cursor: pointer;
	font-size: 0.8rem;
}

.wheel-sound-toggle:hover {
	color: var(--text-primary);
}

.wheel-edit-btn {
	background: var(--bg-subtle);
	border: 1px solid var(--border-light);
	color: var(--text-primary);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background var(--transition-fast);
}

.wheel-edit-btn:hover {
	background: var(--bg-hover);
}

/* Featured & Article Grid Layout */
.section-container {
	max-width: 1280px;
	margin: 0 auto 60px;
	padding: 0 24px;
}

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 28px;
	gap: 16px;
	flex-wrap: wrap;
}

.section-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.section-subtitle {
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand-primary);
}

.section-title {
	font-family: var(--font-display);
	font-size: 1.85rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--text-primary);
}

/* Article Cards Grid */
.articles-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

@media (min-width: 640px) {
	.articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.articles-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.article-card {
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
	cursor: pointer;
	position: relative;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(99, 102, 241, 0.4);
}

.article-image-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 ratio */
	background: var(--bg-subtle);
	overflow: hidden;
}

.article-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.article-card:hover .article-image {
	transform: scale(1.05);
}

.article-cat-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 4px 10px;
	border-radius: var(--radius-full);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
	color: #ffffff;
	z-index: 2;
}

.article-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
}

.article-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--text-muted);
}

.article-card-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--text-primary);
	letter-spacing: -0.01em;
	transition: color var(--transition-fast);
}

.article-card:hover .article-card-title {
	color: var(--brand-primary);
}

.article-excerpt {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.article-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--border-light);
}

.author-name {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text-primary);
}

.author-role {
	font-size: 0.72rem;
	color: var(--text-muted);
}

.article-interactions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.reaction-btn {
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	transition: color var(--transition-fast);
}

.reaction-btn:hover {
	color: var(--accent-pink);
}

/* Wheel Templates Directory Section */
.templates-banner-card {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
	color: #ffffff;
	border-radius: var(--radius-xl);
	padding: 36px 32px;
	margin-bottom: 48px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.templates-banner-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: center;
	position: relative;
	z-index: 2;
}

@media (min-width: 900px) {
	.templates-banner-grid {
		grid-template-columns: 1.2fr 0.8fr;
	}
}

.templates-tag {
	background: rgba(236, 72, 153, 0.3);
	color: #fbcfe8;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 12px;
	border-radius: var(--radius-full);
	display: inline-block;
	margin-bottom: 12px;
	border: 1px solid rgba(236, 72, 153, 0.4);
}

.templates-banner-title {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 900;
	line-height: 1.2;
	margin-bottom: 12px;
}

.templates-banner-desc {
	font-size: 1rem;
	color: #cbd5e1;
	line-height: 1.55;
	margin-bottom: 24px;
}

.templates-quick-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.template-pill-chip {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	padding: 8px 14px;
	border-radius: var(--radius-md);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--transition-fast);
	display: flex;
	align-items: center;
	gap: 8px;
}

.template-pill-chip:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

/* Feature Spotlight & Why SpinTheWheelApp.com */
.why-app-card {
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-xl);
	padding: 36px 32px;
	box-shadow: var(--shadow-md);
}

.why-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-top: 28px;
}

@media (min-width: 640px) {
	.why-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.why-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.why-box {
	background: var(--bg-subtle);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform var(--transition-fast);
}

.why-box:hover {
	transform: translateY(-3px);
	border-color: var(--brand-primary);
}

.why-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	box-shadow: var(--shadow-sm);
}

.why-title {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--text-primary);
}

.why-desc {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* Full Article Modal / Reader View */
.reader-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(8px);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: fadeIn 0.2s ease;
}

.reader-modal-card {
	background: var(--bg-card);
	width: 100%;
	max-width: 860px;
	max-height: 92vh;
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from { transform: translateY(30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.reader-header {
	padding: 18px 24px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--bg-card);
	z-index: 10;
}

.reader-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reader-close-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border-light);
	background: var(--bg-subtle);
	color: var(--text-primary);
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background var(--transition-fast);
}

.reader-close-btn:hover {
	background: var(--bg-hover);
}

.reader-content-scroll {
	padding: 32px 32px 60px;
	overflow-y: auto;
	flex: 1;
}

@media (min-width: 768px) {
	.reader-content-scroll {
		padding: 40px 48px 60px;
	}
}

.reader-hero-image {
	width: 100%;
	height: 360px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	margin-bottom: 28px;
}

.reader-title {
	font-family: var(--font-display);
	font-size: 2.2rem;
	line-height: 1.25;
	font-weight: 900;
	color: var(--text-primary);
	margin-bottom: 16px;
}

.reader-author-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 12px;
}

.reader-body-text {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-secondary);
}

.reader-body-text h2 {
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--text-primary);
	margin: 36px 0 16px;
}

.reader-body-text h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 28px 0 12px;
}

.reader-body-text p {
	margin-bottom: 20px;
}

.reader-body-text ul, .reader-body-text ol {
	margin: 16px 0 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.reader-body-text li strong {
	color: var(--text-primary);
}

.reader-callout {
	background: var(--bg-subtle);
	border-left: 4px solid var(--brand-primary);
	padding: 20px 24px;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	margin: 28px 0;
	font-size: 1.05rem;
}

.reader-wheel-widget {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
	border: 2px dashed var(--brand-primary);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin: 32px 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.reader-wheel-widget h4 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--text-primary);
}

.reader-slices-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: 600px;
	margin: 8px 0;
}

.slice-tag {
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	color: var(--text-primary);
	padding: 4px 12px;
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	font-weight: 600;
}

/* Edit Wheel Slices Modal */
.edit-slices-modal {
	background: var(--bg-card);
	width: 100%;
	max-width: 500px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-light);
	padding: 24px;
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.edit-slices-textarea {
	width: 100%;
	height: 160px;
	padding: 12px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
	background: var(--bg-subtle);
	color: var(--text-primary);
	font-family: var(--font-main);
	font-size: 0.95rem;
	resize: vertical;
	outline: none;
}

.edit-slices-textarea:focus {
	border-color: var(--brand-primary);
}

/* Article Roulette Modal */
.roulette-modal {
	background: var(--bg-card);
	width: 100%;
	max-width: 520px;
	border-radius: var(--radius-xl);
	border: 2px solid var(--accent-pink);
	padding: 32px 24px;
	box-shadow: var(--shadow-lg);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

/* Footer Section */
.main-footer {
	background: var(--bg-card);
	border-top: 1px solid var(--border-light);
	padding: 60px 24px 36px;
	margin-top: 60px;
}

.footer-container {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 768px) {
	.footer-container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
	}
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.footer-desc {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.6;
	max-width: 320px;
}

.footer-col-title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 16px;
}

.footer-links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color var(--transition-fast);
}

.footer-links a:hover {
	color: var(--brand-primary);
}

.footer-bottom {
	max-width: 1280px;
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.85rem;
	color: var(--text-muted);
	flex-wrap: wrap;
	gap: 16px;
}

/* Confetti canvas */
#confetti-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 9999;
}
