/* blog.css - Modern Dashboard-style redesign for Blog Pages */
:root {
  --primary: #F3BE18;
  --primary-hover: #D97706;
  --primary-light: #FEF3C7;
  --primary-gradient: linear-gradient(135deg, #F3BE18 0%, #E8A820 100%);
  --secondary: #6F42C1;
  --secondary-light: #F3E8FF;
  --white: #FFFFFF;
  --bg-page: #F8FAFC;
  --bg-sidebar: #FFFDF9;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --success: #10B981;
  --success-light: #D1FAE5;
  --draft: #94A3B8;
  --draft-light: #F1F5F9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ─── CUSTOM CURSOR ─── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease;
  display: none;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: all 0.15s ease;
  opacity: 0.6;
  display: none;
}
@media (pointer: fine) {
  body { cursor: none; }
  .cursor-dot, .cursor-ring { display: block; }
}

/* ─── LAYOUT ─── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.dashboard-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  max-width: 180px;
}

.sidebar-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.menu-item-link i {
  font-size: 18px;
}

.menu-item-link:hover {
  color: var(--text-main);
  background: rgba(243, 190, 24, 0.05);
}

.menu-item-link.active {
  color: var(--primary-hover);
  background: var(--primary-light);
  font-weight: 600;
}

/* Sidebar Banner */
.sidebar-banner {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E6 100%);
  border: 1px solid rgba(243, 190, 24, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-banner-img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 12px;
}

.sidebar-banner-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.sidebar-banner-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.sidebar-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(243, 190, 24, 0.2);
}

.sidebar-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(243, 190, 24, 0.35);
}

/* Main Content Wrapper */
.dashboard-content-wrapper {
  flex-grow: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header/Topbar */
.dashboard-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: #F1F5F9;
}

.topbar-search-form {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.topbar-search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: #F8FAFC;
  transition: all 0.2s ease;
}

.topbar-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(243, 190, 24, 0.15);
}

.topbar-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
}

.notification-btn:hover {
  color: var(--text-main);
  background: #F1F5F9;
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary-hover);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.profile-card:hover {
  background: #F1F5F9;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
}

.profile-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── DASHBOARD OVERVIEW TAB ─── */
.dashboard-view {
  padding: 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
}

/* Welcome Greeting Bar */
.welcome-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
}

.welcome-text h1 {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.welcome-text p {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-write-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(243, 190, 24, 0.25);
  transition: all 0.3s ease;
}

.btn-write-blog:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 190, 24, 0.4);
}

/* Metrics Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-left {
  display: flex;
  flex-direction: column;
}

.stat-card-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card-value {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.1;
}

.stat-card-trend {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up {
  color: var(--success);
}

.trend-up-label {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.icon-yellow {
  background: rgba(243, 190, 24, 0.1);
  color: var(--primary-hover);
}

.icon-purple {
  background: rgba(111, 66, 193, 0.1);
  color: var(--secondary);
}

.stat-card-sparkline {
  width: 60px;
  height: 30px;
}

/* Dashboard Grid (3 Columns) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

/* Panel Layouts */
.panel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.panel-link {
  font-size: 13px;
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.panel-link:hover {
  opacity: 0.8;
}

/* Column 1: Recent Blogs (List) */
.recent-blogs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-blog-row {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  align-items: center;
}

.recent-blog-row:hover {
  background: #F8FAFC;
  border-color: var(--border);
}

.recent-blog-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: #F1F5F9;
}

.recent-blog-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hover);
  font-size: 24px;
  flex-shrink: 0;
}

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

.recent-blog-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.recent-blog-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-blog-title a {
  color: inherit;
  text-decoration: none;
}

.recent-blog-title a:hover {
  color: var(--primary-hover);
}

.recent-blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.recent-blog-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recent-blog-status {
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: auto;
  flex-shrink: 0;
}

.status-published {
  background: var(--success-light);
  color: var(--success);
}

.status-draft {
  background: var(--draft-light);
  color: var(--draft);
}

.recent-blog-menu {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
}

.recent-blog-menu:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.btn-view-all-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #FFFDF9;
  border: 1px solid rgba(243, 190, 24, 0.25);
  border-radius: var(--radius-md);
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  transition: all 0.2s ease;
}

.btn-view-all-dashboard:hover {
  background: var(--primary-light);
}

/* Column 2: Quick Actions, Drafts, Views Chart */
/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.qa-write {
  background: rgba(243, 190, 24, 0.1);
  color: var(--primary-hover);
}

.qa-all {
  background: rgba(111, 66, 193, 0.1);
  color: var(--secondary);
}

.qa-drafts {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.quick-action-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

/* Drafts */
.drafts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.draft-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.draft-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.draft-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.draft-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-title a {
  color: inherit;
  text-decoration: none;
}

.draft-title a:hover {
  color: var(--primary-hover);
}

.draft-date {
  font-size: 11px;
  color: var(--text-muted);
}

.draft-badge {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Views Chart */
.chart-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--white);
  color: var(--text-main);
  font-family: inherit;
}

.chart-wrapper {
  width: 100%;
  height: 180px;
}

/* Column 3: Recent Blogs Sidebar List */
.sidebar-blogs-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-blog-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-blog-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #F1F5F9;
}

