.test-chamber-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-image:
    linear-gradient(rgba(58, 58, 58, 0.6) 2px, transparent 2px),
    linear-gradient(90deg, rgba(58, 58, 58, 0.6) 2px, transparent 2px),
    radial-gradient(
      ellipse 80% 20% at 50% 100%,
      rgba(200, 220, 255, 0.25) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, #6a6d75 0%, #7a7d85 50%, #3f4146 100%);
  background-size:
    150px 200px,
    150px 200px,
    100% 100%,
    100% 100%;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0;

  &::before {
    content: "TEST 06";
    position: absolute;
    top: 55%;
    right: 8%;
    transform: translateY(-50%);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;

    @include media-up(md) {
      font-size: 7rem;
    }
  }

  &::after {
    position: absolute;
    z-index: 12;
    top: -180px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(
      ellipse 60% 70% at 40% 45%,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.4) 30%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.15) 70%,
      transparent 100%
    );
    content: " ";
    filter: blur(8px);
  }
}

.resources-page,
.resouce-single {
  min-height: 100vh;
  padding: 2rem 1rem;
}

// Resources Whiteboard Page
.resources-page {
  @include media-up(md) {
    padding: 3rem 2rem;
  }
}

.resources-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

// Portal Header with portals on either side
.portal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;

  .portal-title {
    font-size: 2.5rem;
    font-family: Verdana, "Trebuchet MS", Tahoma, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-shadow:
      0 0 20px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 255, 255, 0.4),
      0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    margin-top: 50px;
    position: relative;
    z-index: 2;

    @include media-up(md) {
      font-size: 4rem;
      margin-top: 0;
    }
  }

  .portal-icon {
    width: 100px;
    height: 160px;
    position: relative;
    overflow: visible;
    z-index: 1;

    // Portal ring (the colored edge)
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 8px solid;
      z-index: -1;
      animation: portal-pulse 2s ease-in-out infinite;
    }

    // Black center void
    &::after {
      content: "";
      position: absolute;
      inset: 16px;
      border-radius: 50%;
      background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 60%,
        rgba(0, 0, 0, 0.6) 100%
      );
      z-index: 1;
    }

    &.blue-portal {
      left: 100px;

      &::before {
        border-color: #0096ff;
        box-shadow:
          0 0 30px 8px rgba(0, 150, 255, 0.8),
          0 0 60px 12px rgba(0, 150, 255, 0.5),
          inset 0 0 30px rgba(0, 150, 255, 0.6);
      }

      &::after {
        box-shadow:
          inset 0 0 40px rgba(0, 150, 255, 0.3),
          inset 0 0 20px rgba(0, 150, 255, 0.5);
      }
    }

    &.orange-portal {
      left: -100px;
      &::before {
        border-color: #ff7800;
        box-shadow:
          0 0 30px 8px rgba(255, 120, 0, 0.8),
          0 0 60px 12px rgba(255, 120, 0, 0.5),
          inset 0 0 30px rgba(255, 120, 0, 0.6);
      }

      &::after {
        box-shadow:
          inset 0 0 40px rgba(255, 120, 0, 0.3),
          inset 0 0 20px rgba(255, 120, 0, 0.5);
      }
    }
  }
}

.background-cube {
  width: 300px;
  position: fixed;
  left: 5%;
  bottom: 5%;
  width: 150px;
  z-index: 1;

  .heart-icon {
    font-size: 2em;
  }
}

@keyframes portal-pulse {
  0%,
  100% {
    transform: scaleX(0.75) scaleY(0.85);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.8) scaleY(0.9);
    opacity: 0.9;
  }
}

@keyframes portal-ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

@keyframes cube-float {
  0%,
  100% {
    transform: rotateX(15deg) rotateY(-15deg) translateY(0);
  }
  50% {
    transform: rotateX(15deg) rotateY(-15deg) translateY(-10px);
  }
}

