@import url("https://fonts.googleapis.com/css2?family=Antic+Didone&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

/* Theme 03 — tokens and rules specific to this design. Loaded after style.css (same cascade layers). */

/* BASE – element defaults and design tokens */
@layer base {
  :root {
    --primary: #384631;
    --light: #fcfbfb;
    --light-gray: #ececec;
    --gray: #aaa69b;
    --dark-gray: #1e2025;
    --dark: #121212;
    --font-display: "Antic Didone", serif;
    --font-body: "Nunito", sans-serif;
  }

  body {
    background-color: var(--white);
  }

  h2 {
    font-weight: 600;
    text-transform: uppercase;
  }

  h3 {
    font-weight: 600;
  }
}

/* LAYOUT – containers, page skeleton, grids, header/footer shells */
@layer layout {
  .page-content {
    margin-top: 85px;
  }

  .top-bar {
    background: color-mix(in srgb, var(--gray) 90%, transparent);

    .lang {
      .lang-select {
        background: color-mix(in srgb, var(--gray) 80%, transparent);
      }
    }

    ul.menu {
      li.menu-item {
        ul.dropdown {
          background: color-mix(in srgb, var(--gray) 90%, transparent);
        }
      }
    }
  }

  @media (max-width: 767px) {
    .top-bar ul.menu li.menu-item ul.dropdown {
      background: transparent;

      li a {
        color: var(--white);
      }
    }
  }

  footer {
    .footer-wrap {
      .footer-links {
        border-top: 1px solid var(--gray);

        a {
          color: var(--white);
        }
      }
    }
  }

  .terms {
    a {
      color: var(--light);
    }
  }
}

/* COMPONENTS – reusable UI pieces */
@layer components {
  .feature-icon {
    color: var(--primary);
  }

  .btn {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
  }

  .error-page .btn {
    border-radius: var(--border-radius-0);
  }

  .card {
    position: relative;
    min-width: 0;
    background-color: var(--white);
    background-clip: border-box;
    word-wrap: break-word;
  }

  .slider-controls {
    border: 1px solid var(--primary);

    .nav-btn {
      background: transparent;
    }
  }

  .slide-button {
    .btn {
      background-color: var(--primary);
      color: var(--white);
    }
  }

  .banner-exclusive {
    margin-top: 6rem;
    padding-block: 5.5rem 6.5rem;
    background: url("../images/banners/background-flowers.png") no-repeat center / cover;
    background-color: var(--light);
    color: var(--dark);

    @media screen and (max-width: 1199px) {
      padding-block: 4rem;

      h3 {
        font-size: clamp(3rem, 6.25vw, 5rem);
      }
    }

    @media screen and (max-width: 767px) {
      padding-block: 3rem;

      h3 {
        margin-bottom: 1.5rem;
        font-size: clamp(2.5rem, 9vw, 4rem);
        letter-spacing: -0.025em;
      }
    }

    > .container {
      max-width: 1556px;
    }

    h3 {
      width: 100%;
      max-width: none;
      font-size: clamp(3rem, 6.25vw, 7.5rem);
      line-height: 1;
      letter-spacing: -0.04em;
      text-transform: none;
    }

    img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: var(--border-radius-0);
    }
  }

  .login-popup {
    .btn {
      border-radius: var(--border-radius-0);
    }

    input,
    textarea {
      background: var(--gray);
    }
  }

  .btn-login {
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-4);
  }

  .btn-login {
    background: transparent;
  }

  .contact-popup {
    .btn-login {
      border-radius: var(--border-radius-0);
    }

    #Sign-up {
      @media (min-width: 768px) {
        .form {
          flex: 4;
          margin-top: 20px;
        }
      }
    }
  }

  .color-btn {
    color: var(--white);
  }

  .color-btn {
    display: block;
  }

  .color-btn {
    background: var(--primary);
  }
}

