/* =====================================================================
 * PerunPath Modern Design System (V3)
 * Unified visual language: Forest · Stone · Gold
 * ===================================================================== */

:root {
  /* --- Colors --- */
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-primary-light: #40916c;
  --color-accent: #c9942a;
  --color-accent-dark: #a67c22;
  --color-stone: #f4f1eb;
  --color-stone-dark: #d7d2c4;
  --color-slate: #1c1f22;
  --color-slate-elevated: #2a2e33;
  --color-white: #ffffff;
  --color-danger: #c04b3a;
  --color-success: #40916c;
  --color-warning: #c9942a;

  /* --- Adaptive Tokens --- */
  --bg-app: var(--color-stone);
  --bg-surface: var(--color-white);
  --bg-nav: var(--color-slate);
  --text-main: var(--color-slate);
  --text-muted: #6b6558;
  --text-on-primary: var(--color-white);
  --border-main: var(--color-stone-dark);
  --shadow-main: 0 4px 20px rgba(0,0,0,0.06);
  --radius-main: 16px;

  /* --- Typography --- */
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Barlow Condensed", sans-serif;

  /* --- Extended tokens --- */
  --color-accent-text: #7a5c0f;    /* gold ciemniejsze — 4.6:1 na stone, zdaje WCAG AA */
  --color-primary-text: #2d6a4f;   /* adaptive: readable on light bg */
  --color-primary-subtle: rgba(45, 106, 79, 0.08);
  --color-accent-subtle: rgba(201, 148, 42, 0.10);
  --transition-base: 200ms ease-in-out;
  /* --- Semantic surface tokens --- */
  --bg-info: rgba(59, 130, 246, 0.10);
  --text-info: #1d4ed8;
  --bg-success-subtle: rgba(64, 145, 108, 0.10);
  --text-success: #1b5e3b;
  --bg-section-green: rgba(45, 106, 79, 0.10);
  --bg-section-blue: rgba(59, 130, 246, 0.10);
  --bg-section-amber: rgba(201, 148, 42, 0.10);
  --bg-section-purple: rgba(124, 58, 237, 0.10);
  --text-section-blue: #1e40af;
  --text-section-amber: #92400e;
  --text-section-purple: #5b21b6;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-app: var(--color-slate);
  --bg-surface: var(--color-slate-elevated);
  --text-main: var(--color-stone);
  --text-muted: #a8a296;
  --border-main: #3d4349;
  --shadow-main: 0 8px 30px rgba(0,0,0,0.3);
}

/* Dark Mode Overrides (extended) */
[data-theme="dark"] {
  --bg-app: var(--color-slate);
  --bg-surface: var(--color-slate-elevated);
  --text-main: var(--color-stone);
  --text-muted: #a8a296;
  --border-main: #3d4349;
  --shadow-main: 0 8px 30px rgba(0,0,0,0.3);
  --color-accent-text: #d4a84b;
  --color-primary-text: #52b788;   /* adaptive: readable on dark bg (4.7:1 vs #2a2e33) */
  --color-primary-subtle: rgba(64, 145, 108, 0.12);
  --color-accent-subtle: rgba(201, 148, 42, 0.12);
  /* --- Semantic surface tokens dark --- */
  --bg-info: rgba(96, 165, 250, 0.12);
  --text-info: #93c5fd;
  --bg-success-subtle: rgba(64, 145, 108, 0.14);
  --text-success: #74c69d;
  --bg-section-green: rgba(64, 145, 108, 0.15);
  --bg-section-blue: rgba(96, 165, 250, 0.12);
  --bg-section-amber: rgba(201, 148, 42, 0.15);
  --bg-section-purple: rgba(167, 139, 250, 0.12);
  --text-section-blue: #93c5fd;
  --text-section-amber: #fbbf24;
  --text-section-purple: #c4b5fd;
}

/* --- Core Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { 
  font-family: var(--font-ui); 
  background: var(--bg-app); 
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout Components --- */
.pp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pp-main-content {
  padding: 40px 0 100px;
}

/* --- Modern Navbar --- */
.pp-navbar {
  background: var(--bg-nav);
  color: var(--color-white);
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pp-navbar .pp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pp-nav-logo img { height: 40px; }

.pp-nav-links { display: flex; gap: 24px; align-items: center; }
.pp-nav-links a { 
  color: rgba(255,255,255,0.8); 
  text-decoration: none; 
  font-weight: 500; 
  font-size: 14px;
  transition: all 0.2s;
}
.pp-nav-links a:hover { color: var(--color-white); }

/* --- Modern Buttons --- */
.pp-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-ui);
}

.pp-btn-primary { 
  background: var(--color-primary); 
  color: white; 
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}
.pp-btn-primary:hover { background: var(--color-primary-light); transform: translateY(-2px); }

