/* ============================================================
   THEME: Neon Green / Urbanist  (overrides + unique components for style-03.css)
   Load AFTER style.css:
     <link rel="stylesheet" href="/assets/css/style.css">
     <link rel="stylesheet" href="/assets/css/style-03-theme.css">
   ============================================================ */
@layer root {
  :root {
    --primary-color: #45f882;
    --font-family-heading: "Urbanist", sans-serif;
    --font-family-body: "Inter", sans-serif;
    --white: #fff;
    --light-gray: #f2f2f2;
    --gray: #9ec4b4;
    --dark-gray: #131f18;
    --dark: #09151c;
    --border-radius: 2rem;
    --border: 1.5px solid #570000a2;
    /* Semantic role tokens used by shared components in style.css
     (only diverge from --primary-color where this theme has a richer palette) */
    --accent-purple: var(--primary-color);
    --accent-yellow: var(--primary-color);
    --accent-red: var(--primary-color);
    --accent-green: var(--primary-color);
    --hover-link-bg: var(--light-gray);
    --contact-form-bg: var(--white);
    /* Component tokens: only values that differ from the defaults in style.css */
    --page-bg: black;
    --h2-font-weight: 700;
    --scroll-group-gap: 50px;
    --slide-button-btn-bg: transparent;
    --slide-button-btn-border: 2px solid var(--dark-gray);
    --slide-button-btn-padding: 5px 12px;
    --more-like-this-bg: rgba(0, 0, 0, 0.5);
    --games-list-gap: 20px;
    --game-item-text-font-size: 12px;
    --game-item-text-line-height: 14px;
    --game-item-text-lines: 2;
    --filters-label-padding: 8px 20px 8px 15px;
    --hero-title-font-size: clamp(2rem, 5.5vw, 5rem);
  }
}

/* ============================================================
   @layer base — UNIQUE TO NEON GREEN / URBANIST (not shared across themes)
   ============================================================ */
@layer base {
  body {
    line-height: 1.4;
  }

  h1 {
    font-family: "Urbanist", sans-serif;
    font-size: 3rem;
    line-height: 0.9;
    font-weight: 700;

    @media (max-width: 1023px) {
      font-size: 2rem;
    }

    span {
      color: var(--primary-color);
    }
  }

  h2 {
    @media (max-width: 1023px) {
      font-size: 1.75rem;
    }

    span {
      color: var(--primary-color);
    }
  }

  h3 {
    @media (max-width: 1023px) {
      font-size: 1.5rem;
    }

    span {
      color: var(--primary-color);
    }
  }

  h4 {
    @media (max-width: 1023px) {
      font-size: 1.25rem;
    }
  }

  article {
    h2,
    h2 span {
      font-size: 2rem !important;
      margin: 30px 0 15px;
      font-weight: 600;

      span {
        color: var(--white) !important;
      }
    }

    h3,
    h3 span {
      font-size: 1.5rem !important;
      margin: 30px 0 15px;
      font-weight: 600;

      span {
        color: var(--white) !important;
      }
    }
  }

  footer {
    margin-top: 50px;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    }
  }
}

/* ============================================================
   @layer layout — UNIQUE TO NEON GREEN / URBANIST (not shared across themes)
   ============================================================ */
@layer layout {
  .w-100 {
    width: 100%;
  }

  .mobile-column {
    @media screen and (max-width: 991px) {
      flex-direction: column;
    }
  }

  .flex-75 {
    width: calc(70% - 100px);

    @media (min-width: 992px) and (max-width: 1199px) {
      width: calc(65% - 100px);
    }

    @media (max-width: 991px) {
      width: 100%;
    }
  }

  .flex-25 {
    width: 25%;

    @media (min-width: 992px) and (max-width: 1199px) {
      width: 35%;
    }

    @media (max-width: 991px) {
      width: 100%;
    }
  }
}

/* ============================================================
   @layer components — UNIQUE TO NEON GREEN / URBANIST (not shared across themes)
   ============================================================ */
