/*public_html/blog/Styles/blog_renderer.css */

/* =========================================================
   DASHBOARD GRID LAYOUT
========================================================= */
.dashboard-root {
  display: grid;
  grid-template-columns: 260px minmax(0, 2fr) 300px;
  min-height: calc(100vh - 60px);
  margin-top: 60px;

  min-width: 0; /* critical for grid overflow */
}

/* =========================================================
   SIDE BARS
========================================================= */
.dashboard-root .sidebar {
  padding: 20px;
}

.dashboard-root .sidebar.left,
.dashboard-root .sidebar.right {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
}

/* =========================================================
   CENTER COLUMN (FULL WIDTH FIX)
========================================================= */
.dashboard-main {
  min-width: 0;               /* CRITICAL */
  width: 100%;
  max-width: 100%;

  padding: 30px 40px;
  box-sizing: border-box;
}

.dashboard-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;

  width: 100%;
  max-width: 100%;
  overflow-y: visible;
}

/* =========================================================
   POST CARD
========================================================= */
.dashboard-post {
  width: 100%;
  max-width: 100%;

  background: rgba(20, 24, 30, 0.45);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.15);

  padding: 22px;
  color: #e8ecf3;

  display: flex;
  flex-direction: column;
  gap: 18px;

  overflow-y: auto;        /* allow scrolling */
  scrollbar-width: none;  /* Firefox */
}

/* Chrome / Edge / Safari */
.dashboard-post::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}


/* =========================================================
   POST CONTENT GRID (2 COLUMNS)
========================================================= */
.dashboard-post-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* =========================================================
   LEFT COLUMN (IMAGE + META)
========================================================= */
.dashboard-post-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-post-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.dashboard-post-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;

  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* =========================================================
   RIGHT COLUMN (TEXT)
========================================================= */
.dashboard-post-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;

  min-width: 0; /* prevents text overflow */
}

.dashboard-post-body .blog-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  color: #eef3f9;
}



/* Continue reading link */
.dashboard-post-body .continue-reading {
  font-family: 'Fira Code', monospace;
  font-size: 15px;
  color: #7bb5ff;
  text-decoration: none;
}

.dashboard-post-body .continue-reading:hover {
  text-decoration: underline;
}

/* =========================================================
   TAG ROW (FULL WIDTH BELOW CONTENT)
========================================================= */


/* =========================================================
   TAG PILLS (PREMIUM / GLASS)
========================================================= */
/* =========================================
   TAG ROW – LIMIT TO 2 LINES
========================================= */


.dashboard-tag-pill {
  padding: 8px 14px;
  border-radius: 12px;

  font-family: 'Fira Code', monospace;
  font-size: 14px;
  white-space: nowrap;

  color: #e8ecf3;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);

  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.dashboard-tag-pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);

  box-shadow:
    0 4px 10px rgba(0,0,0,0.35),
    0 0 8px rgba(255,255,255,0.18);

  transform: translateY(-2px);
}

.dashboard-tags-toggle {
  all: unset;
  cursor: pointer;

  position: absolute;
  right: 4px;
  bottom: -18px;

  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(180,200,230,0.65);
}

.dashboard-tags-toggle:hover {
  color: rgba(235,245,255,0.95);
}
/* tooltip */
.dashboard-tags-toggle::after {
  content: attr(title);
  position: absolute;
  bottom: 26px;
  right: 0;

  background: rgba(20,24,30,0.95);
  color: #cfd6e4;

  font-size: 11px;
  padding: 6px 10px;
  border-radius: 10px;

  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;

  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dashboard-tags-toggle:hover::after {
  opacity: 1;
  transform: translateY(0);
}
/* reuse chevron animation */
.dashboard-tags-toggle .chevron {
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-tags-toggle.expanded .chevron {
  transform: rotate(-135deg);
}


/* =========================================================
   LEFT SIDEBAR CLOCK (RESTORED)
========================================================= */
.dashboard-root .sidebar.left .card {
  text-align: center;
}

.dashboard-root .sidebar.left #date {
  font-size: 16px;
  color: #9da3b0;
  margin-bottom: 6px;
}

.dashboard-root .sidebar.left #clock {
  font-size: 28px;
  font-weight: 600;
  color: #eef3f9;
  letter-spacing: 0.5px;
}