.pp-btn-accent { 
  background: var(--color-accent); 
  color: var(--color-slate); 
}
.pp-btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

/* --- Glass Cards --- */
.pp-card {
  background: var(--bg-surface);
  border-radius: var(--radius-main);
  padding: 24px;
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-main);
  transition: transform 0.2s;
}

.pp-card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

/* --- Grid System --- */
.pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Mobile Bottom Nav --- */
.pp-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-nav);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
  .pp-navbar .pp-nav-links { display: none; }
  .pp-mobile-nav { display: flex; }
  .pp-main-content { padding-top: 20px; }
}

.mobile-nav-item {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-nav-item.active { color: var(--color-accent); }
.mobile-nav-icon { width: 24px; height: 24px; }

/* --- Button Variants --- */
.pp-btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-main);
}
.pp-btn-ghost:hover { background: var(--color-stone); color: var(--text-main); }

.pp-navbar .pp-btn-ghost {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.28);
}
.pp-navbar .pp-btn-ghost:hover {
  color: white;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
}

.pp-btn-soft {
  background: var(--color-stone);
  color: var(--text-main);
  border: 1px solid var(--border-main);
}
.pp-btn-soft:hover { background: var(--color-stone-dark); }

.pp-btn-success {
  background: var(--color-success);
  color: white;
  box-shadow: 0 4px 12px rgba(64, 145, 108, 0.3);
}
.pp-btn-success:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.pp-btn-danger {
  background: var(--color-danger);
  color: white;
}
.pp-btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); }

.pp-btn-sm { padding: 8px 16px !important; font-size: 13px !important; border-radius: 8px; }
.pp-btn-xs { padding: 6px 12px !important; font-size: 12px !important; border-radius: 6px; }
.pp-btn-lg { padding: 16px 36px !important; font-size: 16px !important; }

/* --- Nav active state --- */
.pp-nav-links .pp-nav-active { color: var(--color-accent) !important; }

/* --- Hamburger Menu --- */
.pp-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.pp-nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.pp-nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.pp-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pp-hamburger-open span:nth-child(2) { opacity: 0; }
.pp-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .pp-nav-hamburger { display: flex; }
  .pp-nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .pp-nav-links.pp-nav-open { display: flex; }
  .pp-nav-links a:not(.pp-btn) {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
  }
  .pp-nav-links a:not(.pp-btn):hover { background: rgba(255,255,255,0.08); }
  .pp-nav-links .pp-btn { margin-top: 8px; justify-content: center; }
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; margin-top: 0; }
a { color: var(--color-primary); }
p { margin-top: 0; }

/* --- Section Layout --- */
.pp-section { margin-bottom: 48px; }
.pp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.pp-section-header-end { align-items: center; }
.pp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}
.pp-section-link {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.pp-section-link:hover { text-decoration: underline; }

/* --- Card Enhancements --- */
.pp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.1); }
.pp-card a { color: var(--color-primary); }

/* --- Text Utilities --- */
.pp-muted-text { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.pp-muted-text-xs { color: var(--text-muted); font-size: 0.75rem; }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--text-muted); }

/* --- Form Elements --- */
.pp-textarea-full {
  width: 100%;
  border: 1.5px solid var(--border-main);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-surface);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pp-textarea-full:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

/* --- Spacing Utilities --- */
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }

/* pp- prefixed spacing (used in trip_detail) */
.pp-mt-0_25 { margin-top: 0.25rem; }
.pp-mt-0_5  { margin-top: 0.5rem; }
.pp-mt-0_75 { margin-top: 0.75rem; }
.pp-mt-1    { margin-top: 1rem; }
.pp-mt-1_5  { margin-top: 1.5rem; }
.pp-section-mt-1_5 { margin-top: 1.5rem; }

/* --- Participants (trip_detail) --- */
.pp-participants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.pp-participant-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-stone);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border-main);
}
.pp-participant-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.pp-participant-name { font-size: 13px; font-weight: 600; }
.pp-participant-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-danger);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s;
}
.pp-participant-remove-btn:hover { background: rgba(192,75,58,0.1); }

/* --- Forum styles (trip_detail chat) --- */
.pp-forum-replies-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; padding: 0; }
.pp-forum-reply-item { border-left: 3px solid var(--color-stone-dark); padding: 8px 12px; }
.pp-forum-reply-meta { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.pp-forum-topic-body-inner { font-size: 14px; line-height: 1.6; }

/* --- Share buttons (trip_detail) --- */
.pp-share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-share-button { font-size: 13px !important; padding: 8px 16px !important; }

/* --- Footer --- */
.pp-footer {
  background: var(--color-slate);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
  margin-top: 80px;
}
.pp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.pp-footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.6;
  max-width: 220px;
}
.pp-footer-social { margin-top: 16px; display: flex; gap: 10px; }
.pp-footer-app-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 0.2s;
}
.pp-footer-app-badge:hover { background: rgba(255,255,255,0.18); color: white; }
.pp-footer-heading {
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.pp-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.pp-footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.pp-footer-links a:hover { color: rgba(255,255,255,0.9); }
.pp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 12px;
  opacity: 0.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 900px) {
  .pp-footer-grid { grid-template-columns: 1fr 1fr; }
  .pp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .pp-footer-grid { grid-template-columns: 1fr; }
}

