/* submit.css */
@import url('/tailwind.css');
@import url('/fonts.css');

.submit-page-container {
    width: 100%;
    /* height: 100vh; */
}

.submit-home {
    width: 100%;
    height: 90vh;
    background-image: url('/assets/img/pool-water-texture-abstract-cartoon-style-illustration-vector (1).jpg');
    background-size: cover;

    box-shadow: 
    inset 0 1rem 2rem -1rem rgba(0, 0, 0, 0.2),
    inset 0 -1rem 2rem -1rem rgba(0, 0, 0, 0.2);
}

.submit-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 90vh;
    position: relative;
    padding: 0 15rem;
}

.submit-grid-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.submit-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(0.625rem);
    border: 0.625rem solid rgb(255, 255, 255);
    box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.2);
    /* Fixed width instead of max-width */
    /* width: 25rem; */
    /* Fixed height to enforce 9:16 ratio (25 * 16/9 = 44.4) */
    /* height: 45rem; */
    
    width: 25vw;
    height: 80vh;
}

.submit-item:hover {
    /* transform: translateY(-0.125rem); */
    transition: all 0.6s ease;
}

.submit-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.5rem 1.25rem 0.5rem;
    gap: .5rem;
    height: 33.33%; /* Exactly 1/3 of the card */
    justify-content: center;
}

.submit-image {
    width: 100%;
    height: 66.67%; /* Exactly 2/3 of the card */
    overflow: hidden;
}

/* Default image positioning */
.submit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center center;
}

/* Individual image controls */
/* Left card (music) - make image bigger and move down */
.submit-grid-cell:nth-child(1) .submit-image img {
     /* Y is Up & Down X is Left & Right */
    transform: scale(1.275) translateY(10.5%) translateX(-3.5%);
    object-position: center center;
    /* will-change: unset; */
}

/* Right card (art) - move image to the right */
.submit-grid-cell:nth-child(2) .submit-image img {
    /* Move to right side */
    object-position: 100% center;
    /* will-change: unset; */
}

.submit-item h2 {
    font-family: var(--font-inter);
    font-size: 2rem;
    font-weight: 900;
    color: black;
    text-transform: uppercase;
}

.submit-description {
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f1f1f;
    /* max-width: 300px; */
    line-height: 1.6;
    margin-bottom: .5rem;
    
}

.submit-button {
    font-family: var(--font-inter);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.6s ease;
    /* min-width: 150px; */
    cursor: pointer;
}

.submit-button:hover {
    background-color: #1c1c1c;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}















/* Making submit-home.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) {
  .submit-home {
    height: 100%;
  }

  .submit-home-grid {
    grid-template-columns: auto;
    height: auto;
    min-height: auto;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  .submit-grid-cell {
    height: auto;
    min-height: 350px;
  }
  
  .submit-item {
    width: 90%;
    /* height: 350px; */
    height: 550px;
  }

  .submit-image {
    height: 70%;
  }
  
  .submit-item h2 {
    font-size: 1.5rem;
    padding-bottom: .25rem;
  }
  
  .submit-description {
    font-size: 0.8rem;
    line-height: 1.5;
    padding-bottom: .5rem;
  }
  
  .submit-button {
    padding: 12px 25px;
    font-size: 0.8rem;
    letter-spacing: 1px;
  }
  
  .submit-content {
    display: block;
    padding: 1rem 0.75rem;
    gap: 0.75rem;
  }

  .submit-grid-cell:nth-child(1) .submit-image img {
    transform: scale(1.4) translateY(8%) translateX(-3%);
    object-position: center center;
  }

  .submit-grid-cell:nth-child(2) .submit-image img {
    transform: scale(1.1) translateY(-1%) translateX(-4%);
    object-position: 98% center;
  }
}

