/* =========================
   🔹 Importação de Fontes
========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto+Slab:wght@400;700&display=swap');

@font-face { font-family: "Inconsolata"; src: url("./fonts/static/Inconsolata-Regular.ttf"); }
@font-face { font-family: "Inconsolata-Bold"; src: url("./fonts/static/Inconsolata-Bold.ttf"); }
@font-face { font-family: "Inconsolata-ExtraBold"; src: url("./fonts/static/Inconsolata-ExtraBold.ttf"); }
@font-face { font-family: "Inconsolata-Medium"; src: url("./fonts/static/Inconsolata-Medium.ttf"); }
@font-face { font-family: "Inconsolata-Regular"; src: url("./fonts/static/Inconsolata-Regular.ttf"); }

/* =========================
   🔹 Variáveis
========================= */
:root {
  /* Tema Neon */
  --cor-principal: #6a00ff;
  --cor-secundaria: #ff00aa;
  --cor-fundo: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  --texto-claro: #f1f1f1;
  --texto-escuro: #111;

  /* Tema Azul */
  --main-color: #ffffff;        /* Branco para textos */
  --secondary-color: #cce4f6;   /* Azul bem claro */
  --tertiary-color: #5b9bd5;    /* Azul médio */
  --quaternary-color: #2f70af;  /* Azul forte */
  --quinary-color: #163f73;     /* Azul escuro */
  --senary-color: #4fc3f7;      /* Azul vibrante */
  --septenary-color: #0288d1;   /* Azul intenso */
}

/* =========================
   🔹 Reset + Base
========================= */
* {
  box-sizing: border-box;
  color: var(--main-color);
  cursor: pointer;
}


body {
  background: linear-gradient(135deg, var(--quinary-color), var(--tertiary-color));
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 16px;
  font-family: "Inconsolata-Regular";
  color: var(--main-color);
  animation: fadeIn 1s ease-in-out;
}

h2, p { margin: 0; }

