/* === ELONVISION STYLE === */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: #e0e0e0;
  background: rgb(12, 12, 12);
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem 1.2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header h1 a {
  color: #fff;
  text-decoration: none;
}

nav {
  margin-top: 1rem;
}

nav a {
  margin: 0 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: rgb(29, 161, 242);
}

main {
  margin-bottom: 5rem;
  padding-top: 20px;
}

h1, h2, h3 {
  margin: 1.5rem 0 1rem;
  line-height: 1.3;
  color: #f5f6f9;
}

h1 { 
  font-size: 2.75rem;
  letter-spacing: -.1rem;
  line-height: 3rem;
  margin: 1.5rem 0 .5rem;
}

h2 { 
    font-size: 2rem;
    line-height: 2.25rem;
    color: #f5f6f9;
    margin: 3.5rem 0 .65rem 0;
}

article p {
  line-height: 1.9rem;
  font-size: 1.2rem;
  color: #b5b6ba;
  margin: 0rem 0 1.75rem 0;
}

article p a {
    color: rgb(29, 161, 242);
    text-decoration: none;
    font-weight: 500;
}

article p a:hover {
    text-decoration: underline;
}

h6 {
    font-size: 2.25rem;
    line-height: 2.7rem;
    font-weight: 400;
    color: #d3d4d7;
    font-family: "Instrument Serif", serif;
    margin-bottom: 4rem;
}

.article-meta {
    font-size: 1rem;
    color: #7D8187;
    margin: 0rem 0 .5rem 0;
}

.post-hero img {
    max-width: 100%;
    margin: .5rem 0 1rem 0;
}

p img {
    max-width: 100%;
    margin: 1rem 0 0 0;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
  position: relative;
}

ul li::before {
  content: "→";
  color: #4da6ff;
  font-weight: bold;
  position: absolute;
  left: 0;
}

footer {
  text-align: center;
  color: #7D8187;
  opacity: .4;
  font-size: .9rem;
  margin-top: 7rem;
  padding-top: 1.5rem;
}

/* Ezoic placeholders */
[data-ezplaceholder] {
  background: #222;
  border: 2px dashed #444;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #888;
  font-style: italic;
  margin: 2rem 0;
}

/* Sticky Logo (vänster) */
.sticky-logo {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 9999;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s;
}

.sticky-logo:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}

.logo-size {
    height: 56px;
    cursor: pointer;
}

/* STICKY X-KNAPP MED SVG-IKON */
.sticky-x {
  position: fixed;
  height: 56px;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid #3d3d3d;
  color: #fff;
  padding: 0px 20px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  z-index: 9999;
}

.sticky-x:hover {
  background: #1da1f2;
  transform: scale(1.02);
  box-shadow: none;
  border: 1px solid #48b9ff;

}

.sticky-x-text {
  order: 1;
}

.sticky-x-icon {
  order: 2;
  width: 24px;
  height: 24px;
}

/* POST PREVIEW */
.post-preview {
  display: block;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 24px;
}


/* HELA POST-PREVIEW KLICKBAR */
.post-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: 0.15s ease;
  border: 1px solid rgb(43, 43, 43);
  margin-bottom: 32px;
  background-color: #121212;
}

.post-preview-link:hover {
  border: 1px solid rgb(68, 68, 68);
  background-color: #171717;
}

.post-preview-link .post-preview {
  pointer-events: none; /* Låt a-taggen hantera klick */
}

/* Ta bort hover på bild (nu hela kortet hover) */
.post-image img {
  transition: none;
}
.post-image img:hover {
  transform: none;
}

/* Hover på titel (valfritt – behåll eller ta bort) */
.post-preview-link:hover h2 {
  color: #FFF;
}

.post-image {
  flex: 0 0 300px;
  height: 280px;
  overflow: hidden;
  margin-bottom: 8px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-image img:hover {
  transform: scale(1.05);
}

.post-content {
  flex: 1;
}

.post-meta {
  font-size: 1rem;
  color: #7D8187;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 3px;
  align-items: center;
  text-transform: uppercase;
}

.category {
  color: #7D8187;
  text-transform: none;
}

.post-content h2 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  letter-spacing: -.075rem;
  line-height: 2.2rem;
}

.post-content h2 a {
  color: #FFF;
  text-decoration: none;
  transition: 0.2s;
}

.post-content h2 a:hover {
    opacity: .7;
}

.preview {
  color: #f0f0f0;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6rem;
}

.mobile-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: none; /* Dold som standard */
}



/* Responsiv – mobil */
@media (max-width: 600px) {
  body { padding: 5.5rem 1rem 1rem; }
  header h1 { font-size: 2rem; }

  h1 {
    font-size: 2rem;
    letter-spacing: -.1rem;
    line-height: 2.3rem;
    margin: 0rem 0 .25rem;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 2rem;
    margin: 1.75rem 0 -.2rem;
  }

  h6 {
    font-size: 2rem;
    line-height: 2.25rem;
    margin-bottom: 2.5rem;
    }

  p img {
    margin: 1rem 0 0rem 0;
  }

  article p {
    margin: .8rem 0 2rem 0;
  }

  .article-meta {
    font-size: .9rem;
    margin: .3rem 0 .25rem 0;
  }

    footer {
    font-size: .8rem;
    margin-top: 3rem;
   }
  
  .post-preview {
    flex-direction: column;
    padding: 1.25rem;
  }
  .post-preview-link {
    margin-bottom: 20px;
  }
  .post-image {
    flex: none;
    height: 150px;
  }
  .post-content h2 {
    font-size: 1.75rem;
    line-height: 2rem;
  }
  .preview {
    font-size: .9rem;
    line-height: 1.45rem;
  }
  .post-meta {
    font-size: .9rem;
    margin-bottom: .5rem;
  }
  main { 
    padding: 0rem; margin: 4px; 
  }
  .sticky-logo { 
    top: 13px;
    left: 12px;
    z-index: 9999; 
  }
  .logo-size {
    height: 44px;
  }
  .sticky-x {
    top: 13px;
    right: 12px;
    padding: 8px 16px;
    font-size: 0.8rem;
    height: 44px;
    gap: 10px;
    z-index: 9999;
  }
  .sticky-x-icon {
    width: 18px;
    height: 18px;
  }
  .mobile-top-bar {
    display: flex;
  }
}