/* PAGES – page-specific blocks */
@layer pages {
  .hero {
    position: relative;
    isolation: isolate;
    min-height: 640px;
    padding-block: 4rem;
    overflow: hidden;
    background: var(--light);

    @media screen and (max-width: 1199px) {
      min-height: auto;
      padding-block: 3rem 0;
      text-align: center;
    }

    @media screen and (max-width: 767px) {
      padding-block-start: 2rem;
    }

    > .hero-content {
      position: static;
    }

    .hero-copy {
      position: relative;
      z-index: 1;
      flex: none;
      width: 58%;
      max-width: 760px;

      @media screen and (max-width: 1199px) {
        align-items: center;
        width: 100%;
        max-width: 800px;
        margin-inline: auto;
      }

      h1 {
        display: block;
        max-width: 650px;
        font-size: clamp(4rem, 6.5vw, 7.5rem);
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: normal;
        text-transform: uppercase;

        @media screen and (max-width: 1199px) {
          font-size: clamp(3.5rem, 8vw, 6rem);
        }

        @media screen and (max-width: 767px) {
          font-size: clamp(2.75rem, 12vw, 4.5rem);
        }
      }

      p {
        width: 100%;
        max-width: 760px;
        margin: 2.5rem 0 0;
        color: var(--dark);
        font-size: var(--text-lg);
        line-height: 1.55;

        @media screen and (max-width: 1199px) {
          max-width: 720px;
          margin-top: 2rem;
        }

        @media screen and (max-width: 767px) {
          margin-top: 1.5rem;
          font-size: var(--text-md);
        }
      }
    }

    .hero-image {
      position: absolute;
      inset-block: 2rem;
      right: 5%;
      z-index: 0;
      width: 60%;
      max-width: none;
      min-width: 0;
      margin: 0;
      overflow: hidden;
      border-radius: var(--border-radius-0);

      @media screen and (max-width: 1199px) {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 900px;
        margin: 30px auto 0;
      }

      img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;

        @media screen and (max-width: 1199px) {
          height: auto;
        }
      }
    }
  }

  .areas-section {
    @media screen and (max-width: 767px) {
      flex-direction: column;
    }

    .card {
      position: relative;
      display: flex;
      flex: 1;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      max-width: 300px;
      margin: auto;
      padding: 2rem;
      text-align: center;

      h3 {
        padding: 1rem 0;
        color: var(--dark);
        font-size: 2em;

        @media screen and (min-width: 768px) and (max-width: 1199px) {
          width: 100%;
        }

        @media screen and (max-width: 767px) {
          width: 80%;
        }
      }

      p {
        color: var(--dark);
        font-size: var(--text-md);
      }

      .card-overlay {
        position: absolute;
        inset: 0;
        border-radius: var(--border-radius-2);
        background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0) 100%);
      }

      .card-content {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
      }
    }
  }

  .section-block {
    padding-block: 0 150px;

    @media screen and (max-width: 1199px) {
      padding-block-end: 80px;
    }

    @media screen and (max-width: 767px) {
      padding-block-end: 40px;
    }

    > .container {
      @media screen and (max-width: 1199px) {
        gap: var(--space-30);
      }
    }

    .img-left,
    .text-right {
      flex: 1 1 0;
      min-width: 0;

      @media screen and (max-width: 767px) {
        flex: none;
        width: 100%;
      }
    }

    .img-left img {
      display: block;
      width: 100%;
      max-width: 100%;
      height: auto;
    }

    .text-right {
      padding: 100px 20px;
      text-align: start;

      @media screen and (max-width: 1199px) {
        padding: 50px 0;
      }

      @media screen and (max-width: 767px) {
        padding: 0;
      }

      .intro-text {
        line-height: 1.6;
        overflow-wrap: anywhere;
      }
    }
  }

  .section-img {
    width: 100%;

    > .card-img {
      flex: 1 1 0;
      width: auto;
      min-width: 0;

      @media screen and (max-width: 767px) {
        flex: none;
        width: 100%;
      }

      img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
      }
    }
  }

  .hero-subpage {
    position: relative;
    isolation: isolate;

    &::before {
      content: "";
      position: absolute;
      inset-block: 0;
      left: 50%;
      z-index: -1;
      width: 100vw;
      background: url(../images/banners/background-flowers.png) no-repeat center / cover;
      pointer-events: none;
      transform: translateX(-50%);
    }

    .intro {
      h1 {
        font-weight: 400;
        text-transform: capitalize;
      }

      p {
        color: var(--dark-gray);
      }
    }
  }

  .sidebar-list-wrapper {
    .sidebar-list {
      .sidebar-item {
        .text {
          h3 {
            font-weight: 700;
          }

          .description {
            line-height: 12px;
          }
        }
      }
    }
  }

  .contact-info {
    & .info-box {
      & .info-text {
        h3,
        p,
        a {
          color: var(--light);
        }
      }
    }
  }

  .selector {
    border-radius: var(--border-radius-0);
  }

  .app {
    .app-selection {
      border-radius: var(--border-radius-1);

      .app-img {
        border-radius: var(--border-radius-0);
      }
    }

    .app-description {
      .btn {
        color: var(--white);
      }
    }

    .btn-selection {
      border: 2px solid var(--primary);
      border-radius: var(--border-radius-0);
    }

    .selection-container {
      &.exclusive-games {
        .app-selection {
          width: calc((100% - 2 * 50px) / 3);
        }
      }
    }
  }

  @media (min-width: 600px) and (max-width: 1023px) {
    .app .selection-container.exclusive-games .app-selection {
      width: calc((100% - 1 * 50px) / 2);
    }
  }

  @media (max-width: 599px) {
    .app .selection-container.exclusive-games .app-selection {
      width: 100%;
    }
  }

  .myGames .swiper-slide-content .stars .btn-selection {
    border-radius: var(--border-radius-0);
  }

  .myGames {
    .swiper-slide-content {
      border-radius: var(--border-radius-1);
    }

    p {
      height: 32px;
      margin: 10px 0;
      overflow: hidden;
      color: var(--gray);
      font-size: var(--text-xs);
      line-height: 16px;
      text-overflow: ellipsis;
      word-wrap: break-word;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  }

  .intro-text {
    max-width: 640px;
    font-size: 1.8em;
    line-height: normal;
  }

  .title-section {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;

    a {
      @media (max-width: 480px) {
        display: flex;
        flex-direction: column;
        gap: 5px;
      }

      span {
        gap: 5px;
        color: var(--primary);

        img {
          width: 20px;
        }

        @media (max-width: 480px) {
          position: relative;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          text-align: center;
        }
      }
    }

    h2 {
      color: var(--dark);
      text-transform: uppercase;

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

    h3 {
      margin-bottom: 20px;
      color: var(--gray);
      font-size: 1.2em;
      font-weight: 600;
      line-height: 1.5em;
      text-transform: uppercase;
    }

    i {
      margin-right: 10px;
    }
  }

  .custom-grid > .custom-wrap,
  .app .selection-container:not(.exclusive-games) > .app-selection {
    width: 100%;
  }

  .flag-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;

    @media (min-width: 768px) {
      justify-content: left;
    }

    img {
      width: 100%;
      height: 75px;
      border-radius: var(--border-radius-1);
      object-fit: cover;
    }
  }

  .flag-wrap {
    width: 100%;
    max-width: 134px;
    padding: 12px 8px 0;

    h3 {
      height: auto;
    }
  }

  .custom-wrap h3,
  .flag-wrap h3 {
    display: -webkit-box;
    margin: 10px 0;
    padding: 0;
    overflow: hidden;
    color: var(--dark);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.25rem;
    text-align: left;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .page-title {
    color: var(--light);
  }
}
