/* ==========================================================================
   Ebook Studio — Dashboard / Explore Categories
   ========================================================================== */

.es-dash { max-width: 1200px; margin: 0 auto; padding: 30px 20px 60px; color: #e8e6ef; }

.es-dash-hero {
	background: radial-gradient(ellipse at 30% 20%, rgba(124,58,237,0.25), transparent 60%),
	            linear-gradient(135deg, #14101f, #0b0b10);
	border-radius: 20px; padding: 50px 40px; margin-bottom: 40px;
}
.es-dash-eyebrow { color: #a78bfa; font-size: 13px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.es-dash-hero-text h1 { font-family: var(--es-font-display); font-size: 2rem; line-height: 1.25; margin: 0 0 22px; max-width: 620px; }
.es-dash-search { display: flex; max-width: 420px; margin-bottom: 20px; }
.es-dash-search input {
	flex: 1; padding: 12px 16px; border-radius: 10px 0 0 10px; border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.05); color: #fff; font-size: 14px;
}
.es-dash-search button {
	padding: 0 18px; border-radius: 0 10px 10px 0; border: none;
	background: #7c3aed; color: #fff; cursor: pointer;
}
.es-dash-hero-actions { display: flex; gap: 12px; }
.es-dash-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 11px 20px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600;
	background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.1);
}
.es-dash-btn-primary { background: #7c3aed; border-color: #7c3aed; }

/* ---------- Your Stats (Phase 5) ---------- */
.es-dash-stats-card {
	margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
	max-width: 480px;
}
.es-dash-stats-greeting { font-size: 13.5px; color: #c4c1d1; margin: 0 0 12px; }
.es-dash-stats-level { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.es-dash-level-badge {
	background: #7c3aed; color: #fff; font-size: 12px; font-weight: 700;
	padding: 4px 10px; border-radius: 999px; flex-shrink: 0;
}
.es-dash-xp-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.es-dash-xp-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #a78bfa); border-radius: 999px; transition: width 0.4s ease; }
.es-dash-xp-text { font-size: 11.5px; color: #9a97a8; flex-shrink: 0; white-space: nowrap; }
.es-dash-stats-row { display: flex; gap: 30px; }
.es-dash-stats-row strong { display: block; font-size: 1.3rem; }
.es-dash-stats-row span { font-size: 11.5px; color: #9a97a8; }
.es-dash-stats-guest { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.es-dash-stats-guest p { margin: 0; color: #c4c1d1; font-size: 13.5px; }

.es-dash-section { margin-bottom: 40px; }
.es-dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.es-dash-section-head h2 { font-size: 1.1rem; margin: 0; }
.es-dash-section-head a { color: #a78bfa; font-size: 13px; text-decoration: none; }

.es-dash-empty-note { color: #7d7a8c; font-size: 13px; }

.es-dash-recent-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.es-dash-recent-card {
	background: #14141c; border-radius: 12px; padding: 14px; text-decoration: none; color: inherit;
	border: 1px solid rgba(255,255,255,0.06);
}
.es-dash-recent-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.es-dash-recent-card h4 { font-size: 13.5px; margin: 0 0 4px; }
.es-dash-recent-card span { font-size: 11.5px; color: #8a8798; }

.es-dash-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.es-dash-cat-card {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
	aspect-ratio: 4/3; border-radius: 14px; padding: 16px; text-decoration: none; color: #fff;
	background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.es-dash-cat-card::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent 60%);
}
.es-dash-cat-card h3, .es-dash-cat-card span { position: relative; z-index: 1; }
.es-dash-cat-card h3 { margin: 0; font-size: 15px; }
.es-dash-cat-card span { font-size: 11.5px; color: rgba(255,255,255,0.75); }

.es-cat-horror        { background-color: #2a0a0a; background-image: radial-gradient(circle at 60% 30%, rgba(139,0,0,0.5), transparent 60%); }
.es-cat-fantasy       { background-color: #180f2c; background-image: radial-gradient(circle at 60% 30%, rgba(124,58,237,0.5), transparent 60%); }
.es-cat-business      { background-color: #0c211c; background-image: radial-gradient(circle at 60% 30%, rgba(31,111,92,0.5), transparent 60%); }
.es-cat-history       { background-color: #241708; background-image: radial-gradient(circle at 60% 30%, rgba(163,103,47,0.5), transparent 60%); }
.es-cat-crime-mystery { background-color: #0b1319; background-image: radial-gradient(circle at 60% 30%, rgba(201,162,39,0.35), transparent 60%); }

.es-dash-featured-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.es-dash-book-card { text-decoration: none; color: inherit; }
.es-dash-book-card img, .es-dash-book-placeholder {
	width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; margin-bottom: 8px; display: block;
}
.es-dash-book-placeholder {
	background: #14141c; display: flex; align-items: center; justify-content: center;
	font-family: var(--es-font-display); font-size: 13px; text-align: center; padding: 10px; color: #a8a5b8;
}
.es-dash-book-card h4 { font-size: 12.5px; margin: 0; }

/* ---------- Explore Categories page ---------- */
.es-dash-page-head { margin-bottom: 28px; }
.es-dash-page-head h1 { font-family: var(--es-font-display); font-size: 1.8rem; margin: 0 0 8px; }
.es-dash-page-head p { color: #9a97a8; margin: 0; }
.es-dash-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.es-dash-explore-card {
	position: relative; overflow: hidden;
	aspect-ratio: 4/3; border-radius: 16px; padding: 20px; text-decoration: none; color: #fff;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
	background-size: cover; background-position: center;
}
.es-dash-explore-card::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent 55%);
}
.es-dash-explore-card h3, .es-dash-explore-card p, .es-dash-explore-card span { position: relative; z-index: 1; margin: 0; }
.es-dash-explore-card h3 { font-size: 17px; }
.es-dash-explore-card p { font-size: 12.5px; color: rgba(255,255,255,0.8); }
.es-dash-explore-card span { font-size: 11.5px; color: rgba(255,255,255,0.6); }

@media (max-width: 640px) {
	.es-dash-hero { padding: 30px 22px; }
	.es-dash-hero-text h1 { font-size: 1.5rem; }
}
