:root {
	--bg: #f5f5f5;
	--surface: #ffffff;
	--text: #2c3e50;
	--muted: #7f8c8d;
	--accent: #7c3aed;
	--accent-dark: #6d28d9;
	--radius: 12px; /* Changed from 0px to 12px for moderate rounding */
	font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] {
	--bg: #0f0f0f;
	--surface: #1a1a1a;
	--text: #e4e4e7;
	--muted: #a1a1aa;
	--accent: #a78bfa;
	--accent-dark: #8b5cf6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* HEADER */
.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .topbar {
	border-bottom-color: rgba(255,255,255,0.08);
}
.topbar-container {
	padding: 0 7vw;
	height: 76px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 48px;
}
.topbar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
	position: relative;
}
.topbar-brand::after {
	content: 'storyverse home';
	position: absolute;
	left: calc(100% + 8px);
	top: 50%;
	transform: translateY(-50%);
	background: var(--text);
	color: #fff;
	padding: 4px 8px;
	border-radius: 6px; /* Changed from 0px */
	font-size: 0.7rem;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 1000;
}
.topbar-brand:hover::after {
	opacity: 1;
}
[data-theme="dark"] .topbar-brand::after {
	background: rgba(39, 39, 42, 0.95);
	box-shadow: none; /* Flattened: removed shadow */
}
.topbar-logo {
	width: 44px;
	height: 44px;
	background: var(--accent); /* Flattened: solid color instead of gradient */
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease; /* Removed shadow transition */
}
.topbar-logo:hover {
	transform: none; /* Flattened: no transform */
}
.topbar-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}
.topbar-brand-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.03em;
	text-transform: lowercase;
}
.topbar-search {
	max-width: 560px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	background: rgba(124, 58, 237, 0.06);
	border: none;
	border-radius: 24px; /* Changed from 0px - pill shape */
	padding: 0 20px;
	height: 48px;
	transition: background 0.2s ease;
}
[data-theme="dark"] .topbar-search {
	background: rgba(0, 0, 0, 0.2);
}
.topbar-search:focus-within {
	background: rgba(124, 58, 237, 0.1);
}
[data-theme="dark"] .topbar-search:focus-within {
	background: rgba(0, 0, 0, 0.3);
}
.topbar-search-icon {
	width: 20px;
	height: 20px;
	stroke: var(--accent);
	margin-right: 12px;
	flex-shrink: 0;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
[data-theme="dark"] .topbar-search-icon {
	stroke: rgba(167, 139, 250, 0.8);
}
.topbar-search input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 1rem;
	color: var(--text);
	font-family: inherit;
	font-weight: 500;
	padding: 0;
	height: 100%;
}
.topbar-search input:focus { 
	outline: none;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important; /* Flattened */
}
.topbar-search input::placeholder {
	color: var(--muted);
	font-weight: 400;
}
[data-theme="dark"] .topbar-search input::placeholder {
	color: rgba(161, 161, 170, 0.7);
}
.topbar-search input:focus { outline: none; }
.topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.create-post-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--accent); /* Flattened: solid color */
	color: #fff;
	border: none;
	border-radius: 10px; /* Changed from 0px */
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s ease; /* Removed shadow transition */
	box-shadow: none; /* Flattened */
}

.create-post-btn:hover {
	box-shadow: none; /* Flattened */
}

.create-post-btn svg {
	flex-shrink: 0;
}

