/* ----- MAIN CONTAINER BOX ----- */

* {
  box-sizing: border-box;
}

/* ----- ROOT THEMES ----- */

:root {
  --bg: #fafafa;
  --accent: #ff6f00;
  --green: #138a2a;
  --saffron: #ff7f2a;
  --safe-stroke: rgba(0, 0, 0, 0.12);
}

/* ----- MAIN BODY ----- */

body {
  margin: 0;
  font-family: Inter, Segoe UI, system-ui, Roboto, "Helvetica Neue", Arial;
  background: rgba(128, 128, 128, 0.849);
  /*alt - white, gray*/
  color: #111;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

/* ----- MAIN CONTAINER ----- */

.container {
  width: 100%;
  max-width: 1000px;
  background: white;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.4),
    0 8px 20px rgba(255, 255, 255, 0.3),
    0 12px 30px rgba(19, 136, 8, 0.4);
  animation: fadeIn 400ms ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ----- HEADER HERO SECTION ----- */

.hero {
  padding: 40px 28px;
  border-bottom: 1px solid #eee;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('./assets/image12.jpeg');

  /*  background-image: url('./assets/image10.jpeg'); USE PARAMONIC IMAGES ONLY */
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;




}

.hero h1 {
  margin: 0;
  font-size: 22px;
  color: white;
}

.hero p {
  margin: 6px 0 0;
  font-size: 15px;
  color: #e2c8c8e3;
}

/* ----- CONTROL CLASS APPLIED TO WHOLE SECTION ----- */

.section-1 {
  padding: 18px 12px;
  display: grid;
  gap: 12px;


}

/* -----NAME ROW CLASS INSIDE CONTROL SECTION ----- */

.input-row {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.name,
.goal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  flex-wrap: wrap;
  /*width: 30%; */
  min-width: 200px;
  flex: 1;
 
}



.name input[type="text"],
.goal input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 5px;
  border: 0.5px solid #ddd;
  border-radius: 5px;
  outline: none;
  transition: box-shadow 200ms, border-color 200ms;
}

.name input[type="text"]:focus,
.goal input[type="text"]:focus {
  box-shadow: 0 0 0 4px rgba(255, 127, 42, 0.12);
  border-color: var(--accent);
}

/* -----Skill ROW 2 TEST CLASS INSIDE CONTROL SECTION ----- */


.skill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px;
  width: 100%;
}

.skill-row select {
  flex: 1;
  min-width: 0;
  padding: 5px;
  border-radius: 5px;
  border: 0.5px solid #ddd;
  background: white;
  outline: none;
  transition: box-shadow 200ms, border-color 200ms;
}

.skill-row select:focus {
  box-shadow: 0 0 0 4px rgba(255, 127, 42, 0.12);
  border-color: var(--accent);
}

.skill-row .like-btn,
.skill-row .dis-btn {
  flex: 0 0 auto;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 150ms, opacity 150ms;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

}

.skill-row .like-btn {
  background: #6fe71e;
}

.skill-row .dis-btn {
  background: #e53935;
}



/* -----  BUTTON STYLES Also used by like and dislike buttons ----- */


button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 150ms, opacity 150ms;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

button:hover {
  transform: translateY(-3px);
}

button:disabled {
  opacity: 0.5;
  transform: none;
  cursor: default;
}

/* -----  Pills Sections ----- */

/* ----- RED PILL GREEN PILL ----- */

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;


}

.pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 14px;
}

.pill.like {
  background: #c7ff5a;
  color: #000;
}

.pill.dislike {
  background: #e53935;
  color: #fff;
}


/* -----  BUTTON STYLES for actions buttons only ----- */

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px;
  border-radius: 5px;
  justify-content: center;
  background: rgba(255, 153, 51, 0.1);
  border: 6px solid transparent;
  animation: tricolorGlow 4s linear infinite;



}


.footer {
  text-align: center;
  margin: 5px;
  padding: 5px;
}

.footer a {
    font-style: italic;
}


@keyframes tricolorGlow {
  0%   { box-shadow: 0 0 10px #ff9933; }
  33%  { box-shadow: 0 0 10px #ffffff; }
  66%  { box-shadow: 0 0 10px #138808; }
  100% { box-shadow: 0 0 10px #ff9933; }
}




.action-buttons-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}


.action-buttons button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.25);
}

.action-buttons button:hover {
  transform: translateY(-4px) scale(1.07);
  background-color: #ffb14d;
  /* slightly brighter saffron */
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4),
    0 0 12px rgba(255, 153, 51, 0.6);
  /* glow */
}

.action-buttons button:disabled {
  opacity: 0.5;
  transform: none;
  cursor: default;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}



.help-text {
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* ----- PREVIEW SECTION ----- */

.section-2 {
  padding: 18px 12px;
  border-top: 1px dashed #eee;
}

.canvas-wrap {
  display: flex;
  justify-content: center;
  padding: 7px;
  background: #f7f7f7;
  border-radius: 8px;


}

canvas {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);


}


/* 

.foot {
  padding: 12px 28px;
  font-size: 13px;
  text-align: right;
  color: #666;
}

.small {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}
*/








@media(max-width: 440px) {

  body {
    padding: 5px;
  }

  .hero {
    padding: 15px 18px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .hero p {
    font-size: 11px;
  }

  .skill-row {
    gap: 5px;
    padding-left: 10px;
  }

  .name,
  .goal {
    width: 100%;
 
  }


 


  .input-row {
    flex-direction: column;
    gap: 5px;
    

  }

  .skill-row select,
  .skill-row button,
  .name input,
  .goal input {
    padding: 6px;
    font-size: 14px;
  }

  .input-row label,
  .skill-row label {
    font-size: 15px;
  }

  .pill-container {

  gap: 6px;


}

.pill {
  padding: 4px 11px;
  font-size: 14px;
}



  /* MEDIA QUESRIES FOR ACTION BUTTONS */

  .action-buttons {
    justify-content: center;
    gap: 10px;
    ;
  }


  .action-buttons button {
    flex-grow: 1;
    flex-basis: 120px;
    padding: 10px 10px;
    font-size: 13px;

  }

  .footer {
  text-align: center;
  margin: 5px;
  padding: 5px;
  font-size: small;
}



}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}