/* === BASE === */

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(198,169,106,0.06), transparent 34%),
    linear-gradient(180deg, #080a0d 0%, #0c0f13 100%);
  color: #e4e7eb;
}

:root {
  --accent: #c6a96a;
  --accent-soft: rgba(198,169,106,0.12);
  --accent-glow: rgba(198,169,106,0.18);
}


/* === HEADER === */
/*
.site-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2a2218;
  background:
    linear-gradient(180deg, rgba(10,12,15,0.92), rgba(10,12,15,0.96)),
    url("header.png");

  background-size: cover;
  background-position: center;
  min-height: 120px;
  padding: 0 16px;
}*/

.site-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2a2218;
  background:
    linear-gradient(180deg, rgba(10,12,15,0.18), rgba(10,12,15,0.28)),
    url("header.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0c0f;
  min-height: 220px;
  padding: 12px 16px;
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 30px;

  background: linear-gradient(
    180deg,
    rgba(198,169,106,0.15),
    transparent
  );

  pointer-events: none;
}

.header-left,
.header-right {
  width: 160px;
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.header-inner {
  flex: 1;
  text-align: center;
}


/* === NAV BACK === */

.back-home img {
  display: block;
  height: 30px;
  width: auto;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.back-home img:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.back-home,
.back-home:hover,
.back-home:focus,
.back-home:active,
.back-home:visited {
  text-decoration: none;
  border: none;
  outline: none;
  background: transparent;
}


/* === TYPOGRAPHY === */

h1, h2 {
  margin-top: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #e6dcc6;
  letter-spacing: 0.04em;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,169,106,0.35);
}

a:hover {
  color: #f2e6c8;
  border-bottom-color: #f2e6c8;
}

/*
.tagline {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #6f7782;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}*/

.tagline {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 0.75rem;
  color: #e6dcc6;
  /* color: #6f7782; */
  opacity: 0.7;
  letter-spacing: 0.32em;
  text-transform: uppercase;

  pointer-events: none; /* så den inte stör klick */
}


/* === LANGUAGE === */

.lang-switch button {
  margin-left: 6px;
  background: #14181d;
  color: #cfd6df;
  border: 1px solid #2c241b;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-switch button.active,
.lang-switch button:hover {
  background: #1e242b;
  color: #f2e6c8;
}


/* === TOP MENU === */

.top-menu {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  gap: 10px;
  padding: 12px 14px;
  /* background: linear-gradient(180deg, #101317 0%, #0c0f13 100%);*/

  border-bottom: 1px solid #2a2218;
}

.top-menu-item {
  border: 1px solid #2c241b;
  /* background: linear-gradient(180deg, #101317 0%, #090b0e 100%); */
  background: #000; /* helt svart */

  color: #cfd6df;
  padding: 8px 8px 10px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  min-height: 118px;
  transition: all 0.2s ease;
}

.top-menu-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(198,169,106,0.6);

  opacity: 0;
  transition: opacity 0.2s ease;
}

.top-menu-item:hover::after {
  opacity: 1;
}

.top-menu-item.sigma img {
  opacity: 0.68;
}

.top-menu-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-soft);
}

.top-menu-item.sigma:hover img {
  opacity: 0.85;
  transform: scale(1.03);
}

.top-menu-item.active {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(198,169,106,0.25),
    0 0 22px var(--accent-glow);
}

.top-menu-item.sigma .panel-visual {
  background-color: #07090c;

  /* lite värme */
  box-shadow:
    inset 0 0 18px rgba(198,169,106,0.08),
    inset 0 0 2px rgba(198,169,106,0.12);
}

.top-menu-item.disabled img {
  opacity: 0.25;
  filter: grayscale(40%) brightness(0.7);
}

.top-menu-item.disabled {
  box-shadow: none;
  border-color: rgba(198,169,106,0.15);
}

.top-menu-item.disabled::after {
  content: "UNPOWERED";
  position: absolute;
  bottom: 6px;
  right: 8px;

  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(198,169,106,0.35);
}


/* === PANEL === */

.panel-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #0b0e12;
  border: 1px solid #1f1a13;
  position: relative;
  overflow: hidden;
}

/* deco overlay */
.panel-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(198,169,106,0.10), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 40%);
}

/* subtle scanline */
.panel-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.panel-label {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  color: #f2e6c8;
  text-shadow:
    0 0 6px rgba(198,169,106,0.2),
    0 0 14px rgba(198,169,106,0.12);
}

.panel-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f8892;
}


/* === LAYOUT === */

.layout {
  display: flex;
}

aside {
  width: 240px;
  background: linear-gradient(180deg, #0f1318 0%, #0c0f13 100%);
  min-height: calc(100vh - 160px);
  border-right: 1px solid #2a2218;
}

.side-menu-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(44,36,27,0.5);
  color: #bfc6cf;
}

.side-menu-item:hover {
  background: var(--accent-soft);
}

.side-menu-item.active {
  background: linear-gradient(
    90deg,
    rgba(198,169,106,0.18) 0%,
    rgba(198,169,106,0.03) 100%
  );
  color: #f2e6c8;
}


/* === CONTENT === */

main {
  flex: 1;
  padding: 28px;
}

.text-block {
  max-width: 920px;
  margin-bottom: 24px;
  color: #d6dde5;
  line-height: 1.7;
  white-space: pre-line;
}

.meta-text {
  display: block;
  color: #88919b;
  font-size: 0.8rem;
  margin-top: 4px;
}

.placeholder-box {
  max-width: 920px;
  padding: 16px 18px;
  border: 1px solid #2c241b;
  background: linear-gradient(180deg, rgba(18,22,27,0.7), rgba(12,14,18,0.8));
  color: #8e97a3;
}


/* === IMAGES === */

.image-gallery {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.image-gallery img {
  max-width: 300px;
  width: 100%;
  border: 1px solid #1f1a13;
}

.image-block {
  margin: 28px 0;
}

.image-block img {
  width: 100%;
  border: 1px solid #1f1a13;
}

.image-full { max-width: 900px; }
.image-medium { max-width: 600px; }
.image-small { max-width: 360px; }
.image-tiny { max-width: 200px; }

.image-block figcaption {
  margin-top: 8px;
  color: #8e97a3;
  font-size: 0.9rem;
  font-style: italic;
}


/* === DIVIDER === */

hr {
  border: none;
  border-top: 1px solid #2a2218;
  margin: 24px 0;
  max-width: 920px;
}


/* === RESPONSIVE === */

@media (max-width: 1100px) {
  .top-menu {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .header-left,
  .header-right,
  .header-inner {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .layout {
    flex-direction: column;
  }

  aside {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #2a2218;
  }

  .top-menu {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

  main {
    padding: 20px;
  }
}

code {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(198,169,106,0.75);

  background: rgba(0,0,0,0.6);
  padding: 12px 14px;
  border: 1px solid rgba(198,169,106,0.2);

  line-height: 1.6;
  white-space: pre-wrap;
  
  text-shadow: 0 0 6px rgba(198,169,106,0.25);
  text-transform: uppercase;
}