/* agenda.css - 2026 Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-dark: #0a0f16;
  --glass-bg: rgba(20, 25, 35, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-cyan: #00f0ff;
  --accent-purple: #8a2be2;
  --text-main: #f0f4f8;
  --text-muted: #a0aab5;
}



body {
  animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  background-color: transparent !important;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-fade-out {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

html {
  background-color: var(--bg-dark);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 50vw;
  height: 50vw;
  min-width: 400px;
  min-height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: floatGlow 25s infinite alternate ease-in-out;
  opacity: 0.4;
  pointer-events: none;
}

body::before {
  background: #0574b0;
  top: -15vw;
  left: -20vw;
  animation-delay: 0s;
}

body::after {
  background: #0574b0;
  bottom: -20vw;
  right: -15vw;
  animation-delay: -12s;
  animation-duration: 30s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(15vw, 5vw) scale(1.1);
  }

  66% {
    transform: translate(-5vw, 15vw) scale(0.9);
  }

  100% {
    transform: translate(10vw, -10vw) scale(1);
  }
}

#app-content {
  width: 100%;
}

.container {
  max-width: 100%;
  width: 90%;
  margin: 20px auto 100px auto;
  padding-bottom: 80px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

.image-section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.header-image {
  width: 100%;
  height: 40vw;
  max-height: 400px;
  background-image: url('https://www.rt99.se/img/header1.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(1.2);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.image-section img {
  width: 120px;
  height: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
}

@media (max-width: 768px) {
  .image-section img {
    width: 80px;
  }
}

.title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  font-size: 16px;
  line-height: 1.8;
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.content.visible {
  opacity: 1;
  transform: translateY(0);
}

.content[contenteditable="true"] {
  border-color: var(--accent-cyan);
  outline: none;
  background: rgba(40, 50, 70, 0.6);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    margin: 0 auto 100px auto;
  }

  .content {
    padding: 20px;
    border-radius: 0;
    border-right: none;
    margin-bottom: 130px;
  }

  .admin-button.popup-visible {
    bottom: 100px;
  }

  .bottom-nav {
    bottom: 20px;
    padding: 10px 15px;
    gap: 15px;
  }
}

.admin-button {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
  z-index: 1001;
  display: inline-block !important;
}

.admin-button.popup-visible {
  opacity: 1;
  visibility: visible;
}

.admin-button:hover {
  transform: translateX(-50%) translateY(-3px);
  background: rgba(30, 40, 55, 0.6);
  color: var(--text-main);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.2);
}


.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 30px;
  height: 30px;
}

.bottom-nav .nav-item i {
  font-size: 20px;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav .nav-item span {
  font-size: 13px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateX(-15px) scale(0.9);
}

.bottom-nav .nav-item[aria-current="page"] {
  color: var(--accent-cyan);
}

.bottom-nav .nav-item[aria-current="page"] i {
  font-size: 16px;
  transform: translateY(0);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.bottom-nav .nav-item[aria-current="page"] span {
  opacity: 1;
  max-width: 100px;
  margin-left: 8px;
  transform: translateX(0) scale(1);
}

.bottom-nav .nav-item:not([aria-current="page"]):hover {
  color: var(--accent-cyan);
}

.bottom-nav .nav-item:not([aria-current="page"]):hover i {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
  transform: scale(1.15);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent-cyan: #0071ae;
    --accent-purple: #5c1bbd;
    --text-main: #1a202c;
    --text-muted: #4a5568;
  }

  body::before,
  body::after {
    opacity: 0.15;
  }

  .header-image {
    filter: brightness(0.9) saturate(1.1);
  }

  .title,
  .section-title {
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(0, 113, 174, 0.2);
  }

  .content[contenteditable="true"] {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 113, 174, 0.1);
  }
}