@keyframes portal-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes portal-vortex {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.portal-sign {
  position: relative;
  padding: 3rem 2rem;
  z-index: 10;

  border: 10px solid black;
  background: white;

  max-width: 900px;
  margin: auto;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 0, 0, 0.6);

  @include media-up(md) {
    padding: 4rem 3rem;
  }

  .portal-sign-decor {
    border-top: 10px solid black;
    border-bottom: 10px solid black;
    margin-left: 6rem;
    position: relative;

    @include media-down(lg) {
      margin-left: auto;
    }

    .portal-sign-text {
      p {
        margin-bottom: 1rem;
      }

      font-family: "caveat", cursive;
      font-size: 1.5rem;
      position: absolute;
      text-align: right;
      right: 0;
      top: 50px;
      width: 50%;
      transform: rotate(10deg);

      @include media-down(md) {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        width: 100%;
        text-align: left;
        margin-top: 1em;
      }
    }

    .portal-sign-number {
      position: relative;
      font-family: "Barlow Condensed", sans-serif;
      font-size: 30rem;

      @include media-down(md) {
        display: none;
      }
    }

    .portal-sign-sub {
      font-family: "Barlow Condensed", sans-serif;
      font-size: 3rem;
      font-weight: bold;

      @include media-down(md) {
        display: none;
      }
    }
  }

  .portal-sign-lines {
    margin-left: 6rem;
    margin-top: 1rem;
    padding-bottom: 5rem;
    display: block;
    position: relative;
    border-bottom: 10px solid black;

    @include media-down(md) {
      display: none;
    }

    @include media-down(lg) {
      margin-left: auto;
    }

    &::before {
      content: "";
      height: 50px;
      width: 10px;
      background-color: black;
      display: block;

      /* repeat the line 5 more times */
      box-shadow:
        20px 0 0 black,
        40px 0 0 black,
        60px 0 0 black,
        80px 0 0 black,
        100px 0 0 black;
    }
  }

  .portal-sign-content {
    margin-left: 6rem;
    margin-top: 1rem;

    @include media-down(lg) {
      margin-left: auto;
    }
  }
}

.portal-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;

  h1 {
    font-size: 3rem;
    color: #0096ff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
  }
}

.portal-sign-items {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1em;

  @include media-down(md) {
    grid-template-columns: 1fr;
  }
}

.resource-pin a {
  color: #000;
}

.resource-card {
  padding: 2rem 1.5rem 1.5rem;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 3px solid;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .resource-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    text-align: center;
    font-family: "caveat", cursive;

    opacity: 0;

    &:hover {
      opacity: 1;
    }
  }
}

.resource-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  position: relative;

  // Lavalamp icon
  &.lavalamp {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 20%,
      #000 20%,
      #000 100%
    );
    border-radius: 10px 10px 40px 40px;
    border: 3px solid #000;
    position: relative;

    // Lamp base
    &::before {
      content: "";
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 70%;
      height: 12px;
      background: #1f2937;
      border-radius: 4px;
    }

    // Lava blobs
    &::after {
      content: "";
      position: absolute;
      top: 30%;
      left: 30%;
      width: 25px;
      height: 30px;
      background: #fff;
      border-radius: 50% 50% 40% 60%;
      animation: float-blob 4s ease-in-out infinite;
    }
  }

  &.button-generator {
    background: #000;
    height: 40%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    &::before,
    &::after {
      content: "";
      position: absolute;
      width: 90%;
      height: 30%;
      top: 15%;
      left: 5%;
      background: #fff;
      animation: button 2s ease-in-out infinite;
    }

    &::after {
      bottom: 15%;
      top: auto;
      left: 50%;
      transform: translateX(-50%);
      width: 50%;
      animation: button 1.2s ease-in-out infinite;
    }
  }

  // Last.fm stats icon
  &.lastfm-stats {
    background: black;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    // Equalizer bars
    &::before,
    &::after {
      content: "";
      position: absolute;
      bottom: 15px;
      width: 8px;
      background: #fff;
      border-radius: 2px;
    }

    &::before {
      left: 20px;
      height: 35px;
      animation: equalizer-1 3s ease-in-out infinite;
    }

    &::after {
      left: 35px;
      height: 25px;
      animation: equalizer-2 1s ease-in-out infinite 0.2s;
    }
  }

  // Adoptables icon - gift box style
  &.adoptables {
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    border: 3px solid #fff;

    // Ribbon vertical stripe
    &::before {
      content: "";
      position: absolute;
      top: -3px;
      bottom: -3px;
      left: 50%;
      transform: translateX(-50%);
      width: 20%;
      background: #fff;
    }

    // Bow on top
    &::after {
      content: "";
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 35px;
      height: 18px;
      background: #fff;
      border-radius: 50% 50% 0 0;
      box-shadow:
        -12px 0 0 #fff,
        12px 0 0 #fff;
      animation: bow-sparkle 3s ease-in-out infinite;
    }
  }
}

