<script setup lang="ts">
import AssignComponent from "~/components/dynamic-page/page-component/AssignComponent.vue";
import { enumPageComponentLayouts, enumPageComponentTemplate, enumPageComponentKey } from "@/definitions/enum";
</script>

<template>
  <footer id="footer" class="main-footer mt-20">
    <div class="main-footer-container">
      <div class="footer-centertab grid lg:grid-cols-6">
        <div class="col-span-1 lg:block hidden"></div>
        <div class="col-span-5">
          <div class="footer-navigation-container md:block hidden">
            <div>
              <AssignComponent :type="enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.NAVIGATION]['BOTTOM']}`]['NAVIGATION_BOTTOM_DEFAULT']" />
            </div>
          </div>

          <div class="footer-contact-container md:grid-cols-2 grid-cols-1">
            <div class="md:order-1 order-2">
              <h3 class="md:text-left text-center">BÁO GIẤY</h3>

              <div class="footer-contact">
                <div class="md:justify-start justify-center">
                  <div>
                    <span><Icon name="material-symbols:call-outline" /></span>
                    <span>0123456789</span>
                  </div>
                  <div>
                    <span><Icon name="material-symbols:mail-outline" /></span>
                    <span>toasoan@vpress.vn</span>
                  </div>
                </div>

                <div class="footer-contact-buynow md:justify-start justify-center">
                  <img src="~/assets/images/tienphong/muabaogiay-footer.png" alt="" />
                </div>
              </div>
            </div>
            <div class="md:order-2 order-1">
              <h3 class="md:text-left text-center md:!border-#3d3d3d !border-transparent">THEO DÕI TRÊN MẠNG XÃ HỘI</h3>

              <div class="footer-socials">
                <div class="md:grid lg:grid-cols-2 md:grid-cols-1 flex  md:gap-50px gap-32px md:justify-start justify-center">
                  <div class="xl:gap-22px gap-6px">
                    <span><Icon name="ic:baseline-facebook" /></span>
                    <span class="md:inline hidden whitespace-normal">facebook.com/vpress</span>
                  </div>
                  <div class="xl:gap-22px gap-6px">
                    <span><Icon name="uil:youtube" /></span>
                    <span class="md:inline hidden whitespace-normal">youtube.com/vpress</span>
                  </div>
                  <div class="xl:gap-22px gap-6px">
                    <span><Icon name="ic:baseline-tiktok" /></span>
                    <span class="md:inline hidden whitespace-normal">tiktok.com/vpress</span>
                  </div>
                  <div class="xl:gap-22px gap-6px">
                    <span><Icon name="arcticons:zalo" /></span>
                    <span class="md:inline hidden whitespace-normal">zalo.vn/vpress</span>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="footer-ads">
            <h3 class="md:text-left text-center">LIÊN HỆ QUẢNG CÁO</h3>

            <div class="footer-ads-container flex-wrap lg:gap-60px gap-20px md:flex-row flex-col">
              <div class="align-items-center">
                <span><Icon name="material-symbols:call-outline" /></span>
                <span class="flex flex-column">
                  <span>0123456789 - </span>
                  <span>0123456789</span>
                </span>
              </div>
              <div>
                <span><Icon name="material-symbols:mail-outline" /></span>
                <span>kinhdoanh@vpress.vn</span>
              </div>
              <div class="button-ads-price">
                <span><Icon name="ic:outline-format-list-bulleted" /></span>
                <span style="font-size: 16px">Bảng giá quảng cáo</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer-bottomtab">
      <div class="lg:grid-cols-6 grid">
        <div class="lg:block hidden"></div>
        <div class="col-span-5">
          <div class="flex justify-between items-end">
            <div class="flex-1 flex md:justify-start justify-center">
              <div>
                <img class="w-200px" src="~/assets/images/tienphong/logo.png" alt="" />
              </div>
            </div>

            <div class="footer-bottomtab-relations">
              <!-- <img src="~/assets/images/tienphong/sinhvien-logo.png" alt="" />
              <img src="~/assets/images/tienphong/hht-online-logo.png" alt="" />
              <img src="~/assets/images/tienphong/tamviet-logo.png" alt="" /> -->
            </div>
          </div>
          <div class="flex justify-between md:flex-row flex-col gap-20px footer-bottomtab-description md:text-left text-center">
            <div class="flex-1 space-y-10px">
              <p>© Bản quyền thuộc báo điện tử <span class="fw-bold">....</span></p>
              <p><span class="fw-bold">Tổng Biên tập</span>: ...</p>
              <p>Tòa soạn: Hà Nội - Điện thoại: 0123456789</p>
              <p>Email: <span class="fw-bold">online.vpress@gmail.com</span> - Hotline: <span class="fw-bold">0123456789</span></p>
            </div>
            <div class="flex-1 space-y-10px">
              <p>Giấy phép số <span class="fw-bold">...</span>, cấp ngày ....</p>
              <p>Cơ quan chủ quản: <span class="fw-bold">....</span></p>
              <p>Cấm sao chép dưới mọi hình thức nếu không có sự chấp thuận bằng văn bản</p>
              <p>Powered by GCT</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </footer>