.topbar-icon-button {
	width: 48px;
	height: 48px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	border: none;
	background: rgba(124, 58, 237, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease; /* Removed shadow */
	flex-shrink: 0;
	padding: 0;
}
[data-theme="dark"] .topbar-icon-button {
	background: rgba(124, 58, 237, 0.12);
}
.topbar-icon-button:hover {
	background: rgba(124, 58, 237, 0.15);
}
[data-theme="dark"] .topbar-icon-button:hover {
	background: rgba(124, 58, 237, 0.2);
}
.topbar-icon-button svg {
	width: 22px;
	height: 22px;
	stroke: var(--accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}
.profile-chip {
	height: 48px;
	padding: 10px 16px;
	background: rgb(245 240 254);
	border-radius: 24px; /* Changed from 0px - pill shape */
	display: flex;
	align-items: center;
	gap: 12px;
	color: #7c3aed;
	cursor: pointer;
	border: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background 0.2s ease;
}
[data-theme="dark"] .profile-chip {
	background: rgba(124, 58, 237, 0.15);
	color: var(--accent);
}
.profile-chip:hover {
	background: rgb(237 233 254);
}
[data-theme="dark"] .profile-chip:hover {
	background: rgba(124, 58, 237, 0.25);
}
.profile-chip .profile-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
}

/* HERO STATS */
.hero {
	width: 100%;
	background: var(--surface);
	border-bottom: 1px solid rgba(0,0,0,0.06);
	padding: 28px 7vw;
}
[data-theme="dark"] .hero {
	border-bottom-color: rgba(255,255,255,0.08);
}
.hero-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
	gap: 32px;
}
.hero-stats {
	display: flex;
	align-items: center;
	gap: 48px;
}
.hero-stat {
	display: flex;
	align-items: center;
	gap: 12px;
}
.hero-stat-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	background: rgba(124, 58, 237, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-stat-icon svg {
	width: 22px;
	height: 22px;
	stroke: var(--accent);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.hero-stat-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.hero-stat-value {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1;
	letter-spacing: -0.02em;
}
.hero-stat-label {
	font-size: 0.75rem;
	color: var(--muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.hero-divider {
	width: 1px;
	height: 40px;
	background: rgba(0,0,0,0.08);
	margin: 0 8px;
}
.popular-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-left: auto;
}
.popular-tags-label {
	font-size: 0.75rem;
	color: var(--muted);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-right: 8px;
}

/* MAIN CONTENT */
main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 40px 7vw 80px;
}

/* FEED */
.feed {
	width: 100%;
}

.feed-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 16px;
}
.feed-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.feed-filters {
	display: flex;
	gap: 8px;
	background: var(--bg);
	padding: 4px;
	border-radius: 10px;
}

.feed-filter-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.feed-filter-btn:hover {
	background: rgba(124, 58, 237, 0.08);
	color: var(--text);
}

.feed-filter-btn.active {
	background: var(--accent);
	color: #fff;
}

.feed-filter-btn svg {
	flex-shrink: 0;
}

/* CREATE POST CARD (Reddit-style) */
.create-post-card {
	display: none;
}

.posts-grid {
	display: grid;
	gap: 24px;
}

.post-card {
	display: grid;
	gap: 16px;
	padding: 28px 32px;
	border-radius: 16px; /* Changed from 0px */
	background: var(--surface);
	position: relative;
	box-shadow: none; /* Flattened */
	transition: none; /* Flattened */
}
[data-theme="dark"] .post-card {
	box-shadow: none; /* Flattened */
}
.post-card:hover {
	box-shadow: none; /* Flattened */
	transform: none; /* Flattened */
}
.post-header {
	display: flex;
	align-items: center;
	gap: 16px;
}
.post-author {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.post-author span:first-child {
	font-weight: 600;
	font-size: 0.95rem;
}
.author-name {
	cursor: pointer;
	transition: color 0.2s ease;
}
.author-name:hover {
	color: var(--accent);
}
.post-author span:last-child {
	font-size: 0.85rem;
	color: var(--muted);
}
.post-card .profile-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 1.2rem;
}
.post-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.35; /* Currently 1.3 */
	letter-spacing: -0.02em;
}

.post-content { 
	line-height: 1.75; 
	font-size: 1rem; 
	white-space: pre-wrap; 
	word-wrap: break-word;
	color: var(--text);
	opacity: 0.95;
}

/* SUBTLE READ MORE LINK (Reddit-style) */
.read-more-link {
	color: var(--accent);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	display: inline-block;
	transition: opacity 0.2s ease;
	margin-left: 8px;
}

.read-more-link:hover {
	opacity: 0.7;
	text-decoration: underline;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.tag {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(124, 58, 237, 0.1);
	color: var(--accent);
	border-radius: 8px; /* Changed from 0px */
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tag:hover {
	background: rgba(124, 58, 237, 0.2);
}

.post-actions {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid rgba(0,0,0,0.06);
}

.vote-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vote-btn {
	width: auto;
	height: auto;
	padding: 6px 10px;
	border-radius: 8px; /* Changed from 0px */
	background: var(--bg);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	color: var(--text);
	font-weight: 600;
	transition: background 0.2s ease;
}

.vote-btn:hover {
	background: rgba(124, 58, 237, 0.1);
	color: var(--accent);
	transform: none; /* Flattened */
}

.vote-score {
	font-weight: 700;
	font-size: 0.9rem; /* Currently 0.85rem */
	min-width: 36px; /* Currently 32px */
	text-align: center;
	color: var(--text);
}

.listen-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: rgba(124, 58, 237, 0.08);
	border: none;
	border-radius: 8px; /* Changed from 0px */
	color: var(--accent);
	font-size: 0.75rem;
	cursor: pointer;
	transition: background 0.2s ease;
	font-weight: 600;
}

[data-theme="dark"] .listen-btn {
	background: rgba(124, 58, 237, 0.12);
}

.listen-btn:hover {
	background: rgba(124, 58, 237, 0.15);
}

.listen-btn svg {
	width: 12px;
	height: 12px;
}

.share-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: rgba(124, 58, 237, 0.08);
	border: none;
	border-radius: 8px; /* Changed from 0px */
	color: var(--accent);
	font-size: 0.75rem;
	cursor: pointer;
	transition: background 0.2s ease;
	font-weight: 600;
}

[data-theme="dark"] .share-btn {
	background: rgba(124, 58, 237, 0.12);
}

.share-btn:hover {
	background: rgba(124, 58, 237, 0.15);
}

.share-btn svg {
	width: 12px;
	height: 12px;
}

.comments-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: rgba(124, 58, 237, 0.08);
	border: none;
	border-radius: 8px; /* Changed from 0px */
	color: var(--accent);
	font-size: 0.75rem;
	cursor: pointer;
	transition: background 0.2s ease;
	font-weight: 600;
}

[data-theme="dark"] .comments-btn {
	background: rgba(124, 58, 237, 0.12);
}

.comments-btn:hover,
.comments-btn.active {
	background: rgba(124, 58, 237, 0.15);
}

