/* BASSTIL */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #0b0b0b;
  color: #fff;
  overflow-x: hidden;
}

#background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* HEADER */
.main-header {
  display: flex;
  justify-content: space-between; /* logga+nav till vänster, login till höger */
  align-items: center;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,175,55,0.4);
  padding: 1rem 3rem;
  box-shadow: 0 0 20px rgba(212,175,55,0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Container för logga + navigation */
.header-left {
  display: flex;
  align-items: center;
  gap: 2rem; /* avstånd mellan logga och navigation */
}

/* Logga */
.team-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s, transform 0.25s;
  white-space: nowrap; /* hindrar knappar att brytas på desktop */
}

.main-nav a:hover {
  color: #ffea8a;
  transform: translateY(-2px);
}

.main-nav a.active {
  border-bottom: 2px solid #d4af37;
  padding-bottom: 2px;
}

/* ===== SEKTIONER ===== */
.page-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 2rem;
  text-align: center;
  color: #eee;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Visa endast aktiv sektion */
.page-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===== SOCIALA LÄNKAR ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* så länkar bryts på smal skärm */
}

.social-links a {
  color: #d4af37;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
  color: #ffea8a;
  transform: translateY(-2px);
}



/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}


.logo h1 {
  margin: 0;
  font-size: 1.6rem;
}

/* Guldtext */
.gold-text {
  font-weight: 800;
  font-size: 2.5rem;
  background: linear-gradient(
    135deg,
    #7a5c00 0%,
    #d4af37 20%,
    #fff6d0 40%,
    #d4af37 60%,
    #b8860b 80%,
    #ffcc00 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(255,215,0,0.5), 0 0 10px rgba(255,223,0,0.3);
  margin-bottom: 3rem;
}

/* LOGIN I HEADERN */
.nav-login {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* litet avstånd mellan ikon och fält */
}

/* Info-ikon utanför input-rutan */
.input-info {
  position: relative;
  display: flex;
  align-items: center;
}

.info-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s;
}

.info-icon:hover {
  color: rgba(212, 175, 55, 0.8);
}

.tooltip-text {
  visibility: hidden;
  width: 180px;
  background-color: rgba(0,0,0,0.85); /* mörk bakgrund */
  color: #fff;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  position: absolute;
  left: 50%;
  top: 125%; /* placerar nedanför ikonen */
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.8rem;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Visa tooltip vid hover */
.input-info:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Pil över tooltipen */
.tooltip-text::after {
  content: '';
  position: absolute;
  top: -5px; /* placera pilen ovanför tooltipen */
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,0.85) transparent; /* pil pekar uppåt mot ikonen */
}


/* Email container */
.email-container.always-visible {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 30px;
  padding: 0.2rem 0.4rem;
  flex-shrink: 0;
}

.email-container input {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  outline: none;
  width: 180px;
}

.arrow-btn {
  background: transparent;
  border: none;
  color: #d4af37;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.arrow-btn:hover {
  color: #ffea8a;
}

/* Info-ikon & tooltip */
.input-info {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0.1rem; /* lite avstånd till inputfältet */
}

.info-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4); /* subtil grå */
  cursor: pointer;
  transition: color 0.2s;
}

.info-icon:hover {
  color: rgba(212, 175, 55, 0.8);
}




/* Förutsätter att inputfältets förälder är position: relative */
.input-wrapper {
  position: relative; /* container för input och felmeddelande */
}

/* Felmeddelande utan triangel */
.error-message {
  position: absolute;
  right: 100%;          /* högra kanten på meddelandet mot inputfältets vänstra kant */
  top: 50%;
   transform: translateY(-50%) translateX(-40px); /* flytta meddelandet 10px åt vänster */
  background: rgba(212, 175, 55, 0.95);
  color: #0b0b0b;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Visa felmeddelande */
.error-message.show {
  opacity: 1;
}

/* HERO */
.hero {
  text-align: center;
  padding: 10rem 1rem;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: #c9c9c9;
  font-size: 1.1rem;
}

footer {
  position: fixed; /* eller fixed om du vill att den alltid syns */
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 2rem 0;


  color: #777;   /* textfärg */
  font-size: 0.8rem;
  z-index: 10;   /* så den ligger ovanför annat innehåll */
}


/* TOAST */
.toast-message {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(212,175,55,0.95);
  color: #0b0b0b;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-10px);
  z-index: 50;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Teaser-kort för exklusivt innehåll */
.info-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}

.info-card {
  background: rgba(10,10,10,0.6); /* mörkt semi-transparent */
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  width: 220px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(8px);
}

.info-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(255,255,255,0.05), rgba(212,175,55,0.15));
  transform: rotate(25deg);
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(212,175,55,0.25);
  background: rgba(15,15,15,0.7);
}