/* 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) {
  .submit-home {
    height: 100%;
  }

  .submit-image {
    height: 70%;
  }

  .submit-content {
    height: auto;
  }
  
  .submit-home-grid {
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    /* gap: 5rem; */
    padding: 0rem 9rem;
    justify-content: center;
    align-items: center;
  }
  
  .submit-grid-cell {
    height: auto;
    min-height: auto;
  }
  
  .submit-item {
    width: 25vw;
    height: 40vw;

    border: 7.5px solid rgb(255, 255, 255);
  }
  
  .submit-item h2 {
    font-size: 1rem;
  }
  
  .submit-description {
    font-size: 0.55rem;
    line-height: 1;
  }
  
  .submit-button {
    padding: 8px 16px;
    font-size: 0.6rem;
    letter-spacing: 0.8px;
  }
  
  .submit-content {
    padding: 0.25rem 0.25rem;
    gap: 0.25rem;
  }

  .submit-grid-cell:nth-child(1) .submit-image img {
    transform: scale(1.3) translateY(10%) translateX(-2%);
    object-position: center center;
    will-change: unset;
  }

  .submit-grid-cell:nth-child(2) .submit-image img {
    transform: scale(1.2) translateY(-1%) translateX(0%);
    object-position: 111% center;
    will-change: unset;
  }
}

/* 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) {
  .submit-home-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    padding: 1.5rem;
    gap: 2.5rem;
  }
  
  .submit-grid-cell {
    height: auto;
    min-height: 450px;
  }
  
  .submit-item {
    width: 85%;
    height: 450px;
    max-width: 320px;
  }
  
  .submit-item h2 {
    font-size: 1.9rem;
  }
  
  .submit-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .submit-button {
    padding: 14px 28px;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
  }
  
  .submit-content {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  
  /* Reset image transforms */
  .submit-grid-cell:nth-child(1) .submit-image img,
  .submit-grid-cell:nth-child(2) .submit-image img {
    transform: none;
    object-position: center center;
  }
}

/* Tablet Portrait (Normal) | 601px - 1024px */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .submit-home {
    height: 100%;
  }

  .submit-home-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    padding: 2rem 2rem;
    gap: 3rem;
  }
  
  .submit-grid-cell {
    height: auto;
    /* min-height: 600px; */
  }
  
  .submit-item {
    width: 60%;
    max-height: 70vh;
    /* height: 600px; */
    /* max-width: 450px; */
  }
  
  .submit-item h2 {
    font-size: 2rem;
  }
  
  .submit-description {
    font-size: 1.2rem;
    line-height: 1.7;
  }
  
  .submit-button {
    padding: 18px 36px;
    font-size: 1rem;
    letter-spacing: 1.5px;
  }
  
  .submit-content {
    padding: .5rem .5rem;
    gap: .25rem;
  }
  
  /* Keep some image positioning for tablets */
  .submit-grid-cell:nth-child(1) .submit-image img {
    transform: scale(1.35) translateX(-3%) translateY(11%);
    object-position: center center;
  }
  
  .submit-grid-cell:nth-child(2) .submit-image img {
    transform: scale(1) translateX(0%) translateY(0%);
    object-position: 97% center;
  }
}

/* Tablet Landscape (Seitlich gehlaten) | 951px - 1366px */
@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
  .submit-home {
    height: 100%;
  }

  .submit-home-grid {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 9rem;
    gap: 2rem;
  }
  
  .submit-grid-cell {
    /* height: 70vh; */
    min-height: 500px;
  }

  /* Change frame size */
  .submit-item {
    width: 30vw;
    height: 75vh;
  }
  
  .submit-item h2 {
    font-size: 1.85rem;
  }
  
  .submit-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .submit-button {
    padding: 16px 32px;
    font-size: 0.9rem;
    letter-spacing: 1.3px;
  }
  
  .submit-content {
    /* height: 20vh; */
    padding: .5rem .5rem;
    gap: .25rem;
  }
  
  /* Maintain image positioning for tablet Landscape (Seitlich gehlaten) */
  .submit-grid-cell:nth-child(1) .submit-image img {
    transform: scale(1.4) translateY(7.5%) translateX(-3%);
    object-position: center center;
  }
  
  .submit-grid-cell:nth-child(2) .submit-image img {
    transform: scale(1.2) translateY(2%) translateX(-3%);
    object-position: 100% center;
  }
}