@keyframes float-blob {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.1);
  }
}

@keyframes button {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 0.95;
  }
}

@keyframes equalizer-1 {
  0%,
  100% {
    height: 35px;
  }
  50% {
    height: 20px;
  }
}

@keyframes equalizer-2 {
  0%,
  100% {
    height: 25px;
  }
  50% {
    height: 40px;
  }
}

@keyframes bow-sparkle {
  0%,
  100% {
    filter: brightness(1);
    transform: translateX(-50%) scale(1);
  }
  50% {
    filter: brightness(1.2);
    transform: translateX(-50%) scale(1.05);
  }
}

// Single Resource Page
.resource-single {
  margin: 0 auto;

  @include media-up(md) {
    padding: 3rem 2rem;
  }
}

.resource-content {
  max-width: 900px;
  margin: auto;
  background:
    linear-gradient(
        145deg,
        rgba(10, 20, 40, 0.95) 0%,
        rgba(15, 25, 45, 0.98) 100%
      )
      padding-box,
    linear-gradient(
        135deg,
        rgba(0, 150, 255, 0.5),
        rgba(255, 120, 0, 0.3),
        rgba(0, 150, 255, 0.5)
      )
      border-box;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 3rem 2rem;
  box-shadow:
    0 0 40px rgba(0, 150, 255, 0.2),
    0 0 80px rgba(255, 120, 0, 0.1),
    inset 0 0 100px rgba(0, 100, 200, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: visible;
  z-index: 10;

  @include media-down(md) {
    padding: 0;
    padding-bottom: 2rem;
  }

  // Subtle tech panel grid pattern
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
      linear-gradient(rgba(0, 150, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 150, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.3;
    border-radius: 8px;
  }

  // Corner accents (Aperture Science style)
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(
        circle at top left,
        rgba(0, 150, 255, 0.15) 0%,
        transparent 30%
      ),
      radial-gradient(
        circle at bottom right,
        rgba(255, 120, 0, 0.15) 0%,
        transparent 30%
      );
    pointer-events: none;
  }

  // Animated energy particles on border
  .energy-particles {
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;

    &::before,
    &::after {
      content: "";
      position: absolute;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      filter: blur(4px);
    }

    // Blue particle
    &::before {
      background: radial-gradient(
        circle,
        rgba(0, 150, 255, 0.8) 0%,
        transparent 70%
      );
      box-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
      animation: particle-travel-blue 8s linear infinite;
    }

    // Orange particle
    &::after {
      background: radial-gradient(
        circle,
        rgba(255, 120, 0, 0.8) 0%,
        transparent 70%
      );
      box-shadow: 0 0 15px rgba(255, 120, 0, 0.8);
      animation: particle-travel-orange 8s linear infinite 4s;
    }
  }

  @include media-up(md) {
    padding: 4rem 3rem;
  }
}

.resource-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid;
  border-image: linear-gradient(
      90deg,
      transparent,
      rgba(0, 150, 255, 0.6),
      rgba(255, 120, 0, 0.6),
      transparent
    )
    1;
  position: relative;
  z-index: 1;

  h1 {
    font-size: 2.5rem;
    color: rgba(240, 245, 250, 0.95);
    margin: 1rem 0;
    font-family: Verdana, "Trebuchet MS", Tahoma, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;

    // Blue line on the left
    &::before {
      content: "";
      position: absolute;
      left: -1rem;
      top: 50%;
      transform: translateY(-50%);
      width: 5px;
      height: 100%;
      background: linear-gradient(180deg, transparent, #0096ff, transparent);
    }

    // Orange line on the right
    &::after {
      content: "";
      position: absolute;
      right: -1rem;
      top: 50%;
      transform: translateY(-50%);
      width: 5px;
      height: 100%;
      background: linear-gradient(180deg, transparent, #ff7800, transparent);
    }

    @include media-down(md) {
      &::before,
      &::after {
        content: none;
      }
    }

    @include media-up(md) {
      font-size: 3rem;
    }
  }

  .lead {
    font-size: 1.25rem;
    color: rgba(150, 200, 255, 0.9);
    margin: 1rem 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
  }
}

.resource-body {
  color: rgba(200, 220, 255, 0.95);
  line-height: 1.8;
  font-size: 1.1rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  z-index: 1;

  h2 {
    color: #0096ff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
    border-bottom: 2px solid;
    border-image: linear-gradient(
        90deg,
        transparent,
        rgba(0, 150, 255, 0.5),
        transparent
      )
      1;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 70%;
      background: linear-gradient(
        180deg,
        rgba(0, 150, 255, 0.8),
        rgba(255, 120, 0, 0.6)
      );
      box-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
    }
  }

  h3 {
    color: rgba(255, 140, 50, 0.9);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-shadow: 0 0 10px rgba(255, 120, 0, 0.4);
  }

  p {
    margin-bottom: 1rem;
  }

  a {
    color: #0096ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 150, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;

    &:hover {
      color: #ff7800;
      border-bottom-color: rgba(255, 120, 0, 0.6);
      text-shadow: 0 0 8px rgba(0, 150, 255, 0.5);
    }
  }

  ul,
  ol {
    margin-bottom: 1rem;
    padding-left: 2rem;

    li {
      margin-bottom: 0.5rem;
      position: relative;

      &::marker {
        color: rgba(0, 150, 255, 0.6);
      }
    }
  }

  strong {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
  }

  hr {
    border: none;
    height: 2px;
    margin: 2rem 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 150, 255, 0.6),
      rgba(255, 120, 0, 0.6),
      transparent
    );
    position: relative;
  }

  code {
    background: rgba(0, 100, 180, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #66ccff;
    border: 1px solid rgba(0, 150, 255, 0.3);
    font-family: "Consolas", "Monaco", monospace;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.1);
  }

  pre {
    background: linear-gradient(
      145deg,
      rgba(5, 15, 30, 0.9) 0%,
      rgba(10, 20, 40, 0.95) 100%
    );
    color: #66ccff;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 150, 255, 0.3);
    box-shadow:
      inset 0 0 20px rgba(0, 100, 200, 0.1),
      0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(
        180deg,
        rgba(0, 150, 255, 0.6),
        rgba(255, 120, 0, 0.4)
      );
    }

    code {
      background: none;
      padding: 0;
      color: inherit;
      border: none;
      box-shadow: none;
    }
  }

  // Code copy button
  .code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(
      135deg,
      rgba(0, 100, 180, 0.3) 0%,
      rgba(0, 80, 150, 0.2) 100%
    );
    color: #66ccff;
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;

    svg {
      width: 14px;
      height: 14px;
      transition: transform 0.2s ease;
    }

    &:hover {
      background: linear-gradient(
        135deg,
        rgba(0, 120, 200, 0.4) 0%,
        rgba(255, 100, 0, 0.25) 100%
      );
      border-color: rgba(0, 150, 255, 0.7);
      box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
      color: #fff;
      transform: translateY(-1px);

      svg {
        transform: scale(1.1);
      }
    }

    &:active {
      transform: translateY(0);
    }

    &.copied {
      background: linear-gradient(
        135deg,
        rgba(0, 200, 150, 0.4) 0%,
        rgba(0, 150, 100, 0.3) 100%
      );
      border-color: rgba(0, 255, 180, 0.6);
      color: #66ffcc;

      svg {
        transform: scale(0.9);
      }
    }
  }
}