.comments-btn svg {
	width: 12px;
	height: 12px;
}

.delete-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 28px;
	height: 28px;
	padding: 0;
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
	border: none;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	cursor: pointer;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
}

.delete-btn:hover {
	background: #dc3545;
	color: #fff;
	transform: none; /* Flattened */
}

/* SKELETON LOADING */
.skeleton-post {
	background: var(--surface);
	border-radius: 0px; /* Flattened */
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: none; /* Flattened */
}
.skeleton-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}
.skeleton-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%; /* Changed from 0px */
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 25%, rgba(124, 58, 237, 0.12) 50%, rgba(124, 58, 237, 0.08) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}
.skeleton-author { flex: 1; }
.skeleton-line {
	height: 12px;
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 25%, rgba(124, 58, 237, 0.12) 50%, rgba(124, 58, 237, 0.08) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	border-radius: 4px; /* Changed from 0px */
	margin-bottom: 8px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-title {
	height: 20px;
	width: 70%;
	margin-bottom: 16px;
}
.skeleton-content {
	height: 14px;
	margin-bottom: 10px;
}
.skeleton-tags {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}
.skeleton-tag {
	width: 80px;
	height: 28px;
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 25%, rgba(124, 58, 237, 0.12) 50%, rgba(124, 58, 237, 0.08) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	border-radius: 6px; /* Changed from 0px */
}
@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

/* SKELETON LOADING - COMMENTS */
.skeleton-comment {
	padding: 12px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .skeleton-comment {
	border-bottom-color: rgba(255,255,255,0.06);
}

.skeleton-comment:last-child {
	border-bottom: none;
}

.skeleton-comment-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.skeleton-avatar-small {
	width: 18px;
	height: 18px;
	border-radius: 50%; /* Changed from 0px */
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 25%, rgba(124, 58, 237, 0.12) 50%, rgba(124, 58, 237, 0.08) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	flex-shrink: 0;
}

/* SKELETON LOADING - SIDEBAR */
.skeleton-author-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: var(--bg);
	border-radius: 10px; /* Changed from 0px */
	margin-bottom: 12px;
}

.skeleton-author-item:last-child {
	margin-bottom: 0;
}

.skeleton-verse-item {
	padding: 12px;
	background: var(--bg);
	border-radius: 10px; /* Changed from 0px */
	margin-bottom: 12px;
}

.skeleton-verse-item:last-child {
	margin-bottom: 0;
}

/* MODALS */
.composer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: none; /* Flattened: removed blur */
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.composer-overlay.active {
	display: flex;
}
.composer-modal {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	background: var(--surface);
	border-radius: 16px; /* Changed from 0px */
	padding: 32px 36px;
	transform: scale(0.95);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: none; /* Flattened */
}
.composer-overlay.active .composer-modal {
	transform: scale(1);
	opacity: 1;
}
.composer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.composer-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}
.close-composer {
	width: 40px;
	height: 40px;
	border-radius: 10px; /* Changed from 0px */
	background: rgba(124, 58, 237, 0.08);
	color: var(--accent);
	border: none;
	font-size: 1.3rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	padding: 0;
	line-height: 1;
	font-weight: 600;
}
.close-composer:hover {
	background: rgba(124, 58, 237, 0.15);
	transform: none; /* Flattened */
}
#profileModal,
#deleteModal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: none; /* Flattened */
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
#profileModal.active,
#deleteModal.active {
	display: flex;
}
#profileModal .composer-modal,
#deleteModal .composer-modal {
	max-width: 500px;
	border-radius: 16px; /* Changed from 0px */
	transform: scale(0.95);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
#profileModal.active .composer-modal,
#deleteModal.active .composer-modal {
	transform: scale(1);
	opacity: 1;
}
#deleteModal .composer-modal {
	max-width: 400px;
}

/* FORMS */
#postForm {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.title-wrapper {
	position: relative;
}

/* Override search input to remove all styling */
.topbar-search input {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important; /* Flattened */
}

input[type="text"] {
	border-radius: 10px; /* Changed from 0px */
	border: 1.5px solid rgba(124, 58, 237, 0.15);
	padding: 18px 20px;
	font-size: 1.1rem;
	font-weight: 600;
	color: inherit;
	background: var(--bg);
	transition: border-color 0.2s ease;
	width: 100%;
}
input[type="text"]:focus {
	outline: none;
	border-color: rgba(124, 58, 237, 0.4);
	box-shadow: none; /* Flattened */
}
[data-theme="dark"] input[type="text"] {
	border-color: rgba(124, 58, 237, 0.25);
	background: rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] input[type="text"]:focus {
	border-color: rgba(167, 139, 250, 0.5);
	box-shadow: none; /* Flattened */
}
#postTags {
	font-weight: 400;
	font-size: 1rem;
}
textarea {
	min-height: 180px;
	resize: vertical;
	border-radius: 10px;
	border: 1.5px solid rgba(124, 58, 237, 0.15);
	padding: 18px 20px;
	font-size: 1rem;
	color: inherit;
	background: var(--bg);
	transition: border-color 0.2s ease;
	font-family: inherit;
	line-height: 1.6;
}
textarea:focus {
	outline: none;
	border-color: rgba(124, 58, 237, 0.4);
	box-shadow: none; /* Flattened */
}
[data-theme="dark"] textarea {
	border-color: rgba(124, 58, 237, 0.25);
	background: rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] textarea:focus {
	border-color: rgba(167, 139, 250, 0.5);
	box-shadow: none; /* Flattened */
}
.title-char-count {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 500;
	pointer-events: none;
}
.form-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.char-count { 
	color: var(--muted); 
	font-size: 0.9rem; 
	font-weight: 500; 
}
.tags-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: -8px;
	min-height: 32px;
	align-items: center;
}

