/* ===== DASHBOARD ===== */
.dashboard-header { margin-bottom: 20px; }
.dashboard-header h1 {
  font-family: 'Rubik', sans-serif; font-size: 20px; font-weight: 700;
  margin-bottom: 3px; color: var(--text); letter-spacing: -0.03em;
}
.dashboard-header p { color: var(--text-muted); font-size: 13px; }

/* FIX #1: Stats grid uses full width */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  width: 100%;
}
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.stat-value {
  font-family: 'Rubik', sans-serif; font-size: 28px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); line-height: 1.1;
}
.stat-hint { font-size: 11.5px; color: var(--text-muted); }

.section-title {
  font-family: 'Rubik', sans-serif; font-size: 14.5px; margin-bottom: 14px;
  font-weight: 600; display: flex; align-items: center; gap: 7px;
  letter-spacing: -0.01em;
}

/* ===== POSTS PAGE ===== */
.posts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.time-filter { display: flex; gap: 6px; }
.time-filter button {
  padding: 5px 12px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--text-muted); transition: all var(--transition);
}
.time-filter button.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== POSTS GRID - SIZE VARIANTS - FIX #1: All use full width ===== */
.posts-grid {
  display: grid;
  gap: 16px;
  width: 100%;
}

/* Default (medium) - 2-col style */
.posts-grid.grid-md {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Small - 3-col dense */
.posts-grid.grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* Large - 2-col wide */
.posts-grid.grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 18px;
}

/* List view */
.posts-grid.grid-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.posts-grid.grid-list .post-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.posts-grid.grid-list .post-card .post-title {
  font-size: 14px;
  min-width: 200px;
  max-width: 280px;
}

.posts-grid.grid-list .post-card .post-content {
  -webkit-line-clamp: 1;
  flex: 1;
}

.posts-grid.grid-list .post-card .post-hashtags,
.posts-grid.grid-list .post-card .post-meta { display: none; }

.posts-grid.grid-list .post-card .post-actions {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-left: auto;
  flex-shrink: 0;
}

/* Small grid - compact card */
.posts-grid.grid-sm .post-card {
  padding: 14px;
}
.posts-grid.grid-sm .post-content {
  -webkit-line-clamp: 2;
  font-size: 12px;
}
.posts-grid.grid-sm .post-title { font-size: 13.5px; }

/* ===== POST CARD ===== */
.post-card {
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-2px); }
.post-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
/* FIX #2: Duralux card title style */
.post-title { font-weight: 600; font-size: 14px; flex: 1; line-height: 1.4; letter-spacing: -0.01em; }
.post-content {
  font-size: 13px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.55; white-space: pre-wrap;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px;
  color: var(--text-muted); align-items: center;
}
.post-hashtags { display: flex; flex-wrap: wrap; gap: 4px; }
.hashtag-chip {
  background: rgba(67,97,238,0.08); padding: 2px 8px; border-radius: 10px;
  font-size: 11px; color: var(--primary); font-weight: 500;
}
.post-actions {
  display: flex; gap: 6px; border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: auto;
}
.post-actions button {
  font-size: 12px; padding: 5px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated);
  transition: all var(--transition); font-weight: 500;
}
.post-actions button:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }

/* ===== NOTES GRID - SIZE VARIANTS ===== */
.notes-grid {
  display: grid;
  gap: 14px;
  width: 100%;
}
.notes-grid.grid-md { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.notes-grid.grid-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.notes-grid.grid-lg { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 18px; }
.notes-grid.grid-list {
  grid-template-columns: 1fr;
  gap: 8px;
}
.notes-grid.grid-list .note-card {
  flex-direction: row; align-items: center; min-height: auto;
  padding: 12px 16px; gap: 14px;
}
.notes-grid.grid-list .note-card .note-title { font-size: 14px; min-width: 180px; }
.notes-grid.grid-list .note-card .note-content {
  -webkit-line-clamp: 1; flex: 1; font-size: 12.5px;
}
.notes-grid.grid-list .note-card .note-meta { display: none; }
.notes-grid.grid-list .note-card .note-actions {
  border-top: none; padding-top: 0; margin-left: auto;
}

/* ===== LINKS GRID - SIZE VARIANTS ===== */
.links-list.grid-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.links-list.grid-md {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px;
  width: 100%;
}
.links-list.grid-md .link-card {
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px;
  grid-template-columns: none; align-items: flex-start;
}
.links-list.grid-md .link-card .link-actions { margin-left: auto; }
.links-list.grid-sm {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
  width: 100%;
}
.links-list.grid-sm .link-card {
  grid-template-columns: 28px 1fr auto; padding: 10px 12px;
}
.links-list.grid-sm .link-card .link-desc { display: none; }

/* ===== WEEKLY BOARD - SIZE VARIANTS ===== */
.kanban-board.board-compact { gap: 6px; }
.kanban-board.board-compact .kanban-card { padding: 7px; }
.kanban-board.board-compact .kanban-card-preview { display: none; }

.kanban-board.board-wide {
  grid-template-columns: repeat(7, minmax(200px, 1fr));
  gap: 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

.placeholder-page {
  text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.placeholder-page h2 { font-family: 'Rubik', sans-serif; margin-bottom: 10px; color: var(--text); }

/* ===== FIX #2: Duralux card style - subtle shadow, crisp borders ===== */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 1px 4px rgba(43,55,72,0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 4px 16px rgba(43,55,72,0.1);
}

/* ===== HASHTAG GRID full width ===== */
.hashtag-grid {
  width: 100%;
}