.resource-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid;
  border-image: linear-gradient(
      90deg,
      transparent,
      rgba(0, 150, 255, 0.4),
      rgba(255, 120, 0, 0.4),
      transparent
    )
    1;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;

  .nav-link {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(
      135deg,
      rgba(0, 100, 180, 0.2) 0%,
      rgba(0, 80, 150, 0.15) 100%
    );
    color: #66ccff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    border: 1px solid rgba(0, 150, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 150, 255, 0.2),
        transparent
      );
      transition: left 0.5s ease;
    }

    &:hover {
      background: linear-gradient(
        135deg,
        rgba(0, 120, 200, 0.3) 0%,
        rgba(255, 100, 0, 0.2) 100%
      );
      border-color: rgba(0, 150, 255, 0.7);
      box-shadow:
        0 0 20px rgba(0, 150, 255, 0.4),
        0 0 30px rgba(255, 120, 0, 0.2);
      color: #fff;
      text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
      transform: translateY(-2px);

      &::before {
        left: 100%;
      }
    }

    &.back {
      background: linear-gradient(
        135deg,
        rgba(255, 100, 0, 0.2) 0%,
        rgba(200, 80, 0, 0.15) 100%
      );
      border-color: rgba(255, 120, 0, 0.5);
      color: #ffaa66;

      &:hover {
        border-color: rgba(255, 120, 0, 0.8);
        box-shadow:
          0 0 20px rgba(255, 120, 0, 0.4),
          0 0 30px rgba(0, 150, 255, 0.2);
      }
    }

    &.prev,
    &.next {
      flex: 1;
      min-width: 150px;
    }
  }
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
  position: relative;
  z-index: 1;

  .tag {
    background: linear-gradient(
      135deg,
      rgba(0, 100, 180, 0.2) 0%,
      rgba(0, 80, 150, 0.1) 100%
    );
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(100, 200, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    border: 1px solid rgba(0, 150, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    position: relative;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 2px;
      height: 100%;
      background: linear-gradient(
        180deg,
        rgba(0, 150, 255, 0.6),
        rgba(255, 120, 0, 0.4)
      );
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    &:hover {
      background: linear-gradient(
        135deg,
        rgba(0, 120, 200, 0.3) 0%,
        rgba(255, 100, 0, 0.2) 100%
      );
      border-color: rgba(0, 150, 255, 0.6);
      color: #fff;
      box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
      transform: translateY(-1px);

      &::before {
        opacity: 1;
      }
    }
  }
}

// Contact section styling for resources
.contact-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 100, 180, 0.15) 0%,
    rgba(0, 80, 150, 0.1) 100%
  );
  border-radius: 6px;
  border: 1px solid rgba(0, 150, 255, 0.3);
  box-shadow:
    0 0 20px rgba(0, 150, 255, 0.1),
    inset 0 0 40px rgba(0, 100, 200, 0.05);
  position: relative;
  z-index: 1;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
      180deg,
      rgba(0, 150, 255, 0.7),
      rgba(255, 120, 0, 0.5)
    );
    border-radius: 6px 0 0 6px;
  }

  .contact-title {
    color: #0096ff;
    font-size: 1.8rem;
    font-family: Verdana, "Trebuchet MS", Tahoma, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
  }

  .contact-content {
    color: rgba(200, 220, 255, 0.95);

    p {
      margin-bottom: 1.5rem;
      line-height: 1.6;
    }

    a {
      color: #66ccff;
      text-decoration: none;
      border-bottom: 1px solid rgba(0, 150, 255, 0.3);
      transition: all 0.3s ease;
      font-family: "Consolas", "Monaco", monospace;

      &:hover {
        color: #ff7800;
        border-bottom-color: rgba(255, 120, 0, 0.6);
        text-shadow: 0 0 8px rgba(0, 150, 255, 0.5);
      }
    }
  }

  .contact-email,
  .contact-pgp {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    @include media-up(md) {
      flex-direction: row;
      align-items: center;
      gap: 1rem;
    }
  }

  .contact-label {
    font-weight: 600;
    color: rgba(100, 180, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .contact-email a {
    color: #66ccff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 150, 255, 0.3);
    transition: all 0.3s ease;
    font-family: "Consolas", "Monaco", monospace;

    &:hover {
      color: #ff7800;
      border-bottom-color: rgba(255, 120, 0, 0.6);
      text-shadow: 0 0 8px rgba(0, 150, 255, 0.5);
    }
  }

  .pgp-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .pgp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(
      135deg,
      rgba(0, 100, 180, 0.3) 0%,
      rgba(0, 80, 150, 0.2) 100%
    );
    color: #66ccff;
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;

    .button-icon {
      font-size: 1.1rem;
    }

    &:hover {
      background: linear-gradient(
        135deg,
        rgba(0, 120, 200, 0.4) 0%,
        rgba(255, 100, 0, 0.25) 100%
      );
      border-color: rgba(0, 150, 255, 0.7);
      box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
      color: #fff;
      transform: translateY(-1px);
    }

    &:active {
      transform: translateY(0);
    }
  }

  .copy-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;

    &.show {
      opacity: 1;
    }

    &.success {
      color: #66ffcc;
      text-shadow: 0 0 10px rgba(0, 255, 180, 0.6);
    }

    &.error {
      color: #ff9966;
      text-shadow: 0 0 10px rgba(255, 120, 0, 0.6);
    }
  }
}