/* POST PREVIEW */
.post-preview {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 2px solid rgba(124, 58, 237, 0.15);
}

.preview-label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--accent);
	margin-bottom: 12px;
}

.preview-post {
	background: var(--bg);
	border-radius: 12px; /* Changed from 0px */
	padding: 20px;
	border: 1.5px solid rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .preview-post {
	border-color: rgba(124, 58, 237, 0.25);
}

.preview-post .post-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.preview-post .profile-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%; /* Changed from 0px */
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}

.preview-post .post-author {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.preview-post .author-name {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text);
}

.preview-post .post-author span:last-child {
	font-size: 0.8rem;
	color: var(--muted);
}

.preview-post .post-title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
}

.preview-post .post-content {
	line-height: 1.6;
	font-size: 0.95rem;
	color: var(--text);
	opacity: 0.95;
	margin-bottom: 12px;
}

.preview-post .post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

/* BUTTONS */
button {
	background: var(--accent);
	border: none;
	color: #fff;
	padding: 14px 36px;
	font-weight: 600;
	border-radius: 10px; /* Changed from 0px */
	cursor: pointer;
	transition: background 0.2s ease;
	font-size: 1rem;
	font-family: inherit;
}
button:hover {
	background: var(--accent-dark);
}
button:disabled { 
	opacity: 0.5; 
	cursor: not-allowed; 
	transform: none; /* Flattened */
}

/* Submit button - gradient style */
#submitBtn {
	background: var(--accent); /* Flattened: solid color */
	box-shadow: none; /* Flattened */
}
#submitBtn:hover {
	box-shadow: none; /* Flattened */
}
#submitBtn:disabled {
	box-shadow: none; /* Flattened */
}

/* Loading state for buttons */
button.loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}
button.loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid #fff;
	border-radius: 50%; /* Changed from 0px */
	border-top-color: transparent;
	animation: spinner 0.6s linear infinite;
}
@keyframes spinner {
	to { transform: rotate(360deg); }
}

/* FAB */
.fab {
	display: none; /* Hidden - using topbar create button instead */
}

/* TOAST */
.toast {
	position: fixed;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: var(--accent);
	color: #ffffff;
	border: none;
	padding: 14px 24px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.9rem;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	min-width: 200px;
	max-width: 400px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

[data-theme="dark"] .toast {
	background: #1a1a1b;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* PWA BANNER */
.pwa-install-banner {
	position: fixed;
	bottom: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 48px);
	max-width: 500px;
	background: var(--surface);
	padding: 20px 24px;
	border-radius: 16px; /* Changed from 0px */
	box-shadow: none; /* Flattened */
	z-index: 999;
	transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(124, 58, 237, 0.2);
}
[data-theme="dark"] .pwa-install-banner {
	background: var(--surface);
	border-color: rgba(167, 139, 250, 0.3);
	box-shadow: none; /* Flattened */
}
.pwa-install-banner.show {
	bottom: 24px;
}
.pwa-banner-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.pwa-banner-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--text);
	flex: 1;
}
.pwa-banner-text strong {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text);
}
.pwa-banner-text span {
	font-size: 0.9rem;
	color: var(--muted);
	line-height: 1.4;
}
.pwa-banner-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.pwa-install-btn {
	background: var(--accent); /* Flattened */
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 10px; /* Changed from 0px */
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s ease;
	box-shadow: none; /* Flattened */
}
.pwa-install-btn:hover {
	transform: none; /* Flattened */
	box-shadow: none; /* Flattened */
}
.pwa-dismiss-btn {
	background: rgba(124, 58, 237, 0.1);
	color: var(--accent);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	font-size: 1.3rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	line-height: 1;
	font-weight: 600;
}
[data-theme="dark"] .pwa-dismiss-btn {
	background: rgba(167, 139, 250, 0.15);
}
.pwa-dismiss-btn:hover {
	background: rgba(124, 58, 237, 0.2);
	transform: none; /* Flattened */
}
[data-theme="dark"] .pwa-dismiss-btn:hover {
	background: rgba(167, 139, 250, 0.25);
}

/* FOOTER */
.footer {
	padding: 40px 7vw;
	text-align: center;
	color: var(--muted);
	font-size: 0.95rem;
	background: var(--surface);
	border-top: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .footer {
	border-top-color: rgba(255,255,255,0.08);
}
.footer-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}
.footer-content p {
	margin: 0;
	font-size: 0.9rem;
}
.footer-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	justify-content: center;
}
.footer-links a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}
.footer-links a:hover {
	color: var(--accent);
}