/* --- Forum & Section Utilities --- */
.pp-section-header-vertical { flex-direction: column; align-items: flex-start; gap: 4px; }
.pp-section-title-lg { font-size: clamp(1.5rem, 4vw, 2.25rem); }
.pp-section-title-md { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.pp-section-title-sm { font-size: 1rem; }
.pp-muted-text-sm { font-size: 0.8rem; color: var(--text-muted); }
.pp-m-0 { margin: 0; }

.pp-forum-topic-body { padding: 24px; }
.pp-forum-attachments { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-main); }
.pp-attachment-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pp-attachment-list li a { color: var(--color-primary); text-decoration: none; font-size: 14px; }
.pp-attachment-list li a:hover { text-decoration: underline; }
.pp-forum-replies-header { margin-top: 8px; }

/* The pp-forum-replies-list class is also used as a card wrapper */
.pp-forum-replies-list.pp-card { padding: 0; }
.pp-forum-reply-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-main);
}
.pp-forum-reply-item:last-child { border-bottom: none; }

/* --- Breadcrumbs --- */
.pp-breadcrumbs {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted);
    padding: 16px 0 8px; flex-wrap: wrap;
}
.pp-breadcrumbs a { color: var(--color-primary); text-decoration: none; }
.pp-breadcrumbs a:hover { text-decoration: underline; }
.pp-breadcrumbs .sep { opacity: 0.5; }

/* --- Badge --- */
.pp-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pp-badge-success { background: rgba(64,145,108,0.1); color: var(--color-success); border: 1px solid rgba(64,145,108,0.2); }
.pp-badge-warning { background: rgba(201,148,42,0.1); color: var(--color-warning); border: 1px solid rgba(201,148,42,0.2); }
.pp-badge-danger  { background: rgba(192,75,58,0.1);  color: var(--color-danger);  border: 1px solid rgba(192,75,58,0.2); }

/* --- Alert boxes --- */
.pp-alert {
    padding: 14px 18px; border-radius: 12px;
    font-size: 14px; line-height: 1.5; margin-bottom: 16px;
}
.pp-alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.pp-alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.pp-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.pp-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* --- Focus visible (EU Accessibility Act 2025) --- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* --- Dark mode toggle button --- */
.pp-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}
.pp-theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  color: white;
}
.pp-theme-toggle .material-symbols-outlined { font-size: 18px; }

/* --- Stats bar (home page) --- */
.pp-stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 0;
  max-width: 720px;
  margin: 0 auto 48px;
  overflow: hidden;
}
.pp-stat-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border-main);
  transition: background var(--transition-base);
}
.pp-stat-item:last-child { border-right: none; }
.pp-stat-item:hover { background: var(--color-primary-subtle); }
.pp-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.pp-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .pp-stats-bar { gap: 0; border-radius: 12px; }
  .pp-stat-item { min-width: 90px; padding: 14px 10px; border-right: none; border-bottom: 1px solid var(--border-main); }
  .pp-stat-item:last-child { border-bottom: none; }
}

/* --- Home route cards --- */
.pp-route-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-main);
  border: 1px solid var(--border-main);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-main);
}
.pp-route-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.pp-route-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.pp-route-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pp-route-card:hover .pp-route-thumb img { transform: scale(1.05); }
.pp-route-body { padding: 16px; flex: 1; }
.pp-route-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.2;
}
.pp-route-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.pp-route-meta span { display: flex; align-items: center; gap: 3px; }

/* --- Home community section --- */
.pp-community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .pp-community-grid { grid-template-columns: 1fr; } }

.pp-blog-mini-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-main);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.pp-blog-mini-card:last-child { border-bottom: none; }
.pp-blog-mini-card:hover .pp-blog-mini-title { color: var(--color-primary); }
.pp-blog-mini-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pp-blog-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-blog-mini-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 4px;
  transition: color 0.15s;
}
.pp-blog-mini-date { font-size: 11px; color: var(--text-muted); }

.pp-forum-mini-item {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-main);
  text-decoration: none;
  color: inherit;
}
.pp-forum-mini-item:last-child { border-bottom: none; }
.pp-forum-mini-item:hover .pp-forum-mini-title { color: var(--color-primary); }
.pp-forum-mini-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  transition: color 0.15s;
}
.pp-forum-mini-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* --- Forum pagination --- */
.pp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border-main);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.15s;
}
.pp-page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pp-page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.pp-page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
