/* =====================================
   CREATE PAGE
===================================== */

.create-page {
  width: 92%;
  max-width: 1200px;

  margin: 0 auto;

  padding: 65px 0 110px;
}


/* =====================================
   INTRO
===================================== */

.create-intro {
  position: relative;

  text-align: center;

  margin-bottom: 55px;
}

.create-label {
  display: inline-block;

  padding: 6px 12px;

  background: var(--blue);

  border: 3px solid var(--black);

  border-radius: 10px;

  font-size: 12px;
  font-weight: bold;

  box-shadow: 3px 3px 0 var(--black);

  transform: rotate(-2deg);

  margin-bottom: 20px;
}

.create-intro h1 {
  font-size: clamp(42px, 7vw, 72px);

  line-height: 0.95;

  letter-spacing: -4px;

  margin-bottom: 20px;

  transform: rotate(1deg);
}

.create-intro h1::after {
  content: " ✦";

  color: var(--pink);

  -webkit-text-stroke: 2px var(--black);
}

.create-intro p {
  max-width: 600px;

  margin: auto;

  font-size: 17px;

  line-height: 1.6;

  color: var(--gray);
}


/* =====================================
   CREATION AREA
===================================== */

.creation-area {
  display: grid;

  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);

  align-items: center;

  gap: 20px;
}


/* =====================================
   CREATION CARDS
===================================== */

.creation-card {
  position: relative;

  background: var(--white);

  border: 4px solid var(--black);

  border-radius: 8px;

  padding: 25px;

  box-shadow:
    7px 7px 0 var(--black),
    12px 12px 0 rgba(0, 0, 0, 0.08);

  min-height: 470px;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.webcam-card {
  transform: rotate(-1deg);
}

.upload-card {
  transform: rotate(1deg);
}

.creation-card:hover {
  transform: rotate(0deg) translateY(-5px);

  box-shadow:
    9px 11px 0 var(--black),
    14px 16px 0 rgba(0, 0, 0, 0.08);
}


/* =====================================
   CARD PIN
===================================== */

.card-pin {
  position: absolute;

  top: -13px;
  left: 50%;

  width: 22px;
  height: 22px;

  transform: translateX(-50%);

  background: var(--pink);

  border: 3px solid var(--black);

  border-radius: 50%;

  box-shadow: 2px 2px 0 var(--black);

  z-index: 5;
}

.card-pin::after {
  content: "";

  position: absolute;

  top: 3px;
  left: 4px;

  width: 5px;
  height: 5px;

  background: rgba(255, 255, 255, 0.75);

  border-radius: 50%;
}

.blue-pin {
  background: var(--blue);
}


/* =====================================
   CARD HEADER
===================================== */

.creation-card-header {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 22px;
}

.creation-card-header h2 {
  font-size: 23px;

  margin-bottom: 3px;

  transform: rotate(-1deg);
}

.creation-card-header p {
  color: var(--gray);

  font-size: 13px;
}


/* =====================================
   ICON
===================================== */

.creation-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--pink);

  border: 3px solid var(--black);

  border-radius: 13px;

  font-size: 25px;

  box-shadow: 3px 3px 0 var(--black);

  transform: rotate(-4deg);
}

.upload-icon {
  background: var(--blue);

  transform: rotate(3deg);
}


/* =====================================
   WEBCAM
===================================== */

.webcam-preview {
  width: 100%;

  aspect-ratio: 4 / 3;

  background: #1d1d1d;

  border: 4px solid var(--black);

  border-radius: 5px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 4px 4px 0 var(--black);
}


/*
  This placeholder can later be replaced with:

  <video autoplay></video>

  when you add getUserMedia().
*/

.camera-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;

  color: white;

  text-align: center;

  background:
    radial-gradient(
      circle at center,
      #333 0%,
      #222 45%,
      #151515 100%
    );
}

.camera-icon {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 8px;

  border: 4px solid white;

  border-radius: 50%;

  font-size: 35px;

  opacity: 0.9;
}

.camera-placeholder strong {
  font-size: 15px;
}

.camera-placeholder span {
  color: #aaa;

  font-size: 12px;
}


/* =====================================
   CAMERA BUTTON
===================================== */

.camera-controls {
  display: flex;

  justify-content: center;

  margin-top: 25px;
}

.camera-button {
  display: flex;
  align-items: center;

  gap: 9px;

  padding: 12px 20px;

  background: var(--pink);

  border: 3px solid var(--black);

  border-radius: 14px;

  font-family: inherit;

  font-size: 15px;
  font-weight: bold;

  cursor: pointer;

  box-shadow: 4px 4px 0 var(--black);

  transition: 0.15s;
}

.camera-button:hover {
  transform: translate(2px, 2px);

  box-shadow: 2px 2px 0 var(--black);
}