.sidebar-blog-img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hover);
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-blog-content {
  flex-grow: 1;
  min-width: 0;
}

.sidebar-blog-category {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary-hover);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sidebar-blog-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-blog-title a {
  color: inherit;
  text-decoration: none;
}

.sidebar-blog-title a:hover {
  color: var(--primary-hover);
}

.sidebar-blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-blog-status-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 50px;
  text-transform: uppercase;
}

/* ─── ALL BLOGS DIRECTORY VIEW ─── */
.all-blogs-view {
  padding: 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
}

.all-blogs-header {
  margin-bottom: 32px;
}

.all-blogs-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.all-blogs-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.all-blogs-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

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

.category-tab-btn {
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.category-tab-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
  font-weight: 600;
}

.all-blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.blog-grid-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.blog-grid-card-image {
  height: 180px;
  position: relative;
  background: #F1F5F9;
}

.blog-grid-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-grid-card:hover .blog-grid-card-image img {
  transform: scale(1.05);
}

.blog-grid-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-gradient);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.05em;
}

.blog-grid-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-grid-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-grid-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-main);
}

.blog-grid-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-grid-card-title a:hover {
  color: var(--primary-hover);
}

.blog-grid-card-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-grid-card-link {
  color: var(--primary-hover);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.blog-grid-card-link:hover {
  gap: 10px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination-link-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination-link-btn:hover, .pagination-link-btn.active {
  background: var(--primary-light);
  color: var(--primary-hover);
  border-color: var(--primary);
  box-shadow: 0 4px 8px rgba(243, 190, 24, 0.15);
}

.pagination-link-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* No Results Container */
.no-results-panel {
  text-align: center;
  padding: 60px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.no-results-panel i {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.no-results-panel h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.no-results-panel p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ─── SINGLE POST READING VIEW ─── */
.reading-view {
  padding: 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
}

.reading-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.reading-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.reading-breadcrumbs a:hover {
  color: var(--primary-hover);
}

.reading-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.reading-main-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.reading-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--primary-light);
  border: 1px solid rgba(243, 190, 24, 0.2);
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.reading-title {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .reading-title {
    font-size: 34px;
  }
}

.reading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.reading-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reading-featured-image {
  width: 100%;
  max-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  background: #F1F5F9;
}

.reading-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reading Typography styles */
.reading-body {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 32px;
}

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

.reading-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 16px;
}

.reading-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px;
}

.reading-body ul, .reading-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.reading-body li {
  margin-bottom: 6px;
}

.reading-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-main);
}

.reading-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.reading-body a {
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted var(--primary-hover);
}

.reading-body a:hover {
  opacity: 0.8;
}

/* Reading Footer Share */
.reading-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .reading-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.btn-reading-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.btn-reading-back:hover {
  color: var(--text-main);
  background: #F1F5F9;
  border-color: var(--text-main);
}

.reading-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reading-share-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.reading-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.reading-share-btn:hover {
  transform: scale(1.08);
  color: var(--white);
}

.reading-share-btn.share-wa:hover { background: #25D366; border-color: #25D366; }
.reading-share-btn.share-tw:hover { background: #1DA1F2; border-color: #1DA1F2; }
.reading-share-btn.share-fb:hover { background: #1877F2; border-color: #1877F2; }
.reading-share-btn.share-li:hover { background: #0077B5; border-color: #0077B5; }

/* Reading Sidebar */
.reading-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reading-sidebar-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.reading-sidebar-panel h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}

/* Related card item */
.related-blog-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.related-blog-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.related-blog-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: #F1F5F9;
}

.related-blog-card-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary-hover);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.related-blog-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.related-blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.related-blog-card-title a:hover {
  color: var(--primary-hover);
}

.related-blog-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── DASHBOARD FOOTER ─── */
.dashboard-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

.dashboard-footer a {
  color: inherit;
  text-decoration: none;
}

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

/* Floating Actions */
.float-btns {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.float-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
}

.float-wa { background: #25D366; }
.float-call { background: var(--primary); }

.scroll-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(243, 190, 24, 0.2);
}

/* ─── RESPONSIVE RULES ─── */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .sidebar-blogs-panel {
    display: none; /* Hide col 3 on mid-size, can merge elsewhere or hide */
  }
}

@media (max-width: 1024px) {
  .dashboard-sidebar {
    transform: translateX(-260px);
  }
  .dashboard-sidebar.open {
    transform: translateX(0);
  }
  .dashboard-content-wrapper {
    margin-left: 0;
  }
  .hamburger-btn {
    display: flex;
  }
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .reading-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .welcome-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-write-blog {
    width: 100%;
    justify-content: center;
  }
  .all-blogs-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .all-blogs-header h1 {
    font-size: 24px;
  }
  .all-blogs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .topbar-search-form {
    max-width: 180px;
  }
}

@media (max-width: 580px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .dashboard-topbar {
    padding: 0 16px;
  }
  .topbar-search-form {
    display: none; /* Hide top search bar on mobile, search available inside views */
  }
  .dashboard-view, .all-blogs-view, .reading-view {
    padding: 20px 16px;
  }
  .dashboard-footer {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 16px;
    text-align: center;
  }
}