/* =========================================
   CLOCK / DATE – GLASS PILL STYLE
========================================= */
.dashboard-sidebar-left .dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Date pill */
#date {
  padding: 6px 14px;
  border-radius: 14px;

  font-family: 'Fira Code', monospace;
  font-size: 14px;
  color: #cfd6e4;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);

  box-shadow:
    0 4px 12px rgba(0,0,0,0.35),
    inset 0 0 6px rgba(255,255,255,0.05);
}

/* Clock pill (primary emphasis) */
#clock {
  padding: 10px 18px;
  border-radius: 18px;

  font-family: 'Fira Code', monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;

  color: #eef3f9;

  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.45),
    0 0 12px rgba(123,181,255,0.15);
}
/* =========================================
   ABSTRACT – LIMIT TO 5 LINES
========================================= */

.dashboard-main {
  padding: 40px 48px;     /* 👈 more vertical breathing room */
  width: 100%;
  min-height: 100vh;      /* 👈 allows tall feed */
  overflow: visible;      /* 👈 IMPORTANT */
  box-sizing: border-box;
}

.dashboard-post-abstract {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);

  overflow: hidden;
  max-height: calc(1.5em * 3);

  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}


/* collapsed = 3 lines */

/* expanded = full text */

.dashboard-open-article {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-open-article:hover {
  color: #ffffff;
  transform: translateY(-2px);
}
.dashboard-abstract-toggle {
  align-self: flex-center;

  background: none;
  border: none;
  padding: 2px 0;

  font-size: 1.1rem;
  line-height: 1;
  color: rgba(255,255,255,0.55);

  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.25s ease;
}

.dashboard-abstract-toggle:hover {
  color: #ffffff;
  transform: translateY(1px);
}
.dashboard-post-abstract.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.8em;

  background: linear-gradient(
    to bottom,
    rgba(20,24,30,0),
    rgba(20,24,30,0.9)
  );
  pointer-events: none;
}
.dashboard-abstract-toggle {
  all: unset;
  cursor: pointer;
  width: 14px;
  height: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(180, 200, 230, 0.65);
  transition: color 0.2s ease;
}

.dashboard-abstract-toggle:hover {
  color: rgba(235, 245, 255, 0.95);
}

.dashboard-abstract-toggle .chevron {
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Expanded = rotate up */
.dashboard-abstract-toggle.expanded .chevron {
  transform: rotate(-135deg);
}

/* =========================================================
   TAGS – COLLAPSIBLE (1 ROW DEFAULT)
========================================================= */

.dashboard-tags-wrapper {
  position: relative;
  margin-top: 14px;
}

.dashboard-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  width: 100%;
  overflow: hidden;          /* ✅ REQUIRED */
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}

/* collapsed visual hint */
.dashboard-post-tags.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1.6em;
  background: linear-gradient(
    to bottom,
    rgba(20,24,30,0),
    rgba(20,24,30,0.85)
  );
  pointer-events: none;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 900px) {
  .dashboard-root {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .dashboard-post-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   RESPONSIVE LAYOUT — DASHBOARD (TABLET & MOBILE)
   Desktop styles above remain untouched
========================================================= */

/* ---------- Tablet & Mobile (≤ 900px) ---------- */
@media (max-width: 900px) {

  .dashboard-root {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-post-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 32px 22px;
  }
}


/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {

  .dashboard-main {
    padding: 18px 18px;
  }

  .dashboard-post {
    padding: 18px;
  }

  .dashboard-post-thumb {
    height: 180px;
  }

  .dashboard-post-title {
    font-size: 20px;
  }
}


/* ---------- Small Phones (≤ 480px) ---------- */
@media (max-width: 480px) {

  .dashboard-main {
    padding: 22px 14px;
  }

  .dashboard-post-title {
    font-size: 18px;
  }

  .dashboard-post-abstract {
    font-size: 0.9rem;
  }
}
/* =========================================================
   TAG PILL – ACTIVE STATE
========================================================= */
.dashboard-tag-pill.is-active {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.35),
    0 6px 14px rgba(0,0,0,0.35);
  color: #ffffff;
}
