* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Dropdown de redes sociais abaixo do botão social-btn */
.social-modal {
  position: fixed;
  bottom: 6.2rem;
  right: 2rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
}
.social-modal.show {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}
.social-panel {
  background: #2A2634;
  border-radius: 1rem;
  box-shadow: 0 2px 16px #0008;
  padding: 2.2rem 2.2rem 2rem 2.2rem;
  min-width: 340px;
  max-width: 400px;
  width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  max-height: 60vh;
  overflow-y: auto;
}
/* Botão flutuante de redes sociais no canto inferior direito */
/* Wrapper para botões sociais flutuantes */
.social-btns-wrapper {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1400;
}

.social-btn:hover {
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 5px 1rem rgba(255, 248, 107, 0.2);
}

.social-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(245deg, #9572FC 0%, #43E7AD 50%, #E2D45C 100%);
  color: #232136;
  font-size: 2rem;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 12px #0006;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.social-btn-linkedin {
  background: linear-gradient(245deg, #0077b5 0%, #43E7AD 50%, #E2D45C 100%);
}
/* Botão flutuante do histórico no canto superior direito */
.history-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(245deg, #9572FC 0%, #43E7AD 50%, #E2D45C 100%);
  color: #232136;
  font-size: 2rem;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 12px #0006;
  cursor: pointer;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
/* Botão X para fechar modal de redes sociais (mesmo estilo do histórico) */
.modal-content .history-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: opacity 0.18s, color 0.18s;
    z-index: 2;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background: #232136;
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 16px #0008;
    max-width: 90vw;
    width: 350px;
    text-align: left;
}
.modal-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.modal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}
.modal-content a {
    color: #43E7AD;
    text-decoration: underline;
}
.modal-content button {
    background: #43E7AD;
    color: #232136;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-content button:hover {
    background: #9572FC;
    color: #fff;
}


/* Dropdown de histórico abaixo do botão */
.history-modal {
  position: fixed;
  top: 5.2rem;
  right: 2rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
}
.history-modal.show {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}
.history-panel {
  background: #2A2634;
  border-radius: 1rem;
  box-shadow: 0 2px 16px #0008;
  padding: 2.2rem 2.2rem 2rem 2.2rem;
  min-width: 340px;
  max-width: 400px;
  width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  max-height: 60vh;
  overflow-y: auto;
}
.history-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: opacity 0.18s, color 0.18s;
  z-index: 2;
}
.history-close:hover {
  opacity: 1;
  color: #ffe66d;
}
.history-panel h3 {
  margin: 0 0 1.2rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.history-item {
  background: #232136;
  border-radius: 0.6rem;
  padding: 0.7rem 1rem 0.6rem 1rem;
  box-shadow: 0 1px 4px #0002;
  border: 1px solid #353146;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.history-item:hover {
  background: #29263a;
  box-shadow: 0 2px 10px #9572fc22;
}
.history-meta {
  font-size: 0.93rem;
  color: #ffe66d;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.history-question {
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
}

body {
    background-image: url("./assets/bg.jpg");
    background-repeat: no-repeat;
    /* keyword */
    background-size: 100% auto;
    /* width height*/
    background-position: top center;
    /* vertical (y) horizontal (x)*/
    background-color: #121214;
    /* HEX: RR, GG, BB*/
    color: white;
}

body *,
:root {
    font-family: 'Inter';
    line-height: 160%;
}

header {
    padding-top: 2rem;
    text-align: center;

}

/* 1920 x 1080 */

header img {
    width: 15rem;
}

main {
    max-width: 48rem;
    width: 98%;
    margin: 3rem auto;
}

section {
    background-image: linear-gradient(90deg, #9572FC 0%, #43E7AD 50%, #E2D45C 100%);
    border-radius: 0.625rem;
    padding-top: 4px;
    /* aumenta a largura da caixa principal */
    max-width: 46rem;
    margin: 0 auto;
}

section>div {
    padding: 2.5rem;
    padding-top: 2rem;
    border-radius: 0.5rem;
    background-color: #2A2634;
}

section h2 {
    letter-spacing: -0.47px;
}

section p {
    letter-spacing: -0.18px;
    color: #A1A1AA;
}

main section {
    opacity: 0;
    transform: translateY(2rem);

    animation-name: appear;
    animation-duration: 700ms;
    animation-fill-mode: forwards;
}

@keyframes appear {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

input,
select {
    all: unset;
    border: 2px solid #9147ff;
    border-radius: 0.5rem;
    padding: 0.675rem;
    font-size: 0.875rem;
    background-color: #00000077;
}

input {
    flex: 1;
}

button {
    width: 100%;
    border: 0;
    background-image: linear-gradient(245deg, #9572FC 0%, #43E7AD 50%, #E2D45C 100%);
    border-radius: 0.5rem;
    padding: 0.675rem;
    font-weight: 570;
    text-transform: uppercase;
    letter-spacing: 0.12px;

    transition: all 0.3s;
}

button:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 5px 1rem rgba(255, 248, 107, 0.2);
}

button:disabled {
    transition: initial;
    transform: initial;
    box-shadow: initial;
    cursor: not-allowed;
    opacity: 0.5;
    color: black;
}

.hidden {
    display: none;
}

.loading {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}

#aiResponse {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    padding: 1.25rem;
    border-left: 0.25rem solid;
    border-image: linear-gradient(200deg, #9572FC 0%, #43E7AD 50%, #E2D45C 100%);
    border-image-slice: 1;
    margin-top: 1.25rem;
    box-shadow: 0 2px 16px #0006;
}

.response-content {
    font-family: 'Work Sans', 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.7;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: rgba(36, 34, 52, 0.85);
    border-radius: 0.4rem;
    margin: 0.5rem 0;
    word-break: break-word;
}

.response-content ul {
    margin: 0.5rem 0 0.5rem 1.2rem;
    padding-left: 1.2rem;
}

.response-content li {
    margin-bottom: 0.3rem;
}

.response-content p {
    margin: 0.5rem 0;
    color: #fff;
}

.response-content strong,
.response-content b {
    color: #ffffff;
    font-weight: bold;
}

.response-content em {
    color: #E2D45C;
}

.response-content a {
    color: #9572FC;
    text-decoration: underline;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #232136;
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 16px #0008;
    max-width: 90vw;
    width: 350px;
    text-align: left;
}

.modal-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.modal-content a {
    color: #43E7AD;
    text-decoration: underline;
}

.modal-content button {
    background: #43E7AD;
    color: #232136;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-content button:hover {
    background: #9572FC;
    color: #fff;
}