</template>

<style lang="scss" scoped>
.main-footer {
  .main-footer-container {
    background: #2b2b2b;
    padding: 54px 0 32px 0;
  }

  .footer-centertab {
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 27.5px;
    > div {
      // max-width: 1145px;
      // margin-left: auto;
      // padding: 0 33px;
    }

    .footer-navigation-container {
      > div {
        border-top: 6px solid #ed1c24;
        border-bottom: 1px solid #ed1c24;
        padding: 26px 0px 33px 0px;
      }
    }

    .footer-contact-container {
      display: grid;
      // grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: 22px;
      gap: 60px;
      border-bottom: 1px solid #ed1c24;
      padding-bottom: 25px;
      h3 {
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
        border-bottom: 1px solid #3d3d3d;
        padding-bottom: 8px;
      }

      .footer-contact {
        margin-top: 20px;
        padding-left: 4px;
        .footer-contact-buynow {
          margin-top: 20px;
        }
        > div {
          display: flex;
          align-items: flex-end;
          gap: 50px;
          flex-wrap: wrap;
          > div {
            display: flex;
            align-items: flex-end;
            gap: 22px;
          }
        }
        span {
          color: #ffffff;
          line-height: 1.8;
        }
        svg {
          font-size: 32px;
        }
      }

      .footer-socials {
        margin-top: 20px;
        > div {
          // display: grid;
          // grid-template-columns: repeat(2, minmax(0, 1fr));
          // gap: 55px;
          > div {
            display: flex;
            align-items: flex-end;
            // gap: 22px;
          }
          span {
            color: #ffffff;
            line-height: 1.8;
          }
          svg {
            font-size: 32px;
          }
        }
      }
    }

    .footer-ads {
      margin-top: 20px;
      > div {
        display: flex;
        align-items: center;
        // gap: 60px;
        > div {
          display: flex;
          align-items: flex-end;
          gap: 10px;
        }
        span {
          color: #ffffff;
          line-height: 1.8;
        }
        svg {
          font-size: 32px;
        }
      }

      h3 {
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
        padding-bottom: 8px;
      }

      .button-ads-price {
        color: #ed1c24;
        font-size: 16px;
        border: 1px solid;
        padding: 4px 24px;
        border-radius: 8px;
        display: flex;
        align-items: center;

        & > span:first-child {
          color: #ed1c24;
          display: flex;
          align-items: center;
          & > svg {
            font-size: 24px;
          }
        }

        & > span:last-child {
          font-size: 16px;
        }
      }
    }
  }

  .footer-bottomtab {
    width: 100%;
    // padding: 5px 15px;
    > div {
      margin: 0 auto;
      max-width: 1440px;
      padding: 0 27.5px;

      > div {
        // max-width: 1145px;
        // margin-left: auto;
        // padding: 0 33px;
      }
    }
    // padding: 0 33px;
    padding-bottom: 80px;
    padding-top: 24px;
    .footer-bottomtab-relations {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .footer-bottomtab-description {
      margin-top: 24px;
    }
  }
}
</style>