.flexDev {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   🔹 Cabeçalho
========================= */
header {
  background: var(--cor-principal);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-family: 'Roboto Slab', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: brilho 3s infinite alternate;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* =========================
   🔹 Containers
========================= */
.container {
  margin: 60px auto;
  width: 500px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.top { margin-top: 40px; }
.top img { width: 20px; height: 20px; margin-right: 10px; }

/* =========================
   🔹 Introdução
========================= */
.intro-container {
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.intro-container .intro {
  font-size: 32px;
  font-family: "Inconsolata-Bold";
  width: 500px;
  font-weight: 800;
  padding: 6px;
}

.intro-container .intro-sub {
  font-size: 14px;
  font-family: "Inconsolata-Regular";
}

.intro-container .intro-main-ticket {
  font-size: 40px;
  line-height: 1.5;
  width: auto !important;
}

.intro-container .intro-sub-ticket {
  font-size: 16px;
  line-height: 1.5;
}

/* =========================
   🔹 Formulário
========================= */
.form input[type="file"] { display: none; }

.form-group {
  width: 350px;
  flex-direction: column;
  justify-content: left;
}

.form-group label {
  text-align: left;
  margin-right: auto;
  margin-top: 20px;
}

.input-file {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--tertiary-color);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  width: 100%;
}
.input-file p { margin: 10px 0; font-size: 12px; }
.input-file img {
  padding: 6px;
  border-radius: 10px;
  background-color: rgba(22, 63, 115, 0.5);
}

.input-file:hover {
  outline: var(--secondary-color) solid 2px;
  background-color: rgba(91, 155, 213, 0.2);
}

.image-preview { display: none; }
.image-preview img {
  width: 50px; height: 50px; margin-bottom: 10px;
}

.btn-action-image {
  background-color: var(--quaternary-color);
  margin-right: 10px;
  font-size: 10px;
  padding: 5px;
  border: none;
  border-radius: 5px;
}
.btn-action-image:hover {
  text-decoration-line: underline;
  background-color: var(--quinary-color);
}

input {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  border: 0.5px solid var(--tertiary-color);
}

input:focus {
  outline: var(--secondary-color) solid 1px;
  border: 2px solid var(--senary-color);
}
input:hover { background-color: rgba(255, 255, 255, 0.1); }

input[type="submit"] {
  background-color: var(--senary-color);
  color: var(--quinary-color);
  font-weight: 600;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  padding: 10px;
  width: 100% !important;
}
input[type="submit"]:hover {
  background-color: var(--septenary-color);
  color: white;
}

.label-file {
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  justify-content: left;
  width: 100%;
}
.label-file img { margin-right: 5px; }

/* =========================
   🔹 Ticket
========================= */
.ticket-container {
  background: linear-gradient(135deg, var(--quaternary-color), var(--tertiary-color));
  border-radius: 15px;
  width: 500px;
  height: 300px;
  flex-direction: row;
  justify-content: space-between;
  padding: 25px;
  margin: 0 auto;
}

.ticket-left {
  flex-direction: column;
  justify-content: space-around;
  align-items: start;
  height: 300px;
  padding: 20px 0;
}

.ticket-header img { width: 30px; height: 30px; }

.ticket-title {
  text-align: left;
  margin-left: 15px;
  flex-direction: column;
  gap: 10px;
}

.ticket-item { text-align: left; }
.ticket-item-text { flex-direction: column; gap: 5px; }

.ticket-item h3 { margin: 0; }

.ticket-item label {
  display: flex;
  align-items: center;
}
.ticket-item label img {
  width: 20px; height: 20px; margin-right: 5px;
}

#avatar {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  margin-right: 15px;
}

.ticket-item-text h3 { font-family: "Inconsolata-Regular"; }
.ticket-item-text #github,
.ticket-title #date { color: var(--secondary-color); }

.ticket-right { transform: rotate(90deg); }
.ticket-right h3 { color: var(--main-color); }

/* =========================
   🔹 Galeria (caso use)
========================= */
main.galeria {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.imagem {
  background: #222;
  padding: 0.8rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.imagem img {
  max-width: 100%;
  border-radius: 8px;
  transition: transform 0.4s ease;
}
.imagem:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 25px rgba(106, 0, 255, 0.8);
}
.imagem:hover img { transform: scale(1.1); }

/* =========================
   🔹 Botões
========================= */
.botao {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  background: var(--cor-secundaria);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--cor-secundaria);
  transition: all 0.3s ease;
}
.botao:hover {
  background: var(--cor-principal);
  box-shadow: 0 0 20px var(--cor-principal), 0 0 30px var(--cor-principal);
  transform: scale(1.05);
}

input::placeholder {
  color: white;
  opacity: 1; /* garante que fique visível */
}

/* =========================
   🔹 Rodapé
========================= */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #111;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* =========================
   🔹 Animações
========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brilho {
  from { text-shadow: 0 0 5px #fff, 0 0 15px var(--cor-secundaria); }
  to { text-shadow: 0 0 20px var(--cor-principal), 0 0 40px var(--cor-secundaria); }
}

.erro-abaixo, .erro-acima {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.erro-acima {
  margin-bottom: 5px;
}

/* =========================
   🔹 Responsividade
========================= */
@media (max-width: 467px) {
  .container, .form-group, .input-file, input[type="submit"], .ticket-container {
    width: 300px !important;
  }

  .intro-container .intro {
    font-size: 26px !important;
    width: 320px !important;
  }
  .intro-container .intro-sub { font-size: 16px !important; }
  .input-file p { font-size: 12px !important; }
  .label-file { font-size: 10px !important; }

  .ticket-container {
    font-size: 0.8rem;
    padding: 10px !important;
  }
  .ticket-left {
    justify-content: space-evenly;
    height: auto;
    width: 80%;
    gap: 20px;
  }
  .ticket-right { margin-right: -15px !important; }
}

input:invalid:focus { border: red 1px solid; }