/* PROFILE MODAL */
.profile-modal-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.profile-display {
	text-align: center;
	padding: 24px;
	background: var(--bg);
	border-radius: 0px; /* Flattened */
}
.profile-avatar-large {
	width: 120px;
	height: 120px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 3rem;
	margin: 0 auto 16px;
}
#profileNameDisplay {
	font-size: 1.4rem;
	font-weight: 700;
}
.profile-notice {
	padding: 20px;
	background: rgba(255, 80, 10, 0.08);
	border-radius: 10px; /* Changed from 0px */
	max-width: 400px;
}
@keyframes floatIcon {
	/* Delete this */
}

/* UPDATE BANNER */
.update-banner {
	position: fixed;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 48px);
	max-width: 500px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Kept gradient for banner */
	padding: 16px 20px;
	border-radius: 16px; /* Changed from 0px */
	box-shadow: none; /* Flattened */
	z-index: 9999;
	transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.update-banner.show {
	top: 24px;
}
.update-banner-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: #fff;
	font-size: 0.9rem;
}
.update-btn {
	background: #fff;
	color: #667eea;
	border: none;
	padding: 8px 16px;
	border-radius: 8px; /* Changed from 0px */
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	transition: transform 0.2s ease;
}
.update-btn:hover {
	transform: none; /* Flattened */
}

/* FEED LAYOUT WITH SIDEBAR */
.feed-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 32px;
	align-items: start;
}

/* Ensure posts container doesn't break out of layout */
#postsContainer {
	min-width: 0;
	overflow: hidden;
}

/* DISCOVERY SIDEBAR */
.discovery-sidebar {
	position: sticky;
	top: 92px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-height: calc(100vh - 108px);
	overflow-y: auto;
}

.discovery-sidebar::-webkit-scrollbar {
	width: 6px;
}

.discovery-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.discovery-sidebar::-webkit-scrollbar-thumb {
	background: rgba(124, 58, 237, 0.2);
	border-radius: 0px; /* Flattened */
}

.discovery-sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(124, 58, 237, 0.3);
}

.sidebar-card {
	background: var(--surface);
	border-radius: 12px; /* Changed from 0px */
	padding: 20px;
	box-shadow: none; /* Flattened */
	transition: none; /* Flattened */
}

[data-theme="dark"] .sidebar-card {
	box-shadow: none; /* Flattened */
}

.sidebar-card:hover {
	box-shadow: none; /* Flattened */
}

.sidebar-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.sidebar-card-header svg {
	stroke: var(--accent);
	flex-shrink: 0;
}

.sidebar-card-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
}

.sidebar-action-btn {
	width: 100%;
	padding: 12px 20px;
	background: rgba(124, 58, 237, 0.08);
	border: none;
	border-radius: 10px; /* Changed from 0px */
	color: var(--accent);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

[data-theme="dark"] .sidebar-action-btn {
	background: rgba(124, 58, 237, 0.12);
}

.sidebar-action-btn:hover {
	background: rgba(124, 58, 237, 0.15);
}

.daily-prompt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--text);
	font-style: italic;
	padding: 12px;
	background: rgba(124, 58, 237, 0.05);
	border-radius: 8px; /* Changed from 0px */
	border-left: 3px solid var(--accent);
}

.top-authors-list,
.rising-verses-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.author-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: var(--bg);
	border-radius: 10px; /* Changed from 0px */
	cursor: pointer;
	transition: background 0.2s ease;
}

.author-item:hover {
	background: rgba(124, 58, 237, 0.08);
}

.author-rank {
	width: 28px;
	height: 28px;
	background: rgba(124, 58, 237, 0.1);
	border-radius: 8px; /* Changed from 0px */
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--accent);
	flex-shrink: 0;
}

.author-rank.gold {
	background: #FFD700; /* Flattened: solid color */
	color: #fff;
}

.author-rank.silver {
	background: #C0C0C0; /* Flattened */
	color: #fff;
}

.author-rank.bronze {
	background: #CD7F32; /* Flattened */
	color: #fff;
}

.author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.author-info {
	flex: 1;
	min-width: 0;
}

.author-name {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.author-score {
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 2px;
}

.rising-verse-item {
	padding: 12px;
	background: var(--bg);
	border-radius: 10px; /* Changed from 0px */
	cursor: pointer;
	transition: background 0.2s ease;
}

.rising-verse-item:hover {
	background: rgba(124, 58, 237, 0.08);
}

.rising-verse-title {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text);
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rising-verse-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.8rem;
	color: var(--muted);
}

.rising-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	background: rgba(34, 197, 94, 0.1);
	color: #22c55e;
	border-radius: 12px; /* Changed from 0px */
	font-weight: 600;
	font-size: 0.75rem;
}

.rising-badge svg {
	stroke: currentColor;
}

/* HALL OF FAME */
.hall-of-fame-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hall-of-fame-item {
	padding: 12px;
	background: var(--bg);
	border-radius: 10px; /* Changed from 0px */
	cursor: pointer;
	transition: background 0.2s ease;
	position: relative;
}

.hall-of-fame-item:hover {
	background: rgba(124, 58, 237, 0.08);
}