@layer components {
  .btn {
    width: 100%;
  }

  .btn-icon {
    img {
      -webkit-filter: brightness(6);
      filter: brightness(6);
    }
  }

  .top-bar {
    ul.menu {
      li.menu-item {
        ul.dropdown {
          li a {
            @media (max-width: 767px) {
              color: var(--white);
            }
          }
        }
      }
    }
  }

  .page-content {
    z-index: 1;
    margin-top: 85px;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    }
  }

  .hero-home {
    padding-block: 50px 0;

    .hero-text {
      gap: 30px;

      @media (min-width: 768px) and (max-width: 1199px) {
        padding-bottom: 18%;
      }
    }
  }

  .scroll-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    margin-top: 100px;

    &::before {
      content: "";
      position: absolute;
      z-index: 2;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #000;
      background: -webkit-linear-gradient(
        90deg,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 0) 25%,
        rgba(0, 0, 0, 0) 75%,
        rgba(0, 0, 0, 1) 95%
      );
      background: -moz-linear-gradient(
        90deg,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 0) 25%,
        rgba(0, 0, 0, 0) 75%,
        rgba(0, 0, 0, 1) 95%
      );
      background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 0) 25%,
        rgba(0, 0, 0, 0) 75%,
        rgba(0, 0, 0, 1) 95%
      );
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
    }
  }

  .scroll-card {
    transition:
      transform 180ms ease,
      border-color 180ms ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .slider-controls .nav-btn {
    img {
      filter: brightness(6);
      -webkit-filter: brightness(6);
    }
  }

  .slide-button {
    .pic-container {
      img {
        @media screen and (max-width: 767px) {
          min-height: 150px;
          max-height: 150px;
        }
      }
    }
  }

  .hero-subpage {
    padding-block: 60px 0;

    .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 30px;

      @media (max-width: 767px) {
        gap: 30px;
      }

      .text-container {
        text-align: center;

        @media (max-width: 991px) {
          width: 100%;
          padding: 30px 0 0;
          max-width: none;
        }

        .label {
          border: none;
          background: none;
          font-size: 24px;
          font-style: normal;
          font-weight: 700;
          text-transform: uppercase;
          padding: 10px 0;
          margin: 0 auto;
        }

        h1 {
          text-transform: capitalize;
          font-weight: 600;

          @media (max-width: 767px) {
            font-size: 30px;
          }
        }

        p {
          color: var(--gray);
          margin-top: 10px;
          letter-spacing: 1px;
          font-weight: 500;
          font-size: 1.125rem;
          font-family: "Urbanist", sans-serif;
        }
      }

      .img-container {
        display: flex;
        gap: 20px;
        width: 100%;

        @media (max-width: 991px) {
          flex-direction: column;
          padding: 0;
        }

        .btnNone {
          width: 100%;
          background: none;
          border: 0px;
          outline: none;
          cursor: pointer;

          .img-box {
            height: 380px;
            border-radius: 20px;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
            padding: 20px;
            transition: transform 0.5s ease;

            &:hover {
              transform: scale(1.05);
            }

            @media (max-width: 767px) {
              height: 280px;
            }

            p {
              color: #fff;
              width: 100%;
              text-align: left;
              margin: 0;
              padding: 10px;
              font-size: 1.1rem;
            }
          }
        }
      }

      .label {
        display: flex;
        padding: 5px 20px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: var(--white);
        max-width: fit-content;
      }

      .btn {
        border: none;
        border-radius: 30px;
        background: var(--primary-color);
        color: var(--white);
        text-align: center;
        font-size: 24px;
        box-sizing: content-box;
        max-width: 170px;
        height: 40px;
        position: relative;
        padding: 6px 5px;
        text-align: center;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        justify-content: center;

        /* border: none;
        border-radius: 30px;
        background: var(--primary-color);
        color: var(--white);
        text-align: center;
        font-size: 24px;
        box-sizing: content-box;
        max-width: 170px;
        height: 40px;
        position: relative;
        padding: 6px 5px;
        text-align: center;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        justify-content: center; */
        img {
          position: absolute;
          top: 50%;
          right: 12px;
          width: 24px;
          height: 24px;
          display: block;
          transform: translateY(-50%);
        }
      }
    }
  }

  .contact-popup {
    @media (max-width: 991px) {
      gap: 50px;
    }
  }

  .single-app {
    @media (max-width: 991px) {
      flex-direction: column;
    }
  }

  .games-list a {
    h3 {
      color: var(--gray);
    }

    &:hover {
      h3 {
        color: var(--primary-color);
      }
    }

    &:hover {
      color: var(--dark);

      .icon-app {
        transform: scale(0.95);
      }
    }
  }

  .game-item .text {
    gap: 5px;

    .top-box {
      h3 {
        font-size: 16px;
        line-height: 20px;
        display: -webkit-box;
        /* -webkit-line-clamp: 1;
      /* number of rows */
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--white) !important;
      }
    }

    p {
      color: var(--white) !important;
    }
  }

  .article-list {
    .article-item {
      &:hover {
        color: var(--primary-color);
      }
    }
  }

  .filters {
    @media (max-width: 767px) {
      justify-content: center;
    }

    @media (min-width: 768px) {
      width: 100%;
    }

    label {
      background: 0 0;
      background: rgba(0, 0, 0, 0.1);

      span {
        color: var(--primary-color);
        margin-right: 6px;
      }
    }

    input[type="radio"]:checked + label,
    &.filters-play input[type="radio"]:checked + label {
      span {
        color: var(--white);
      }
    }

    a {
      transition: all 0.5s ease;

      &:hover {
        transform: scale(1.1);
      }
    }
  }

  .mySelection {
    .app-selection .small-text {
      color: var(--light-gray);
    }

    .app-description {
      gap: 3px;

      .btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
        border: 1px solid var(--dark-gray);
        border-radius: var(--border-radius);
        color: var(--primary-color);
        background: transparent;
      }
    }
  }

  .page-title {
    h1 {
      font-size: 2rem;
      font-weight: 600;
    }
  }

  #pixel-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: var(--border-radius);
      overflow: hidden;
      opacity: 0;
      animation: imageReveal 7s ease-in-out infinite;

      &:nth-child(1) {
        animation-delay: 0s;
      }

      &:nth-child(2) {
        animation-delay: 0.5s;
      }

      &:nth-child(3) {
        animation-delay: 1s;
      }

      &:nth-child(4) {
        animation-delay: 1.5s;
      }
    }
  }

  @keyframes imageReveal {
    0% {
      opacity: 0;
      transform: scale(1.03);
    }

    10% {
      opacity: 1;
      transform: scale(1);
    }

    /* Stay visible */
    70% {
      opacity: 1;
      transform: scale(1);
    }

    /* Fade out */
    80% {
      opacity: 0;
      transform: scale(1);
    }

    100% {
      opacity: 0;
      transform: scale(1.03);
    }
  }

  .scroll-track {
    @media screen and (max-width: 767px) {
      animation-duration: 22s;
    }

    @media (prefers-reduced-motion: reduce) {
      animation-play-state: paused;
    }
  }

  .banner-item {
    background: var(--dark-gray);
    padding: 30px 60px 50px;
    border-radius: var(--border-radius);

    img {
      margin-top: -50px;
    }

    h3 {
      font-size: 3rem;
      font-weight: 800;

      @media (max-width: 991px) {
        font-size: 2rem;
      }

      span {
        display: block;
      }
    }

    p {
      font-weight: 300;
      font-size: 1.25rem;
      color: var(--gray);
    }
  }
}

/* ============================================================
   @layer utilities — UNIQUE TO NEON GREEN / URBANIST (not shared across themes)
   ============================================================ */
@layer utilities {
  .label {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3rem;
    font-size: 0.8rem;
    padding: 5px 12px;

    span {
      line-height: 1;
      color: var(--primary-color);
      font-weight: 900;
      padding-right: 5px;
    }
  }
}
