/* footer.css */

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-inter);
}

/* Footer Styles */
.aviencloud-footer {
    width: 100vw;
    /* min-height: 35vh; */
    height: auto;
    position: relative;
    overflow: hidden; /* Keep this as hidden */
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* border-bottom: 15px solid rgb(0, 0, 0); */

    background-color: white;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 2.2fr 0.125rem 1.2fr 0.125rem 1.1fr 0.125rem 1.8fr;
    grid-template-areas: "subscribe border1 aviencloud border2 legal border3 socials";
    max-width: 100vw;
    overflow: hidden; /* Keep this as hidden */
    padding-left: 15px; /* Add space for the logo to extend into */
}

/* Vertical borders */
.vertical-border {
    background: rgba(0,0,0,.1);
    width: .0625rem;
}

.border-1 { grid-area: border1; z-index: 2;}
.border-2 { grid-area: border2; z-index: 2;}
.border-3 { grid-area: border3; z-index: 2;}

/* Subscribe Section (Left) */
.footer-subscribe {
    grid-area: subscribe;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        "logo"
        "subscribe-content";
    position: relative;
    height: 100%;
    background: white;
    overflow: visible;
}

.font-logo {
    grid-area: logo;
    z-index: 3;
    /* margin-left: -15px;  */
    /* padding: 20px 0 0 0; */
    align-self: start;
    justify-self: start;
    padding-top: 25px;
}

.font-logo a {
    display: block;
    text-decoration: none;
}

.font-logo img {
    height: 1.9rem;
    width: auto;
    cursor: pointer;
    display: block;
    /* padding-left: 20px; */
    padding-left: 15px;
}

.placeholder-item {
    height: 21px;
    visibility: hidden;
}

.copyright {
    font-family: var(--font-inter);
    font-size: 16px;
    color: black;
    text-align: center;   
}

