/* ============================================================
   Blocksy Theme — User Dashboard (pen-dash-*)
   ============================================================ */

.pen-dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── WELCOME BANNER ─────────────────────────────────────────── */

.pen-dash-welcome {
  background: linear-gradient(135deg, var(--blk-color-dark) 0%, #1e3a8a 60%, #1e40af 100%);
  border-radius: var(--blk-radius-2xl);
  padding: 2rem 2.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.pen-dash-welcome::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.pen-dash-welcome-info { flex: 1; min-width: 0; }

.pen-dash-welcome-greeting {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
}

.pen-dash-welcome-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  font-family: var(--blk-font-serif);
  line-height: 1.2;
}

.pen-dash-welcome-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

.pen-dash-welcome-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.pen-dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--blk-radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pen-dash-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.pen-dash-action-btn--primary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
}

.pen-dash-action-btn--primary:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.pen-dash-action-btn--gold {
  background: var(--blk-color-accent);
  color: #1a1a1a;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}

.pen-dash-action-btn--gold:hover {
  background: var(--blk-color-accent-hover);
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,158,11,0.45);
}

/* ── STATS GRID ─────────────────────────────────────────────── */

.pen-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pen-dash-stat {
  background: var(--blk-color-surface);
  border-radius: var(--blk-radius-xl);
  border: 1px solid var(--blk-color-border);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--blk-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pen-dash-stat:hover {
  box-shadow: var(--blk-shadow-lg);
  transform: translateY(-2px);
}

.pen-dash-stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.pen-dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--blk-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pen-dash-stat-icon svg { width: 22px; height: 22px; }

.pen-dash-stat--poems .pen-dash-stat-icon    { background: #dbeafe; color: var(--blk-color-primary); }
.pen-dash-stat--articles .pen-dash-stat-icon { background: #fef3c7; color: #d97706; }
.pen-dash-stat--drafts .pen-dash-stat-icon   { background: #f3f4f6; color: var(--blk-color-text-muted); }
.pen-dash-stat--views .pen-dash-stat-icon    { background: #d1fae5; color: #059669; }

.pen-dash-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blk-color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pen-dash-stat-label {
  font-size: 0.8rem;
  color: var(--blk-color-text-muted);
  font-weight: 600;
}

.pen-dash-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--blk-radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
}

.pen-dash-stat-badge svg { flex-shrink: 0; }

.pen-dash-stat-badge--warning {
  background: #fef3c7;
  color: #92400e;
}

/* ── FOLLOWERS BAR ──────────────────────────────────────────── */

.pen-dash-followers {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--blk-color-surface);
  border-radius: var(--blk-radius-xl);
  border: 1px solid var(--blk-color-border);
  box-shadow: var(--blk-shadow-sm);
}

.pen-dash-followers-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--blk-radius-lg);
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pen-dash-followers-icon svg { width: 20px; height: 20px; }

.pen-dash-followers-info { display: flex; flex-direction: column; }

.pen-dash-followers-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blk-color-text);
  line-height: 1.1;
}

.pen-dash-followers-label {
  font-size: 0.78rem;
  color: var(--blk-color-text-muted);
  font-weight: 600;
}

.pen-dash-followers-link {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--blk-color-primary);
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--blk-color-primary);
  border-radius: var(--blk-radius-full);
  transition: all 0.2s;
}

.pen-dash-followers-link:hover {
  background: var(--blk-color-primary);
  color: #fff;
}

/* ── CONTENT PANELS GRID ────────────────────────────────────── */

.pen-dash-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.pen-dash-panel {
  background: var(--blk-color-surface);
  border-radius: var(--blk-radius-xl);
  border: 1px solid var(--blk-color-border);
  box-shadow: var(--blk-shadow-card);
  overflow: hidden;
}

.pen-dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--blk-color-border-light);
  background: var(--blk-color-surface);
}

.pen-dash-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blk-color-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pen-dash-panel-title svg { width: 17px; height: 17px; color: var(--blk-color-primary); flex-shrink: 0; }

