/* ==========================================================================
   WORKLUMO ARCHIVE & NEWS STYLESHEET
   Dedicated CSS for News Page (/news/), Tag Pages (/tag/*), Categories & Search
   ========================================================================== */

/* ==========================================================================
   1. ARCHIVE / NEWS LAYOUT SPACING (Clean Grid Layout)
   ========================================================================== */

body.blog .site-main,
body.archive .site-main,
body.tag .site-main,
body.category .site-main,
body.search .site-main,
body.blog #inner-wrap,
body.archive #inner-wrap {
  padding-top: 24px !important;
}

@media (max-width: 768px) {

  body.blog .site-main,
  body.archive .site-main,
  body.tag .site-main,
  body.category .site-main,
  body.search .site-main {
    padding-top: 16px !important;
  }
}

/* ==========================================================================
   2. ARTICLE LOOP ENTRY CARDS (News, Tags, Categories, Search)
   ========================================================================== */

body.blog .entry.loop-entry,
body.archive .entry.loop-entry,
body.tag .entry.loop-entry,
body.category .entry.loop-entry,
body.search .entry.loop-entry,
.content-wrap .entry.loop-entry,
.post-archive-container .entry.loop-entry {
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(7, 25, 73, 0.04) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

body.blog .entry.loop-entry:hover,
body.archive .entry.loop-entry:hover,
body.tag .entry.loop-entry:hover,
body.category .entry.loop-entry:hover,
body.search .entry.loop-entry:hover,
.content-wrap .entry.loop-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 25, 73, 0.09) !important;
  border-color: #cbd5e1 !important;
}

/* Thumbnail Image & Hover Zoom */
.entry.loop-entry .post-thumbnail {
  border-radius: 14px 14px 0 0 !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

.entry.loop-entry .post-thumbnail img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: block;
  width: 100%;
}

.entry.loop-entry:hover .post-thumbnail img {
  transform: scale(1.04);
}

/* Riduciamo il padding superiore del blocco contenuto (distanza dall'immagine calibrata) */
.entry.loop-entry .entry-content-wrap,
.content-wrap .entry-content-wrap,
.entry.loop-entry header.entry-header {
  padding-top: 12px !important;
  margin-top: 0 !important;
}

/* Category Badge (Ambra Moderno con spaziatura perfetta) */
.entry.loop-entry .entry-taxonomies,
.entry.loop-entry .category {
  margin: 0 0 13px 0 !important;
  padding-top: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.entry.loop-entry .entry-taxonomies a,
.entry.loop-entry .category a,
.entry.loop-entry a[rel="category tag"] {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: #d97706 !important;
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  padding: 3px 11px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.entry.loop-entry .entry-taxonomies a:hover,
.entry.loop-entry .category a:hover,
.entry.loop-entry a[rel="category tag"]:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  transform: translateY(-1px);
}

/* Post Titles in Archives & News */
.entry.loop-entry .entry-title,
.entry.loop-entry h2.entry-title {
  font-size: 1.32rem !important;
  font-weight: 800 !important;
  line-height: 1.30 !important;
  color: #071949 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.01em;
  text-align: left !important;
}

.entry.loop-entry .entry-title a {
  color: #071949 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.entry.loop-entry .entry-title a:hover {
  color: #2563eb !important;
}

/* Post Excerpt */
.entry.loop-entry .entry-summary,
.entry.loop-entry .entry-content p {
  font-size: 0.90rem !important;
  line-height: 1.55 !important;
  color: #64748b !important;
  text-align: left !important;
}

/* Date & Meta */
.entry.loop-entry .entry-meta,
.entry.loop-entry .posted-on,
.entry.loop-entry .post-date {
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-align: left !important;
}

/* Nasconde l'autore e il punto separatore nelle card archivio */
.entry.loop-entry .posted-by,
.entry.loop-entry .meta-separator {
  display: none !important;
}

/* ==========================================================================
   3. ARCHIVE PAGINATION (Modern Rounded Pills)
   ========================================================================== */

.pagination,
.nav-links,
.wp-block-query-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 42px 0 !important;
}

.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.page-numbers.current,
.page-numbers:hover {
  background: #071949 !important;
  border-color: #071949 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(7, 25, 73, 0.18) !important;
}

/* ==========================================================================
   4. DARK THEME SUPPORT (Archives & News)
   ========================================================================== */

.dark-mode .entry.loop-entry,
[data-theme="dark"] .entry.loop-entry,
body.tbl-dark-theme .entry.loop-entry {
  background: #1e2025 !important;
  border-color: #33383f !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

.dark-mode .archive-title,
.dark-mode .page-title,
[data-theme="dark"] .archive-title,
[data-theme="dark"] .page-title {
  color: #f1f5f9 !important;
}

.dark-mode .entry.loop-entry .entry-title a,
[data-theme="dark"] .entry.loop-entry .entry-title a {
  color: #f1f5f9 !important;
}

.dark-mode .entry.loop-entry .entry-title a:hover,
[data-theme="dark"] .entry.loop-entry .entry-title a:hover {
  color: #60a5fa !important;
}

.dark-mode .entry.loop-entry .entry-summary,
.dark-mode .entry.loop-entry .entry-content p,
[data-theme="dark"] .entry.loop-entry .entry-summary,
[data-theme="dark"] .entry.loop-entry .entry-content p {
  color: #94a3b8 !important;
}

.dark-mode .entry.loop-entry .post-date,
[data-theme="dark"] .entry.loop-entry .post-date {
  color: #64748b !important;
}

.dark-mode .page-numbers,
[data-theme="dark"] .page-numbers {
  background: #1e2025 !important;
  border-color: #33383f !important;
  color: #94a3b8 !important;
}

.dark-mode .page-numbers.current,
.dark-mode .page-numbers:hover,
[data-theme="dark"] .page-numbers.current,
[data-theme="dark"] .page-numbers:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 768px) {

  .archive-header,
  .page-header.archive-header {
    margin: 18px auto 26px auto !important;
  }

  .archive-title,
  .page-title {
    font-size: 1.75rem !important;
  }

  .entry.loop-entry .entry-title,
  .entry.loop-entry h2.entry-title {
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    line-height: 1.30 !important;
    margin-bottom: 8px !important;
  }

  .entry.loop-entry .entry-content-wrap {
    padding-top: 8px !important;
  }

  .entry.loop-entry .entry-taxonomies {
    margin: 0 0 10px 0 !important;
  }
}