.footer-copyright {
    width: 100vw;
    height: 30px;
    background: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.footer-copyright p {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 12px;
    color: white;

    letter-spacing: 0.02em;
    margin-left: 34px;
}

.subscribe-section {
    grid-area: subscribe-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 3;
    padding: 20px 20px 20px 20px;
}

.subscribe-section h3 {
    color: black;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.subscribe-section p {
    font-size: 16px;
    color: black;
    margin: 0 0 10px 0;
}

.subscribe-form {
    display: flex;
    max-width: 300px;
    background: #fff;
    border-radius: .625rem;
    overflow: hidden;

    outline-style: solid;
    outline-color: rgb(0, 0, 0);
    outline-width: 2.5px;

    height: 2.5rem;

    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.subscribe-form input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    outline: none;

    height: 2.5rem;
    width: 12.5rem;
}

.subscribe-form input::placeholder {
    color: #999;
}

.subscribe-form button {
    background: black;
    border: none;
    margin: 3px;
    border-radius: .625rem;
    /* padding: 14px 16px; */
    padding: 12px 12px;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    aspect-ratio: 1/1;
}

.subscribe-form button:hover {
    background: #333;
}

.subscribe-form button svg {
    width: 100%;
    height: 100%;
}

/* .character-image {
    position: absolute;
    bottom: -60px;
    right: 0px;
    object-fit: cover;
    height: 100%;
    width: auto;
    max-width: 300px;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(20% 0 0 0);
} */

.character-image {
    position: absolute;
    bottom: 0;
    right: 6%;
    height: 149%;
    transform: translateY(81px);
    z-index: 1;
}

.character-image img {
    height: 100%;
    width: auto;
    display: block;
}

/* Aviencloud Section */
.footer-aviencloud {
    grid-area: aviencloud;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 20px;
    text-align: left;
}

/* Legal Section */
.footer-legal {
    grid-area: legal;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 20px;
    text-align: left;
}

/* Socials Section (Right) */
.footer-socials {
    width: 100%;
    min-width: 0; /* Allow shrinking */
    padding: 20px 15px; /* Reduce padding if needed */
}

/* Common column styles */
.footer-column {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: black;
    text-align: left;
}

.footer-column h4:not(:first-child) {
    margin-top: 32px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin: 0 0 8px 0;
}

.footer-column a {
    color: #4c4c4c;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    /* transition: color 0.2s ease; */
}

.footer-column a:hover {
    /* color: black;
    text-decoration: underline; */
    color: white;
    background-color: black;
    padding: 1px;
}

/* Social specific styles */
.social-group {
    margin-bottom: 19px;
}

.social-label {
    color: black;
    font-size: 14px;
    font-weight: 400;
    display: block;
    margin-bottom: 12px;
    text-align: left;
}

.social-icons-footer {
    display: grid;
    grid-template-columns: repeat(7, 2.5rem);
    grid-template-rows: repeat(2, 2.5rem);
    width: fit-content;
}

.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Platform colors on hover */
.social-icon-footer[data-platform="youtube"]:hover { background: #ff0000; }
.social-icon-footer[data-platform="spotify"]:hover { background: #1db954; }
.social-icon-footer[data-platform="soundcloud"]:hover { background: #F37422; }
.social-icon-footer[data-platform="twitter"]:hover { background: #1d9bf0; }
.social-icon-footer[data-platform="facebook"]:hover { background: #1877F2; }
.social-icon-footer[data-platform="instagram"]:hover { background: #C13584; }
.social-icon-footer[data-platform="twitch"]:hover { background: #9146ff; }
.social-icon-footer[data-platform="tiktok"]:hover { background: #000000; }
.social-icon-footer[data-platform="artstation"]:hover { background: #13AFF0; }
.social-icon-footer[data-platform="pixiv"]:hover { background: #0096fa; }
.social-icon-footer[data-platform="pinterest"]:hover { background: #E60023; }
.social-icon-footer[data-platform="deviantart"]:hover { background: #00e59b; }
.social-icon-footer[data-platform="tumblr"]:hover { background: #021A35; }
.social-icon-footer[data-platform="discord"]:hover { background: #5865F2; }

/* Loading and success states */
.subscribe-form.loading button {
    pointer-events: none;
}

.subscribe-form.loading button svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.subscribe-form.success {
    background: #22c55e;
}

.subscribe-form.success input {
    color: #fff;
}

.subscribe-form.success input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}














/* Making footer.php responsive on all devices */

/* Desktop | 1281px - 1440px  */
@media (max-width: 1280px) {
  /* None, coded on macbook m1 pro */
}

/* Medium Laptop/Desktop | 1515px - 1920px */
@media (max-width: 1515px) {
 /* None, coded on macbook m1 pro */
}

/* Small Laptop/Desktop | 1024px - 1280px */
@media (max-width: 1024px) {
  /* None, coded on macbook m1 pro */
}

/* Mobile Small Portrait (Normal) | up to 480px */
/* S20+, iPhone 12, iPhone 13 */
@media (max-width: 480px) and (orientation: portrait) {
  .aviencloud-footer {
    min-height: 90vh;
    height: auto;
    /* border-bottom: 10px solid black; */
  }

  .footer-copyright {
    width: 100vw;
    height: 30px;
    background: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 2;
  }

  .footer-copyright p {
      font-family: var(--font-inter);
      font-weight: 600;
      font-size: 12px;
      color: white;

      letter-spacing: 0.02em;
      margin-left: 16px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "left-section right-section"
      "bottom-section bottom-section";
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  /* Combine aviencloud and legal into left section */
  .footer-aviencloud {
    grid-area: left-section;
    padding: 25px 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .footer-legal {
    grid-area: left-section;
    padding: 0 20px 25px 20px;
    margin-top: 21rem;
  }

  .footer-socials {
    grid-area: right-section;
    padding: 25px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .footer-subscribe {
    grid-area: bottom-section;
    display: block;
    min-height: 280px;
    position: relative;
    padding: 0;
    margin: 0;
  }

  .font-logo {
    padding: 1.2rem 0rem 0rem 1.313rem;
    margin-left: -1rem;
    z-index: 10;
    position: absolute;
  }

  .font-logo img {
    height: 23px;
  }

  .subscribe-section {
    padding: 9.75rem 1rem 1rem 1rem;
    z-index: 10;
    position: absolute;
  }

  .subscribe-section h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .subscribe-section p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .subscribe-form {
    max-width: 280px;
  }

  .character-image {
    position: absolute;
    bottom: 0;
    right: 10px;
    height: 120%;
    transform: translateY(50px);
  }

  .character-image img {
    transform: scale(1) translateX(4%) translateY(1%);
  }

  .footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-column h4:not(:first-child) {
    margin-top: 25px;
  }

  .footer-column a {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Fix social icons layout to prevent overflow */
  .social-icons-footer {
    grid-template-columns: repeat(2, 2rem); /* 5 columns to fit better */
    grid-template-rows: repeat(1, 2rem); /* 3 rows */
    /* gap: 0.15rem; */
    gap: 1rem;
    max-width: 100%;
    justify-content: start;
  }

  .social-icon-footer {
    width: 2rem;
    height: 2rem;
    grid-template-columns: repeat(2, 2rem);
  }

  .social-icon img {
    width: 18px;
    height: 18px;
  }

  .social-group {
    margin-bottom: 20px;
  }

  .social-label {
    font-size: 15px;
    color: #4c4c4c;
  }
}

/* Mobile Small Landscape (Seitlich gehlaten) | up to 950px */
/* S20+, iPhone 14, iPhone 15 Pro in Landscape (Seitlich gehlaten) */
@media (max-width: 950px) and (orientation: landscape) {
  .aviencloud-footer {
    min-height: 60vh;
    min-width: 100vw;
    height: auto;
    /* border-bottom: 8px solid black; */
  }

  .footer-copyright {
    width: 100vw;
    height: 30px;
    background: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 2;
  }

  .footer-copyright p {
      font-family: var(--font-inter);
      font-weight: 600;
      font-size: 12px;
      color: white;

      letter-spacing: 0.02em;
      margin-left: 16px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 3.5fr 0.125rem 2fr 0.125rem 1.2fr 0.125rem 1.54fr;
    grid-template-areas: "subscribe border1 aviencloud border2 legal border3 socials";
    gap: 0;
    overflow: hidden;
    padding-left: 0rem;
  }

  .vertical-border {
    display: block;
    background: rgba(0,0,0,.1);
    width: .0625rem;
  }

  .border-1 { grid-area: border1; z-index: 2;}
  .border-2 { grid-area: border2; z-index: 2;}
  .border-3 { grid-area: border3; z-index: 2;}

  .footer-subscribe {
    grid-area: subscribe;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        "logo"
        "subscribe-content";
    position: relative;
    height: 100%;
    background: white;
    overflow: visible;
  }

  .font-logo {
    grid-area: logo;
    z-index: 3;
    margin-left: 5px;
    margin-top: -5px;
  }

  .font-logo img {
    height: 23px;
  }

  .subscribe-section {
    grid-area: subscribe-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 3;
    padding: 15px 15px 15px 15px;
  }

  .subscribe-section p {
    margin: 0 0 8px 0;
  }

  .subscribe-form {
    max-width: 100%;
    /* height: 2rem; */
  }

  /* .subscribe-form input {
    padding: 8px 12px;
  }

  .subscribe-form button {
    padding: 6px;
  } */

  .character-image {
    position: absolute;
    bottom: 0;
    right: 1%;
    height: 130%;
    transform: translateY(50px);
    z-index: 1;
  }

  .social-label {
    font-size: 12px;
    color: #4c4c4c;
  }

  .character-image img {
    transform: scale(1) translateX(7%) translateY(5%);
    width: auto;
    height: 100%;
  }

  .footer-aviencloud {
    grid-area: aviencloud;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px 15px;
  }

  .footer-legal {
    grid-area: legal;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px 15px;
  }

  .footer-socials {
    grid-area: socials;
    padding: 15px 10px;
  }

  .footer-column h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-column h4:not(:first-child) {
    margin-top: 18px;
  }

  .footer-column a {
    font-size: 12px;
  }

  .social-icons-footer {
    grid-template-columns: repeat(3, 1.5rem);
    grid-template-rows: repeat(1, 1.5rem);
    gap: 1rem;
  }

  .social-icons-footer img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .social-icon-footer {
    width: 1.8rem;
    height: 1.8rem;
  }

  .social-group {
    margin-bottom: 12px;
  }
}

/* Mobile Large Portrait (Normal) | 481px - 600px */
/* iPhone 14 Pro Max, Pixel 7 Pro, larger phones */
@media (min-width: 481px) and (max-width: 600px) and (orientation: portrait) {
  .aviencloud-footer {
    min-height: 85vh;
    height: auto;
    /* border-bottom: 12px solid black; */
  }

  .footer-copyright {
    width: 100vw;
    height: 30px;
    background: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 2;
  }

  .footer-copyright p {
      font-family: var(--font-inter);
      font-weight: 600;
      font-size: 12px;
      color: white;

      letter-spacing: 0.02em;
      margin-left: 16px;
  }

  .footer-container {
    display: block;
    padding: 0;
    overflow: visible;
  }

  .vertical-border {
    display: none;
  }

  .footer-subscribe {
    display: block;
    min-height: 300px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }

  .font-logo {
    text-align: center;
    padding: 25px 0 15px 0;
    margin: 0;
  }

  .font-logo img {
    height: 45px;
  }

  .subscribe-section {
    text-align: center;
    padding: 15px 25px 25px 25px;
    align-items: center;
  }

  .subscribe-section h3 {
    font-size: 20px;
  }

  .subscribe-section p {
    font-size: 16px;
  }

  .subscribe-form {
    max-width: 320px;
    margin: 0 auto;
  }

  .character-image {
    height: 130%;
    right: 15px;
    transform: translateY(60px);
  }

  .footer-aviencloud,
  .footer-legal,
  .footer-socials {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .footer-socials {
    border-bottom: none;
  }

  .footer-column h4 {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .footer-column a {
    font-size: 16px;
  }

  .social-icons-footer {
    grid-template-columns: repeat(7, 2.4rem);
    grid-template-rows: repeat(2, 2.4rem);
    gap: 0.4rem;
  }

  .social-icon-footer {
    width: 2.4rem;
    height: 2.4rem;
  }

  .social-icon img {
    width: 22px;
    height: 22px;
  }
}

/* Tablet Portrait (Normal) | 601px - 1024px */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .aviencloud-footer {
    min-height: 70vh;
    height: auto;
    /* border-bottom: 15px solid black; */
  }

  .footer-copyright {
    width: 100vw;
    height: 30px;
    background: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 2;
  }

  .footer-copyright p {
      font-family: var(--font-inter);
      font-weight: 600;
      font-size: 12px;
      color: white;

      letter-spacing: 0.02em;
      margin-left: 16px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "left-section right-section"
      "bottom-section bottom-section";
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .vertical-border {
    display: none;
  }

  /* Combine aviencloud and legal into left section */
  .footer-aviencloud {
    grid-area: left-section;
    padding: 25px 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .footer-legal {
    grid-area: left-section;
    padding: 0 20px 25px 20px;
    margin-top: 21rem;
  }

  .footer-socials {
    grid-area: right-section;
    padding: 25px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .footer-subscribe {
    grid-area: bottom-section;
    display: block;
    min-height: 280px;
    position: relative;
    padding: 0;
    margin: 0;
  }

  .font-logo {
    padding: .25rem 0rem 1rem .6rem;
    margin-left: -1.25rem;
    z-index: 10;
    position: absolute;
  }

  .font-logo img {
    height: 50px;
  }

  .subscribe-section {
    padding: 9.5rem 1rem 1rem 1rem;
    z-index: 10;
    position: absolute;
  }

  .subscribe-section h3 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .subscribe-section p {
    font-size: 1rem;
  }

  .subscribe-form {
    max-width: 320px;
  }

  .character-image {
    position: absolute;
    bottom: 0;
    right: 20px;
    height: 140%;
    transform: translateY(70px);
  }

  .character-image img {
    transform: scale(1.1) translateX(0%) translateY(-5.75%);
  }

  .footer-column h4 {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .footer-column h4:not(:first-child) {
    margin-top: 25px;
  }

  .footer-column a {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fix social icons layout to prevent overflow */
  .social-icons-footer {
    grid-template-columns: repeat(7, 2.4rem);
    grid-template-rows: repeat(2, 2.4rem);
    gap: 0.4rem;
    max-width: 100%;
    justify-content: start;
  }

  .social-icon-footer {
    width: 2.4rem;
    height: 2.4rem;
  }

  .social-icon-footer img {
    width: 22px;
    height: 22px;
  }

  .social-group {
    margin-bottom: 20px;
  }
}

/* Tablet Landscape (Seitlich gehlaten) | 951px - 1366px */
@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
  .aviencloud-footer {
    min-height: 40vh;
    height: auto;
    /* border-bottom: 15px solid black; */
  }

  .footer-copyright {
    width: 100vw;
    height: 30px;
    background: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 2;
  }

  .footer-copyright p {
      font-family: var(--font-inter);
      font-weight: 600;
      font-size: 12px;
      color: white;

      letter-spacing: 0.02em;
      margin-left: 18px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 3.5fr 0.125rem 1.5fr 0.125rem 1.2fr 0.125rem 1.5fr;
    grid-template-areas: "subscribe border1 aviencloud border2 legal border3 socials";
    gap: 0;
    overflow: hidden;
    padding-left: 0rem;
  }

  .font-logo {
    margin-left: -10px;
    padding: 20px 0 0 0;
  }

  .font-logo img {
    height: 50px;
  }

  .subscribe-section {
    padding: 18px 18px 18px 18px;
  }

  .subscribe-section h3 {
    font-size: 15px;
  }

  .subscribe-section p {
    font-size: 15px;
  }

  .character-image {
    height: 145%;
    right: -3%;
    transform: translateY(75px);
  }

  .character-image img {
    transform: scale(1) translateX(3%) translateY(1%);
  }

  .footer-aviencloud,
  .footer-legal,
  .footer-socials {
    padding: 18px 18px;
  }

  .footer-column h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-column h4:not(:first-child) {
    margin-top: 28px;
  }

  .footer-column a {
    font-size: 13px;
  }

  .social-icons-footer {
    grid-template-columns: repeat(5, 2.3rem);
    grid-template-rows: repeat(2, 2.3rem);
    gap: 0.2rem;
  }

  .social-icon-footer {
    width: 2.3rem;
    height: 2.3rem;
  }

  .social-icon img {
    width: 21px;
    height: 21px;
  }

  .social-group {
    margin-bottom: 16px;
  }
}