/* =============================================
   FILE: inner-page.css
   PURPOSE: Inner/Sub-page Layout – Breadcrumb, Page Header, Sidebar Layout
   ============================================= */

/* --- Breadcrumb --- */
.breadcrumb-bar {
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--color-primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* --- Page Header --- */
.inner-page { padding-top: 2rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
}

/* --- Page with Sidebar --- */
.page-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}
.sidebar-widget ul { display: flex; flex-direction: column; gap: 0.45rem; }
.sidebar-widget li a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  display: block;
  transition: color 0.2s;
  border-bottom: 1px dashed var(--border-color);
}
.sidebar-widget li a:hover { color: var(--color-primary); }

@media (max-width: 900px) {
  .page-layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* --- Post Content Styles --- */
.post-content h2 { font-size: 1.4rem; margin: 1.75rem 0 0.75rem; color: var(--text-primary); }
.post-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--color-primary); }
.post-content p  { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content a { color: var(--color-primary); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  background: rgba(21,101,192,0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1.25rem 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.88rem;
}
.post-content th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: left;
}
.post-content td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border-color); }
.post-content tr:nth-child(even) td { background: var(--bg-body); }

/* --- Share Section --- */
.share-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.share-section .share-label { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.fb  { background: #1877f2; }
.share-btn.tw  { background: #1da1f2; }
.share-btn.wa  { background: #25d366; }
.share-btn.tg  { background: #0088cc; }

/* --- Page Not Found (404) --- */
.page-404 { text-align: center; padding: 5rem 1rem; }
.page-404 h1 { font-size: 6rem; color: var(--color-primary); line-height: 1; margin-bottom: 0.5rem; }
.page-404 h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.page-404 p  { color: var(--text-secondary); margin-bottom: 2rem; }