.hall-of-fame-item.top-verse {
	background: rgba(255, 215, 0, 0.15); /* Flattened */
	border: 1px solid rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .hall-of-fame-item.top-verse {
	background: rgba(255, 215, 0, 0.1);
	border-color: rgba(255, 215, 0, 0.4);
}

.hall-of-fame-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hall-of-fame-badge svg {
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.hall-of-fame-title {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text);
	margin: 0 0 6px;
	padding-right: 24px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hall-of-fame-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--muted);
}

.hall-of-fame-score {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	color: var(--accent);
}

/* AI GENERATOR */
.ai-result {
	padding: 20px;
	background: var(--bg);
	border-radius: 12px; /* Changed from 0px */
	margin-top: 20px;
}

.ai-result-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.ai-result-header h4 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text);
}

.ai-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Kept gradient for badge */
	color: #fff;
	border-radius: 12px; /* Changed from 0px */
	font-size: 0.75rem;
	font-weight: 700;
}

.ai-story-preview {
	padding: 16px;
	background: var(--surface);
	border-radius: 10px; /* Changed from 0px */
	border: 1.5px solid rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .ai-story-preview {
	border-color: rgba(124, 58, 237, 0.25);
}

.ai-story-title {
	margin: 0 0 12px;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text);
}

.ai-story-content {
	margin: 0 0 16px;
	line-height: 1.6;
	color: var(--text);
	opacity: 0.95;
}

.ai-story-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ai-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 40px 20px;
	text-align: center;
}

.ai-loading-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(124, 58, 237, 0.1);
	border-top-color: var(--accent);
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	animation: spinner 0.8s linear infinite;
}

.ai-loading p {
	margin: 0;
	color: var(--muted);
	font-weight: 600;
}

#useAiStory {
	display: none;
	margin-top: 16px;
	width: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Kept gradient */
	box-shadow: none; /* Flattened */
}

#useAiStory:hover {
	box-shadow: none; /* Flattened */
}

.ai-generator-info {
	padding: 16px;
	background: rgba(102, 126, 234, 0.08);
	border-radius: 8px; /* Changed from 0px */
	border-left: 3px solid #667eea;
	margin-bottom: 20px;
}

.ai-generator-info p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text);
	line-height: 1.5;
}

[data-theme="dark"] .ai-generator-info {
	background: rgba(102, 126, 234, 0.12);
}

/* COMMENTS SECTION */
.comments-section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .comments-section {
	border-top-color: rgba(255,255,255,0.06);
}

.comments-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.comments-count {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text);
}

.comments-sort {
	padding: 4px 8px;
	background: transparent;
	border: 1px solid rgba(124, 58, 237, 0.2);
	border-radius: 6px; /* Changed from 0px */
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.comments-sort:hover {
	border-color: rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .comments-sort {
	border-color: rgba(124, 58, 237, 0.25);
}

.comment-composer {
	margin-bottom: 20px;
	padding: 0;
}

.comment-input {
	width: 100%;
	min-height: 60px;
	padding: 12px;
	background: var(--surface);
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 10px; /* Changed from 0px */
	font-size: 0.9rem;
	color: var(--text);
	font-family: inherit;
	resize: vertical;
	line-height: 1.5;
	transition: border-color 0.2s ease;
}

.comment-input:focus {
	outline: none;
	border-color: var(--accent);
}

[data-theme="dark"] .comment-input {
	border-color: rgba(255,255,255,0.1);
	background: rgba(0,0,0,0.2);
}

.comment-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.comment-char-count {
	font-size: 0.8rem;
	color: var(--muted);
	font-weight: 500;
}

.comment-submit-btn {
	padding: 8px 16px;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 8px; /* Changed from 0px */
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
	font-family: inherit;
}

.comment-submit-btn:hover:not(:disabled) {
	background: var(--accent-dark);
}

.comment-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.comments-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.no-comments {
	text-align: center;
	padding: 32px 20px;
	color: var(--muted);
	font-size: 0.9rem;
	font-style: italic;
}

.comment-card {
	display: flex;
	flex-direction: column;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	transition: background 0.2s ease;
}

.comment-card:last-child {
	border-bottom: none;
}

[data-theme="dark"] .comment-card {
	border-bottom-color: rgba(255,255,255,0.06);
}

.comment-content-column {
	flex: 1;
	min-width: 0;
}

.comment-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	position: relative;
}

.comment-avatar {
	width: 18px;
	height: 18px;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 0.65rem;
	flex-shrink: 0;
}

.comment-author {
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--text);
}

.comment-time {
	font-size: 0.75rem;
	color: var(--muted);
}

.comment-delete-btn {
	margin-left: auto;
	width: 18px;
	height: 18px;
	padding: 0;
	background: transparent;
	color: var(--muted);
	border: none;
	border-radius: 50%; /* Changed from 0px - fully rounded circle */
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

.comment-delete-btn:hover {
	background: rgba(220, 53, 69, 0.1);
	color: #dc3545;
}

.comment-text {
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--text);
	word-wrap: break-word;
	margin-bottom: 8px;
}

.comment-vote-column {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.comment-vote-btn {
	width: auto;
	height: auto;
	padding: 4px 8px;
	border-radius: 6px; /* Changed from 0px */
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 0.75rem;
	color: var(--muted);
	font-weight: 600;
	transition: all 0.2s ease;
}

.comment-vote-btn:hover {
	background: rgba(124, 58, 237, 0.08);
	color: var(--accent);
}

.comment-vote-btn svg {
	width: 14px;
	height: 14px;
}

.comment-vote-score {
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--text);
	padding: 0 4px;
}