// Last.fm Stats Interactive Form
#lastfm-stats-app {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(
    145deg,
    rgba(5, 15, 30, 0.9) 0%,
    rgba(10, 20, 40, 0.95) 100%
  );
  border-radius: 6px;
  border: 1px solid rgba(0, 150, 255, 0.4);
  box-shadow:
    0 0 30px rgba(0, 150, 255, 0.15),
    0 0 50px rgba(255, 120, 0, 0.08),
    inset 0 0 60px rgba(0, 100, 200, 0.05);
  position: relative;
  z-index: 1;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 150, 255, 0.6),
      rgba(255, 120, 0, 0.6),
      transparent
    );
  }
}

// Stats form styles are now in partials/form-controls.scss

.stats-results {
  position: relative;
  z-index: 1;

  .loading {
    text-align: center;
    padding: 2rem;
    color: #66ccff;
    font-size: 1.1rem;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    p {
      animation: pulse 1.5s ease-in-out infinite;
      text-shadow: 0 0 15px rgba(0, 150, 255, 0.6);
    }
  }

  #stats-content {
    h2 {
      color: #0096ff;
      margin-bottom: 1.5rem;
      font-size: 1.8rem;
      font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      text-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
      border-bottom: 2px solid;
      border-image: linear-gradient(
          90deg,
          transparent,
          rgba(0, 150, 255, 0.6),
          transparent
        )
        1;
      padding-bottom: 0.75rem;
    }
  }

  .stat-box {
    background: linear-gradient(
      135deg,
      rgba(0, 100, 180, 0.15) 0%,
      rgba(0, 80, 150, 0.1) 100%
    );
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 150, 255, 0.3);
    box-shadow:
      0 0 20px rgba(0, 150, 255, 0.1),
      inset 0 0 40px rgba(0, 100, 200, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 3px;
      height: 100%;
      background: linear-gradient(
        180deg,
        rgba(0, 150, 255, 0.7),
        rgba(255, 120, 0, 0.5)
      );
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    &:hover {
      background: linear-gradient(
        135deg,
        rgba(0, 120, 200, 0.25) 0%,
        rgba(255, 100, 0, 0.15) 100%
      );
      border-color: rgba(0, 150, 255, 0.5);
      box-shadow:
        0 0 30px rgba(0, 150, 255, 0.2),
        0 0 40px rgba(255, 120, 0, 0.1);

      &::before {
        opacity: 1;
      }
    }

    h3 {
      color: rgba(100, 180, 255, 0.8);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 0.75rem;
      font-weight: 600;
      font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      text-shadow: 0 0 8px rgba(0, 150, 255, 0.4);
    }

    .stat-number {
      font-size: 3rem;
      font-weight: 700;
      color: #66ccff;
      margin: 0;
      font-family: "DSEG7-Classic", "Segoe UI", monospace;
      text-shadow:
        0 0 20px rgba(0, 150, 255, 0.8),
        0 0 40px rgba(0, 150, 255, 0.4);
      letter-spacing: 0.08em;
      background: linear-gradient(135deg, #66ccff 0%, #0096ff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.5));
    }
  }

  .artist-list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      padding: 0.75rem 0;
      padding-left: 1rem;
      border-bottom: 1px solid rgba(0, 150, 255, 0.2);
      font-size: 1.05rem;
      color: rgba(200, 220, 255, 0.9);
      font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      position: relative;
      transition: all 0.3s ease;

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 60%;
        background: linear-gradient(
          180deg,
          rgba(0, 150, 255, 0.6),
          rgba(255, 120, 0, 0.4)
        );
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      &:hover {
        padding-left: 1.2rem;

        &::before {
          opacity: 1;
        }
      }

      &:last-child {
        border-bottom: none;
      }

      a {
        color: #66ccff;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 150, 255, 0.2);

        &:hover {
          color: #ff7800;
          border-bottom-color: rgba(255, 120, 0, 0.5);
          text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
        }
      }
    }
  }

  .export-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid;
    border-image: linear-gradient(
        90deg,
        transparent,
        rgba(0, 150, 255, 0.3),
        transparent
      )
      1;
    flex-wrap: wrap;

    @include media-up(md) {
      flex-wrap: nowrap;
    }

    .btn-export {
      flex: 1;
      padding: 0.75rem 1.5rem;
      background: linear-gradient(
        135deg,
        rgba(0, 100, 180, 0.2) 0%,
        rgba(0, 80, 150, 0.15) 100%
      );
      color: #66ccff;
      border: 1px solid rgba(0, 150, 255, 0.4);
      border-radius: 4px;
      font-size: 0.85rem;
      font-weight: 600;
      font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 150px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      position: relative;
      overflow: hidden;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(0, 150, 255, 0.2),
          transparent
        );
        transition: left 0.5s ease;
      }

      &:hover {
        background: linear-gradient(
          135deg,
          rgba(0, 120, 200, 0.3) 0%,
          rgba(255, 100, 0, 0.2) 100%
        );
        border-color: rgba(0, 150, 255, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
        color: #fff;
        text-shadow: 0 0 8px rgba(0, 150, 255, 0.5);

        &::before {
          left: 100%;
        }
      }

      &:active {
        transform: translateY(0);
        box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
      }

      &.copied {
        background: linear-gradient(
          135deg,
          rgba(0, 200, 150, 0.3) 0%,
          rgba(0, 150, 100, 0.2) 100%
        );
        border-color: rgba(0, 255, 180, 0.6);
        color: #66ffcc;
        text-shadow: 0 0 10px rgba(0, 255, 180, 0.6);
        box-shadow: 0 0 20px rgba(0, 255, 180, 0.3);
      }
    }
  }

  .error {
    background: linear-gradient(
      135deg,
      rgba(180, 50, 0, 0.2) 0%,
      rgba(150, 30, 0, 0.15) 100%
    );
    border: 1px solid rgba(255, 80, 0, 0.5);
    border-radius: 6px;
    padding: 1.5rem;
    color: #ff9966;
    text-align: center;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    box-shadow:
      0 0 20px rgba(255, 80, 0, 0.2),
      inset 0 0 40px rgba(255, 50, 0, 0.1);
    position: relative;

    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(
        180deg,
        rgba(255, 120, 0, 0.8),
        rgba(255, 80, 0, 0.6)
      );
    }

    p {
      margin: 0;
      font-weight: 500;
      text-shadow: 0 0 10px rgba(255, 120, 0, 0.5);
    }
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

// Energy particle animations - travel around the border
@keyframes particle-travel-blue {
  0% {
    top: -10px;
    left: 0;
  }
  25% {
    top: -10px;
    left: 100%;
  }
  50% {
    top: 100%;
    left: 100%;
  }
  75% {
    top: 100%;
    left: -10px;
  }
  100% {
    top: -10px;
    left: -10px;
  }
}

@keyframes particle-travel-orange {
  0% {
    top: -10px;
    left: 100%;
  }
  25% {
    top: 100%;
    left: 100%;
  }
  50% {
    top: 100%;
    left: -10px;
  }
  75% {
    top: -10px;
    left: -10px;
  }
  100% {
    top: -10px;
    left: 100%;
  }
}