.camera-button:active {
  transform: translate(4px, 4px);

  box-shadow: none;
}

.camera-button-icon {
  font-size: 12px;
}


/* =====================================
   OR DIVIDER
===================================== */

.creation-divider {
  display: flex;

  align-items: center;
  justify-content: center;

  position: relative;

  min-height: 100px;
}

.creation-divider::before {
  content: "";

  position: absolute;

  width: 3px;
  height: 100%;

  background: var(--black);

  opacity: 0.15;
}

.creation-divider span {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  background: var(--yellow);

  border: 3px solid var(--black);

  border-radius: 50%;

  font-size: 13px;
  font-weight: bold;

  box-shadow: 3px 3px 0 var(--black);

  transform: rotate(-5deg);
}


/* =====================================
   DROP ZONE
===================================== */

.drop-zone {
  min-height: 310px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 30px;

  border: 4px dashed var(--black);

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(121, 217, 255, 0.18),
      rgba(255, 143, 171, 0.12)
    );

  cursor: pointer;

  text-align: center;

  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.drop-zone:hover {
  background:
    linear-gradient(
      135deg,
      rgba(121, 217, 255, 0.35),
      rgba(255, 143, 171, 0.2)
    );

  transform: rotate(-1deg) scale(1.01);
}

.drop-zone strong {
  font-size: 17px;
}

.drop-zone span {
  color: var(--gray);

  font-size: 13px;
}

.drop-zone small {
  margin-top: 10px;

  padding: 5px 9px;

  background: var(--white);

  border: 2px solid var(--black);

  border-radius: 7px;

  font-size: 10px;
  font-weight: bold;
}


/* =====================================
   UPLOAD ICON
===================================== */

.drop-icon {
  width: 65px;
  height: 65px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 10px;

  background: var(--blue);

  border: 4px solid var(--black);

  border-radius: 15px;

  box-shadow: 4px 4px 0 var(--black);

  font-size: 35px;
  font-weight: bold;

  transform: rotate(3deg);
}


/* Hide native input */

.file-input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


/* =====================================
   NEXT SECTION
===================================== */

.creation-next {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-top: 60px;

  padding: 22px 25px;

  background: var(--yellow);

  border: 4px solid var(--black);

  border-radius: 8px;

  box-shadow: 6px 6px 0 var(--black);

  transform: rotate(-0.5deg);
}

.creation-next p {
  font-size: 14px;
  font-weight: bold;
}


/* =====================================
   NEXT BUTTON
===================================== */

.next-button {
  flex-shrink: 0;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 12px 18px;

  background: var(--black);

  color: white;

  border: 3px solid var(--black);

  border-radius: 12px;

  font-family: inherit;

  font-size: 14px;
  font-weight: bold;

  cursor: pointer;

  box-shadow: 4px 4px 0 var(--pink);

  transition: 0.15s;
}

.next-button span {
  font-size: 18px;
}

.next-button:hover {
  transform: translate(2px, 2px);

  box-shadow: 2px 2px 0 var(--pink);
}


/* =====================================
   DECORATIONS
===================================== */

.create-page::before {
  content: "✦";

  position: fixed;

  left: 5%;

  top: 25%;

  font-size: 45px;

  color: var(--pink);

  -webkit-text-stroke: 3px var(--black);

  transform: rotate(-15deg);

  pointer-events: none;
}

.create-page::after {
  content: "★";

  position: fixed;

  right: 5%;

  top: 35%;

  font-size: 50px;

  color: var(--blue);

  -webkit-text-stroke: 3px var(--black);

  transform: rotate(15deg);

  pointer-events: none;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 900px) {
  .creation-area {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .creation-divider {
    min-height: 55px;
  }

  .creation-divider::before {
    width: 100%;
    height: 3px;
  }

  .creation-divider span {
    z-index: 1;
  }

  .creation-card {
    min-height: auto;
  }
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {
  .create-page {
    width: 94%;

    padding-top: 45px;
  }

  .create-intro {
    margin-bottom: 40px;
  }

  .create-intro h1 {
    letter-spacing: -2px;
  }

  .create-intro p {
    font-size: 15px;
  }

  .creation-card {
    padding: 18px;

    border-width: 3px;
  }

  .creation-card-header h2 {
    font-size: 19px;
  }

  .webcam-preview {
    aspect-ratio: 1 / 1;
  }

  .drop-zone {
    min-height: 250px;

    padding: 20px;
  }

  .creation-next {
    flex-direction: column;

    align-items: stretch;

    text-align: center;

    gap: 18px;
  }

  .next-button {
    justify-content: center;
  }

  .create-page::before,
  .create-page::after {
    display: none;
  }
}
