/*
 Theme Name: Skrabeloddet Neve Child
 Theme URI: https://skrabeloddet.dk/
 Description: Child theme til Neve for Skrabeloddet.dk. Indeholder global styling og små tilpasninger.
 Author: Skrabeloddet.dk
 Author URI: https://skrabeloddet.dk/
 Template: neve
 Version: 1.0.0
 Requires at least: 6.0
 Tested up to: 6.5
 Requires PHP: 7.4
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: skrabeloddet-neve-child
*/

/* Note:
 * Større styles ligger i /assets/css/global.css (enqueued i functions.php).
 * Her kan du lægge små overrides hvis nødvendigt.
 */
/* ===========================
   BLOG FIX – Neve: Hvid tekst + 3 kolonner
   (tilpasset den "cover"-liste du viser på screenshot)
   =========================== */

/* 1) Sæt tekstfarver til hvid på blog/arkiv */
body.blog,
body.archive,
body.category,
body.tag,
body.search,
body.author {
  color: rgba(255,255,255,.92);
}

body.blog .nv-content-wrap,
body.archive .nv-content-wrap,
body.category .nv-content-wrap,
body.tag .nv-content-wrap,
body.search .nv-content-wrap {
  color: rgba(255,255,255,.92);
}

/* Titler + meta + uddrag + links */
body.blog .entry-title,
body.blog .entry-title a,
body.blog h1, body.blog h2, body.blog h3,
body.archive .entry-title,
body.archive .entry-title a,
body.archive h1, body.archive h2, body.archive h3,
body.search .entry-title,
body.search .entry-title a {
  color: rgba(255,255,255,.96) !important;
}

body.blog .nv-meta,
body.blog .entry-meta,
body.blog .post-meta,
body.archive .nv-meta,
body.archive .entry-meta,
body.search .nv-meta,
body.search .entry-meta {
  color: rgba(255,255,255,.72) !important;
}

body.blog p,
body.archive p,
body.search p,
body.blog .entry-summary,
body.archive .entry-summary,
body.search .entry-summary {
  color: rgba(255,255,255,.80) !important;
}

body.blog a,
body.archive a,
body.search a {
  color: rgba(255,255,255,.92);
}

body.blog a:hover,
body.archive a:hover,
body.search a:hover {
  color: rgba(255,176,0,.95);
  text-decoration: none;
}

/* Gør tekst læsbar hvis Neve lægger den ovenpå billede/overlay */
body.blog .entry-title,
body.blog .nv-meta,
body.blog .entry-summary,
body.archive .entry-title,
body.archive .nv-meta,
body.archive .entry-summary {
  text-shadow: 0 8px 30px rgba(0,0,0,.55);
}


/* 2) 3-kolonne layout på selve post-listen (rammer flere Neve wrappers) */
body.blog .nv-posts-wrapper,
body.archive .nv-posts-wrapper,
body.search .nv-posts-wrapper,
body.blog .posts-wrapper,
body.archive .posts-wrapper,
body.search .posts-wrapper,
body.blog .nv-index-posts,
body.archive .nv-index-posts,
body.search .nv-index-posts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* 3) Tving hvert indlæg til “kort”-format (så cover-layout ikke fylder hele grid’et) */
body.blog article,
body.archive article,
body.search article {
  margin: 0 !important;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

/* Hvis Neve bruger cover-billede via background/min-height, så neutraliser det */
body.blog article .nv-post-thumbnail,
body.archive article .nv-post-thumbnail,
body.search article .nv-post-thumbnail {
  position: relative;
}

body.blog article[class*="cover"],
body.archive article[class*="cover"],
body.search article[class*="cover"] {
  min-height: auto !important;
}

/* Begræns billeder så de passer i et kort */
body.blog article img.wp-post-image,
body.archive article img.wp-post-image,
body.search article img.wp-post-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Lidt luft til indholdet */
body.blog article .content,
body.archive article .content,
body.search article .content,
body.blog article .entry-content,
body.archive article .entry-content,
body.search article .entry-content,
body.blog article .nv-post-content,
body.archive article .nv-post-content,
body.search article .nv-post-content {
  padding: 14px 16px;
}

/* Knap/link “Læs mere” osv. */
body.blog .more-link,
body.archive .more-link,
body.search .more-link {
  color: rgba(255,255,255,.92) !important;
  border-bottom: 1px dashed rgba(255,255,255,.28);
  text-decoration: none !important;
}
body.blog .more-link:hover,
body.archive .more-link:hover,
body.search .more-link:hover {
  border-bottom-color: rgba(255,176,0,.75);
  color: rgba(255,176,0,.95) !important;
}


/* Responsivt */
@media (max-width: 960px){
  body.blog .nv-posts-wrapper,
  body.archive .nv-posts-wrapper,
  body.search .nv-posts-wrapper,
  body.blog .posts-wrapper,
  body.archive .posts-wrapper,
  body.search .posts-wrapper,
  body.blog .nv-index-posts,
  body.archive .nv-index-posts,
  body.search .nv-index-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px){
  body.blog .nv-posts-wrapper,
  body.archive .nv-posts-wrapper,
  body.search .nv-posts-wrapper,
  body.blog .posts-wrapper,
  body.archive .posts-wrapper,
  body.search .posts-wrapper,
  body.blog .nv-index-posts,
  body.archive .nv-index-posts,
  body.search .nv-index-posts {
    grid-template-columns: 1fr;
  }
}
/* Fjern Neve + WordPress credit */
.site-info,
.footer-content-wrap .builder-item--footer_copyright,
.footer-bottom .builder-item {
  display: none !important;
}