.pen-dash-panel-link {
  font-size: 0.8rem;
  color: var(--blk-color-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}

.pen-dash-panel-link:hover { text-decoration: underline; }

.pen-dash-panel-body { padding: 0.35rem 0; }

/* Post items */
.pen-dash-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  border-bottom: 1px solid var(--blk-color-border-light);
  transition: background 0.15s;
}

.pen-dash-item:last-child { border-bottom: none; }
.pen-dash-item:hover { background: var(--blk-color-surface-2); }

.pen-dash-item-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blk-color-primary-light);
  color: var(--blk-color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pen-dash-item-content { flex: 1; min-width: 0; }

.pen-dash-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blk-color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.15s;
}

.pen-dash-item:hover .pen-dash-item-title { color: var(--blk-color-primary); }

.pen-dash-item-meta {
  font-size: 0.73rem;
  color: var(--blk-color-text-muted);
  margin-top: 0.15rem;
}

.pen-dash-item-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--blk-radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}

.pen-dash-item-status--publish { background: #d1fae5; color: #065f46; }
.pen-dash-item-status--draft   { background: #f3f4f6; color: var(--blk-color-text-muted); }
.pen-dash-item-status--pending { background: #fef3c7; color: #92400e; }

/* Empty state */
.pen-dash-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--blk-color-text-muted);
}

.pen-dash-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.25;
  margin-bottom: 0.75rem;
}

.pen-dash-empty-text {
  font-size: 0.875rem;
  margin: 0 0 1.1rem;
}

.pen-dash-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--blk-color-primary);
  color: #fff;
  border-radius: var(--blk-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.pen-dash-empty-btn:hover {
  background: var(--blk-color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ── QUICK ACTIONS ──────────────────────────────────────────── */

.pen-dash-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pen-dash-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 1.1rem;
  background: var(--blk-color-surface);
  border: 1.5px solid var(--blk-color-border);
  border-radius: var(--blk-radius-xl);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.pen-dash-quick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blk-color-primary), #1e3a8a);
  opacity: 0;
  transition: opacity 0.2s;
}

.pen-dash-quick-card:hover {
  border-color: var(--blk-color-primary);
  transform: translateY(-3px);
  box-shadow: var(--blk-shadow-md);
}

.pen-dash-quick-card:hover::before { opacity: 1; }

.pen-dash-quick-icon,
.pen-dash-quick-title,
.pen-dash-quick-desc {
  position: relative;
  z-index: 1;
}

.pen-dash-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--blk-radius-md);
  background: var(--blk-color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blk-color-primary);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0.2rem;
}

.pen-dash-quick-icon svg { width: 18px; height: 18px; }

.pen-dash-quick-card:hover .pen-dash-quick-icon {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.pen-dash-quick-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blk-color-text);
  transition: color 0.2s;
}

.pen-dash-quick-desc {
  font-size: 0.76rem;
  color: var(--blk-color-text-muted);
  transition: color 0.2s;
  line-height: 1.4;
}

.pen-dash-quick-card:hover .pen-dash-quick-title,
.pen-dash-quick-card:hover .pen-dash-quick-desc {
  color: #fff;
}

/* Generic stat card */
.pen-dash-stat-card {
  background: var(--blk-color-surface);
  border-radius: var(--blk-radius-xl);
  border: 1px solid var(--blk-color-border);
  box-shadow: var(--blk-shadow-card);
  transition: box-shadow 0.2s;
}

.pen-dash-stat-card:hover { box-shadow: var(--blk-shadow-lg); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .pen-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .pen-dash-quick { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .pen-dash { padding: 1.25rem 1rem; gap: 1.1rem; }
  .pen-dash-welcome { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .pen-dash-welcome-name { font-size: 1.4rem; }
  .pen-dash-content-grid { grid-template-columns: 1fr; }
  .pen-dash-quick { grid-template-columns: repeat(2, 1fr); }
  .pen-dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pen-dash-quick { grid-template-columns: 1fr 1fr; }
  .pen-dash-stats { grid-template-columns: 1fr 1fr; }
  .pen-dash-followers { flex-wrap: wrap; }
  .pen-dash-followers-link { margin-right: 0; width: 100%; justify-content: center; }
}
