/* style.css - MULTIARTS Painel de Controle (Rev. 4 - Atualizado) */

/* ===== VARIÁVEIS ===== */
:root {
    /* Cores Globais */
    --cor-fundo-principal: #f0f0f0;
    --cor-texto-principal: #26362c;

    /* Cores de Destaque */
    --cor-borda-base: #4B0082;

    /* Fontes */
    --fonte-terminal: "Courier New", monospace;
    font-size: 1.3em;
    color-scheme: light dark;
    accent-color: var(--cor-borda-base);
}

/* ===== BASE ===== */
body {
    background-color: var(--cor-fundo-principal);
    color: var(--cor-texto-principal);
    font-family: var(--fonte-terminal);
    -webkit-font-smoothing: none;
    margin: 0;
    padding: 20px;
    font-size: 0.9em;
    line-height: 1.6;
    cursor: url(Imagens/cursor.png), default;
}

::selection {
    color: white;
    background-color: var(--cor-texto-principal);
}
* {
    image-rendering: pixelated;
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

/* comportamento do hover (mesmo efeito que já usa) */
.fachada a.rotate:hover img {
  transform: translateY(0.5em) translateX(-0.3em) scale(1.02);
}

/* mobile: reduzir proporcionalmente */
@media (max-width: 600px) {
  .fachada a.rotate img { width: 30vw; max-width: none; }
  .fachada a.rotate.bio img { width: 32vw; }
}

body {
			overflow-x: hidden;
			background: url(Imagens/fundo2.jpg);
      background-position: center;
      background-repeat: no-repeat;
      background-size: 45%;
      background-blend-mode: none;
      background-color: var(--cor-texto-principal);
      color: var(--cor-texto-principal);
      font-family: var(--fonte-terminal);
      margin: 0;
      padding: 20px;
      font-size: 0.9em;
      line-height: 1.6;
}

header {
			width: fit-content;
			padding: 20px;
			margin: 10px auto 10px auto;
			text-wrap: balance;
			position: relative;
			z-index: 100;
			font-size: 18px;
			text-align: center;
			color: var(--cor-fundo-principal);
		}
		
		h1 { font-size: 2rem; line-height: 20px; color: #f0f0f0;
			text-shadow: none; margin: 0; text-align: center; }
		button { background: transparent; border: none; }
		
		.room {
			width: 100%;
			position: relative;
			transform: scale(0.70) translateY(-25%);
		}
		.room span {
			opacity: 0;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			font-size: calc(2rem + 1.75vw);
			color: #FFF;
			line-height: 2rem;
			filter: drop-shadow(1px 1px 0 black)
				drop-shadow(-1px 1px 0 black) 
				drop-shadow(1px -1px 0 black) 
				drop-shadow(-1px -1px 0 black);
			text-transform: lowercase;
			z-index: 99;
		}
		.rotate, .appear {
			width: fit-content;
			height: fit-content;
			display: inline-block;
			position: absolute;
			color: transparent; background:transparent;
		}
		.rotate:hover, .rotate:focus, .appear:hover, .appear:focus {
			color: transparent; background:transparent;
		}
		.rotate:hover img, .rotate:focus img {
			transform: rotate(3deg);
		}
		.rotate:hover span, .rotate:focus span, a:focus span {
			opacity: 1;
		}
		.appear img {
			opacity: 0;
		}
		.appear:hover img, .appear:hover span, a:focus img {
			opacity: 1;
		}
		
		
		.flex { display: flex; flex-wrap: wrap; margin: 10px 0; }
		.flex div { flex: 1 1 30%; padding: 0 10px; }
		.flex div:not(:last-child) { border-right: 1px solid; }

		@media (max-width: 800px) {
			.room { transform: scale(0.95); height:60vw; }
			.room span { font-size: calc(1em + 1.7vw); }
			header { margin: 10px auto; }
		}
		
		@media (max-width: 600px) {
			.flex div { flex: 1 1 100%; }
			.flex div:not(:last-child) { border-right: 0; }
		}
		
		@media (prefers-color-scheme: any){
			body { background: url("Imagens/fundo2.jpg"); background-position: center; background-repeat: no-repeat; background-size: 60%; z-index: 880;}
			header, h1 { color: white; }
	
		}

.fachada {
    width: 1200px;
    height: 750px;
    margin: auto;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.fachada a.rotate {
    position: absolute;
    display: block;
    width: 220px;
    height: auto;
    text-decoration: none;
    transform: none;
    z-index: 20;
}

.fachada a.rotate img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.fachada a.rotate span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: pointer;
    z-index: 99;
    
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow: 0 1px 0 black;
    transition: opacity 180ms ease, transform 180ms ease;
    transform-origin: center;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
    pointer-events: pointer;
}

.fachada a.rotate:hover img{
    transform: translateY(6px) translateX(4px) scale(1.02) rotate(2deg);
}

.fachada a.rotate:hover span {
    opacity: 1;
}

.fachada a.rotate.bio {
    top: 70px;
    left: 170px;
    width: 500px;
    z-index: 9999;
}

.fachada a.rotate.podcast {
    top: 80px;
    left: 500px;
    width: 400px;
    z-index: 9999;
}

.fachada a.rotate.webzine {
    top: 400px;
    left: 500px;
    width: 450px;
    z-index: 9999;
}

.fachada a.rotate.repos {
    top: 80px;
    left: 820px;
    width: 115px;
    z-index: 9999;
}

.sidenote {
    color: var(--cor-fundo-principal);
    width: 150px;
    height: 150px;
    margin: auto;
    float: right;
    box-sizing: border-box;
    border: #000000 2px;
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 99;
}

.counter {
  place-items: center;
  margin: auto;
  padding: 10px;
}

.counter img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.site-modal {
  position: fixed;
  inset: 0;                       /* top:0; right:0; bottom:0; left:0; */
  display: none;                
  align-items: center;
  justify-content: center;
  z-index: 9999;                  /* acima de tudo */
  font-family: var(--fonte-terminal);
}

.site-modal.is-open {
  display: flex;                  /* mostra o modal */
}

/* Overlay escuro */
.site-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--cor-texto-principal);
  backdrop-filter: blur(2px);
}

/* Caixa do modal */
.site-modal__dialog {
  position: relative;
  max-width: 900px;
  width: min(92%, 900px);
  max-height: 90vh;
  overflow: auto;
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  z-index: 10000;
}

/* imagem/preview */
.site-modal__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* conteúdo textual */
.site-modal__content {
  padding: 6px 0;
  color: var(--cor-texto-principal);
}

.site-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ação (link) dentro do modal */
.site-modal__action {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--cor-borda-base);
  color: white;
  text-decoration: none;
}

/* Responsividade: empilha em telas pequenas */
@media (max-width: 680px) {
  .site-modal__dialog {
    grid-template-columns: 1fr;
  }
}

/* === POP-UP SIMPLES === */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* escondido até ser ativado */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  box-shadow: #000 2px;
}

#popup-box {
  background-color: var(--cor-texto-principal);
  color: #cce8dc;            
  border: 1px solid var(--cor-fundo-principal); 
  padding: 25px 35px;
  width: 360px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  font-family: var(--fonte-terminal);
  line-height: 0.9;
}

#popup-box h2 {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 6px;
  letter-spacing: 1px;
}

#popup-box button {
  display: block;
  margin: 20px auto 0;
  background: transparent;
  border: 1px solid #cce8dc;
  color: #cce8dc;
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

#popup-box button:hover {
  background-color: #cce8dc;
  color: #19362f;
}

.footer {
    font-family: var(--fonte-terminal);
    color: var(--cor-fundo-principal);
    text-align: center;
}