/* =========================================================
   SlotsdudesSE – Global Styles
   ========================================================= */

/* -------- CSS Reset -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
               sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* -------- Utilities -------- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Tablet */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .container {
    max-width: 1040px;
  }
}

a {
  color: #5a2ca0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* -------- Main -------- */
.site-main {
  width: 100%;
}

.site-main {
  padding: 2rem 0;
}

/* -------- Intro -------- */
.news-intro h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.news-intro p {
  max-width: 720px;
  color: #444;
}

* -------- News List -------- */
.news-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center; /* Centrerar grid-innehållet */
}

/* Mobil: full bredd */
@media (max-width: 767px) {
  .news-list {
    grid-template-columns: 1fr;
  }
}

/* Tablet & Desktop: centrerade kort med kontrollerad bredd */
@media (min-width: 768px) {
  .news-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  }
}

.news-card {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.25rem;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease;
}

.news-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.news-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Badge colors */
.badge-news {
  background-color: #e8def8;
  color: #5a2ca0;
}

.badge-analysis {
  background-color: #dff1ec;
  color: #166534;
}

.badge-industry {
  background-color: #e0e7ff;
  color: #3730a3;
}

.badge-default {
  background-color: #f0f0f0;
  color: #555;
}

.news-title {
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.news-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.news-title a:hover {
  color: #5a2ca0;
}

.news-date {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.news-snippet {
  font-size: 0.95rem;
  color: #444;
}

/* -------- About Section -------- */
.about-slotsdudes {
  border-top: 1px solid #e5e5e5;
  margin-top: 3rem;
  padding-top: 2rem;
}

.about-slotsdudes h2 {
  margin-bottom: 1rem;
}

.about-slotsdudes p {
  max-width: 760px;
  margin-bottom: 1rem;
  color: #444;
}

/* -------- Footer -------- */
.site-footer {
  border-top: 1px solid #e5e5e5;
  background-color: #fafafa;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-column p {
  font-size: 0.9rem;
  color: #444;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* -------- Cookie Banner -------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 1rem 0;
  z-index: 9999;
}

.cookie-banner,
.cookie-banner * {
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  max-width: 700px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.cookie-accept {
  background-color: #5a2ca0;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-accept:hover {
  background-color: #4a2388;
}

.cookie-link {
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: underline;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .navbar-nav {
    gap: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Article Styles
   ========================================================= */

.news-article {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #5a2ca0;
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
}

.article-meta {
  font-size: 0.9rem;
  color: #666;
}

.article-intro {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #333;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: #333;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.85rem;
  color: #666;
}

/* -------- Responsive Article -------- */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.6rem;
  }
}

/* =========================================================
   Article TOC
   ========================================================= */

.article-toc {
  border: 1px solid #e5e5e5;
  background-color: #fafafa;
  padding: 1rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.article-toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc li {
  margin-bottom: 0.4rem;
}

.article-toc a {
  color: #5a2ca0;
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}


.featured-article .featured {
  border: 2px solid #5a2ca0;
  padding: 1.25rem;
}

.featured-article h2,
.latest-analyses h2 {
  margin-bottom: 1rem;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.related-articles h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: 0.4rem;
}

.related-articles a {
  color: #1a1a1a;
}

.related-articles a:hover {
  color: #5a2ca0;
  text-decoration: underline;
}

.category-cta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}


/* -------- Breadcrumbs -------- */
.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumbs li {
  color: #666;
}

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumbs a {
  color: #555;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #5a2ca0;
  text-decoration: underline;
}


.site-header {
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand a {
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
}

.brand-dot {
  color: #660066;
}

.navbar-nav {
  display: flex;
  flex-direction: row;  
  align-items: center;
  gap: 1.25rem;
}

.navbar-nav .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: #ffffff;
}


@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}