.info-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #d4af37; /* guld */
}

.info-card p {
  font-size: 0.9rem;
  color: #c9c9c9;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* Ikon i kortet */
.card-icon {
  width: 40px;
  height: 40px;
  color: #d4af37;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.info-card:hover .card-icon {
  transform: scale(1.2) rotate(10deg);
  color: #ffea8a;
}

/* ===== PAGE SECTION VISIBILITY ===== */
.page-section {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 1;
}

.page-section.active {
  display: block;
  opacity: 1;
}

/* ===== MENU ACTIVE STATE ===== */
.main-nav a.active {
  border-bottom: 2px solid #d4af37;
  color: #ffea8a;
}

/* Valfri: fade effekt när man byter sektion */
.page-section.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  margin: 3rem 0;
}

.timeline-line {
  position: absolute;
  top: 7px; /* sätter linjen på samma höjd som prickarna */
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(212, 175, 55, 0.3);
  z-index: 0;
}

.timeline-item {
  position: relative;
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: #d4af37;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  position: relative;
  top: 0; /* sätter prickarna exakt på linjen */
}

.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
}


.instagram-widget {
  margin-top: 1.5rem; /* luft under ikonen */
  width: 100%;
  display: flex;
  justify-content: center;
}

.instagram-widget iframe {
  width: 100%;              /* gör widgeten responsiv */
  max-width: 500px;         /* maxbredd */
  height: 500px;            /* justera efter behov */
  border: none;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: none;
}

/* Instagram-ikon (Lucide) i guldstil */
#sociala {
  text-align: center;
}

#sociala .icon-container {
  margin: 1rem 0; /* lite luft mellan rubrik och widget */
}

/* Centrera och skapa vertikal struktur */
#sociala {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Justera mellanrum mellan elementen */
#sociala h2 {
  margin-bottom: 1.5rem; /* avstånd mellan text och ikon */
}

#sociala a {
  margin: 1.5rem 0; /* lika mycket luft ovanför och under */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #d4af37;
  transition: all 0.3s ease;
  text-decoration: none;
}

#sociala a:hover {
  color: #ffea8a;
  transform: scale(1.15);
}

@media (max-width: 768px) {

  /* ===== HEADER ===== */
  .main-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(10,10,10,0.9);
    border-bottom: 1px solid rgba(212,175,55,0.4);
  }

  /* Dölj loggan på mobil */
  .team-logo {
    display: none;
  }

  .header-left {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }
/* ===== MENY ===== */
.main-nav {
  width: 100%;
  display: flex;
  justify-content: center; /* centrerar hela nav */
}

.main-nav ul {
  display: flex;
  justify-content: space-between; /* jämnt avstånd mellan knapparna */
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 200px; /* begränsa navens bredd */
  gap: 20px; /* extra utrymme om det behövs */
}

.main-nav li {
  flex: 0 1 auto; /* låter knapparna växa vid behov men inte krympa för mycket */
  text-align: center;
}

/* Om du vill ha fasta storlekar på första och sista */
.main-nav li:first-child,
.main-nav li:last-child {
  width: 60px; /* justera efter design */
}

/* Stil för länkarna */
.main-nav a {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  display: block;
}

/* Länkarna */
.main-nav a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 500;
  color: #d4af37;
  text-decoration: none;
  padding: 0.5rem 0.4rem;
  border-radius: 0;
  transition: none;
}

/* Ingen hovereffekt */
.main-nav a:hover,
.main-nav a.active {
  color: #d4af37;
}


  /* ===== LOGIN ===== */
  .nav-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .input-info {
    display: none;
  }

  .email-container.always-visible {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: auto;
  }

  .email-container input {
    width: 180px;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
  }

  .arrow-btn {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
  }

  /* ===== RESTEN ===== */
  .page-section {
    margin: 3rem 1rem;
    padding: 1rem;
  }

  .info-cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .info-card {
    width: 90%;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-line {
    display: none;
  }

  #sociala a {
    font-size: 40px;
    margin: 1rem 0;
  }

  .instagram-widget iframe {
    height: 400px;
    max-width: 100%;
  }

  footer {
    padding: 1rem 0.5rem;
    font-size: 0.7rem;
  }

  /* ===== RUBRIKER ===== */
  h2,
  .gold-text {
    font-size: clamp(1.5rem, 6vw, 2rem);
    word-wrap: break-word;
    text-align: center;
    max-width: 90%;
    margin: 0 auto 1rem auto;
    line-height: 1.2;
  }

  .hero-content h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0 1rem;
  }
}
