/*
 Theme Name: Nyhetsbyrån
 Theme URI: https://nyhetsbyran.se
 Author: Vilgot Hansson
 Description: Ett elegant och exklusivt tema för Nyhetsbyrån.
 Version: 1.0
 Text Domain: nyhetsbyran
*/

:root {
  --color-bg: #f9f9f9;
  --color-text: #333333;
  --color-accent: #b89773;
  --color-muted: #777777;
}

/* ========================================
   GRUNDINSTÄLLNINGAR
======================================== */
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, .futura-heading {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #a57d5d;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   CENTER-BLOCK
======================================== */
.center-block {
  background-color: #fff;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

/* ========================================
   HEADER & SÖK-OVERLAY
======================================== */
.site-header {
  background-color: #fff;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-muted);
}
.site-header img,
.site-header h1 {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}
.search-icon {
  cursor: pointer;
  font-size: 1.4rem;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

/* Search-overlay */
#search-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#search-overlay.active {
  display: flex;
}
.search-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.search-box h2 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
}
.search-box input[type="search"] {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  font-size: 1rem;
}
.search-box input[type="submit"] {
  padding: 10px 20px;
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
}
.close-overlay {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
}

/* ========================================
   ADAKTUELLT
======================================== */
/* Bannerannons */
.banner-ad {
  max-width: 1200px;
  margin: 20px auto;
  text-align: center;
}

/* ========================================
   NAV (MOBIL)
======================================== */
.site-nav {
  background-color: #fff;
  text-align: center;
  padding: 10px;
}
.site-nav .menu { display: none; }
.site-nav.active .menu { display: block; }

/* ========================================
   KORT & GRID
======================================== */
article, .grid-item, .special-article {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
article:hover, .grid-item:hover, .special-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Resten av dina layout–sektioner kan behålla sina ursprungliga regler, men med nya variabler för färger och typsnitt */