:root{
  --bg: #2d3133;
  --panel: #4c5154;
  --title: #53ff1e8c;
  --radius: 18px;
  --gap: 26px;
  --accent: #53ff1e;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
}

.topbar{
  height: 100px;
  background-color: #1d1f20;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.homepage-icon{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  color: white;
  text-decoration: none;
}

.homepage-text{
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  & p{
    margin: 0;
    font-weight: bold;
  }

  & span{
    color: var(--accent);
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent);
  }

}

.app{
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: var(--gap);
  justify-content: center;
}

/* Painéis */
.panel{
  position: relative;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 0 rgba(0,0,0,.25) inset;
}

/* Título central vermelho */
.panel__title{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--title);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  font-size: 22px;
}

/* Preview grande */
.panel--preview{
  width: 1280px;
  height: 720px;
  padding-top: 18px;
  padding-bottom: 18px;
  align-self: center;
  background-color: white;
}

/* iframe ocupa o painel e fica por baixo do título */
.previewFrame{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  background: transparent;
}

/* Área dos editores em 2 colunas */
.editors{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.panel--editor{
  height: 520px;
}

/* Textarea ocupa quase tudo */
textarea{
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  padding: 14px;
  padding-top: 18px;
  border-radius: calc(var(--radius) - 6px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.35;
  color: white;
}

/* Footer com status (linha/erro) */
.panel__footer{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  font-size: 12px;
  color: #98c250;
  pointer-events: none;
  user-select: none;
}

/* O título nos editores fica no topo visualmente */
.panel--editor .panel__title{
  top: 26px;
  /* transform: translate(-50%, 0); */
}

/* Acessibilidade */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

/* Topbar nav (opcional) */
.topbar{
  height: 100px;
  background-color: #1d1f20;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.topbar__nav{
  display: flex;
  gap: 14px;
  align-items: center;
}

.topbar__link{
  color: #b8c0c2;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.topbar__link:hover{ color: #fff; }

/* Bloco SEO (discreto, não atrapalha o app) */
.seo-blurb{
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 28px;
}
.seo-blurb h1{
  font-size: 16px;
  margin: 0 0 6px;
  color: #ffffff;
  letter-spacing: .2px;
}
.seo-blurb p{
  margin: 0;
  color: #b8c0c2;
  line-height: 1.55;
  font-size: 13px;
}


/* Responsivo */
@media (max-width: 860px){
  .editors{ grid-template-columns: 1fr; }
  .panel--preview{ height: 320px; }
}