/* MOBILE - MUST BE AT THE END */
@media (max-width: 1200px) {
	.feed-layout {
		grid-template-columns: 1fr;
	}
	
	.discovery-sidebar {
		display: none;
	}
}

@media (max-width: 900px) {
	/* TOPBAR - Optimized */
	.topbar-container {
		grid-template-columns: auto 1fr;
		padding: 0 12px;
		height: 60px;
		gap: 8px;
	}
	
	.topbar-logo {
		width: 36px;
		height: 36px;
		padding: 6px;
	}
	
	.topbar-brand-name {
		font-size: 1.05rem;
	}
	
	.topbar-search {
		display: none;
	}
	
	.topbar-actions {
		gap: 6px;
		margin-left: auto;
	}
	
	.topbar-icon-button {
		width: 40px;
		height: 40px;
	}
	
	.topbar-icon-button svg {
		width: 20px;
		height: 20px;
	}
	
	/* Profile chip - avatar only */
	.profile-chip {
		padding: 4px !important;
		min-width: 40px !important;
		min-height: 40px !important;
	}
	
	.profile-chip .profile-avatar {
		width: 32px !important;
		height: 32px !important;
		font-size: 0.85rem !important;
	}
	
	.profile-chip > div:last-child {
		display: none !important;
	}
	
	/* Create button - icon only */
	.create-post-btn span {
		display: none;
	}
	
	.create-post-btn {
		width: 40px;
		height: 40px;
		padding: 0;
		justify-content: center;
		border-radius: 10px;
	}
	
	.create-post-btn svg {
		width: 20px;
		height: 20px;
	}
	
	/* MAIN CONTENT */
	main {
		padding: 16px 0 100px;
		gap: 16px;
	}
	
	/* HIDE HERO */
	.hero {
		display: none !important;
	}
	
	/* FEED HEADER */
	.feed {
		padding: 0;
	}
	
	.feed-header {
		margin-bottom: 16px;
		padding: 0 12px;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.feed-header h2 {
		font-size: 1.4rem;
		width: 100%;
	}
	
	/* Feed filters - Better touch targets */
	.feed-filters {
		width: 100%;
		padding: 4px;
		gap: 4px;
		background: rgba(124, 58, 237, 0.06);
		border-radius: 12px;
	}
	
	.feed-filter-btn {
		flex: 1;
		padding: 12px 8px;
		font-size: 0.8rem;
		justify-content: center;
		min-height: 44px;
		border-radius: 10px;
		flex-direction: column;
		gap: 4px;
	}
	
	.feed-filter-btn svg {
		width: 16px;
		height: 16px;
	}
	
	/* POST CARDS - Better spacing */
	.posts-grid {
		padding: 0 12px;
		gap: 12px;
	}
	
	.post-card {
		padding: 16px;
		gap: 14px;
		border-radius: 16px;
	}
	
	.post-header {
		gap: 12px;
	}
	
	.post-card .profile-avatar {
		width: 42px;
		height: 42px;
		font-size: 1.05rem;
	}
	
	.post-author span:first-child {
		font-size: 0.9rem;
	}
	
	.post-author span:last-child {
		font-size: 0.8rem;
	}
	
	.post-title {
		font-size: 1.25rem;
		line-height: 1.35;
		margin-bottom: 2px;
	}
	
	.post-content {
		font-size: 0.95rem;
		line-height: 1.65;
	}
	
	.post-tags {
		gap: 6px;
		margin-top: 4px;
	}
	
	.tag {
		padding: 5px 12px;
		font-size: 0.8rem;
	}
	
	/* POST ACTIONS - Grid layout for better spacing */
	.post-actions {
		display: grid;
		grid-template-columns: auto 1fr 1fr;
		gap: 8px;
		padding-top: 14px;
	}
	
	.vote-group {
		grid-column: 1;
		gap: 8px;
	}
	
	.vote-btn {
		min-width: 40px;
		min-height: 40px;
		padding: 8px;
		font-size: 1rem;
		border-radius: 10px;
	}
	
	.vote-score {
		font-size: 0.95rem;
		min-width: 36px;
		font-weight: 700;
	}
	
	/* Action buttons - 2 column grid */
	.comments-btn {
		grid-column: 2;
	}
	
	.share-btn {
		grid-column: 3;
	}
	
	.listen-btn {
		grid-column: 2 / 4;
		margin-top: 4px;
	}
	
	.comments-btn,
	.share-btn,
	.listen-btn {
		min-height: 44px;
		padding: 10px;
		font-size: 0.85rem;
		justify-content: center;
		border-radius: 10px;
	}
	
	.comments-btn svg,
	.share-btn svg,
	.listen-btn svg {
		width: 16px;
		height: 16px;
	}
	
	/* Delete button */
	.delete-btn {
		top: 12px;
		right: 12px;
		width: 32px;
		height: 32px;
		font-size: 1.2rem;
	}
	
	/* Rising badge */
	.rising-badge-card {
		top: 10px !important;
		right: 48px !important;
		padding: 4px 8px !important;
		font-size: 0.65rem !important;
	}
	
	.rising-badge-card svg {
		width: 10px !important;
		height: 10px !important;
	}
	
	/* COMMENTS SECTION */
	.comments-section {
		margin-top: 14px;
		padding-top: 14px;
	}
	
	.comments-header {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		margin-bottom: 14px;
	}
	
	.comments-count {
		font-size: 0.9rem;
	}
	
	.comments-sort {
		padding: 6px 10px;
		font-size: 0.85rem;
		border-radius: 8px;
		min-height: 36px;
	}
	
	.comment-composer {
		margin-bottom: 16px;
	}
	
	.comment-input {
		min-height: 90px;
		font-size: 1rem;
		padding: 12px;
		border-radius: 12px;
	}
	
	.comment-footer {
		margin-top: 10px;
	}
	
	.comment-char-count {
		font-size: 0.85rem;
	}
	
	.comment-submit-btn {
		padding: 10px 20px;
		font-size: 0.9rem;
		min-height: 44px;
		border-radius: 10px;
	}
	
	.comment-card {
		padding: 12px 0;
	}
	
	.comment-avatar {
		width: 28px;
		height: 28px;
		font-size: 0.8rem;
	}
	
	.comment-author {
		font-size: 0.9rem;
	}
	
	.comment-time {
		font-size: 0.75rem;
	}
	
	.comment-delete-btn {
		width: 24px;
		height: 24px;
		font-size: 1.1rem;
	}
	
	.comment-text {
		font-size: 0.95rem;
		line-height: 1.6;
		margin-bottom: 10px;
	}
	
	.comment-vote-column {
		gap: 8px;
		margin-top: 6px;
		flex-wrap: wrap;
	}
	
	.comment-vote-btn {
		padding: 8px 12px;
		font-size: 0.8rem;
		min-height: 40px;
		border-radius: 8px;
	}
	
	.comment-vote-btn svg {
		width: 14px;
		height: 14px;
	}
	
	.comment-vote-score {
		font-size: 0.85rem;
		padding: 0 6px;
		min-width: 32px;
	}
	
	/* MODALS */
	.composer-modal {
		padding: 20px 16px;
		max-height: 92vh;
		border-radius: 20px;
	}
	
	.composer-header {
		margin-bottom: 16px;
	}
	
	.composer-header h2 {
		font-size: 1.3rem;
	}
	
	.close-composer {
		width: 36px;
		height: 36px;
		font-size: 1.2rem;
	}
	
	#postForm {
		gap: 16px;
	}
	
	input[type="text"] {
		font-size: 1rem;
		padding: 14px 16px;
		border-radius: 12px;
	}
	
	textarea {
		min-height: 140px;
		font-size: 1rem;
		padding: 14px 16px;
		border-radius: 12px;
	}
	
	.title-char-count {
		font-size: 0.8rem;
	}
	
	.tags-preview {
		gap: 6px;
	}
	
	.form-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	
	.char-count {
		text-align: center;
		font-size: 0.85rem;
	}
	
	button[type="submit"] {
		width: 100%;
		padding: 14px;
		font-size: 1rem;
		min-height: 50px;
		border-radius: 12px;
	}
	
	/* Post preview */
	.post-preview {
		margin-top: 20px;
		padding-top: 20px;
	}
	
	.preview-post {
		padding: 16px;
		border-radius: 12px;
	}
	
	/* Terms */
	.terms-agreement {
		margin-top: 8px;
	}
	
	.terms-agreement label {
		font-size: 0.85rem !important;
	}
	
	/* PAGINATION */
	.pagination {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 16px 0;
		margin-top: 8px;
	}
	
	.pagination-btn {
		flex: 1;
		padding: 12px 16px;
		font-size: 0.9rem;
		min-height: 48px;
		border-radius: 12px;
	}
	
	.pagination-info {
		font-size: 0.85rem;
		white-space: nowrap;
	}
	
	/* FOOTER */
	.footer {
		padding: 32px 12px;
	}
	
	.footer-content p {
		font-size: 0.85rem;
	}
	
	.footer-links {
		gap: 16px;
	}
	
	.footer-links a {
		font-size: 0.85rem;
	}
	
	/* Empty state */
	.empty-state {
		padding: 60px 20px;
	}
	
	.empty-state h3 {
		font-size: 1.2rem;
	}
	
	.empty-state p {
		font-size: 0.9rem;
	}
}

@media (max-width: 600px) {
	/* Extra compact for very small screens */
	.topbar-container {
		padding: 0 10px;
		height: 56px;
	}
	
	.topbar-logo {
		width: 32px;
		height: 32px;
	}
	
	.topbar-brand-name {
		font-size: 1rem;
	}
	
	.topbar-icon-button,
	.profile-chip,
	.create-post-btn {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		min-height: 38px !important;
	}
	
	.profile-chip .profile-avatar {
		width: 30px !important;
		height: 30px !important;
		font-size: 0.8rem !important;
	}
	
	.feed-header h2 {
		font-size: 1.25rem;
	}
	
	.posts-grid {
		padding: 0 10px;
		gap: 10px;
	}
	
	.post-card {
		padding: 14px;
	}
	
	.post-title {
		font-size: 1.15rem;
	}
	
	.post-content {
		font-size: 0.9rem;
	}
}



