/* ==== ESTILO GERAL ==== */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background: #121212;
  color: #f1f1f1;
}

/* ==== TOPO COM ABAS ==== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e6e3e3;
  padding: 10px 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.dark .topbar {
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(255,0,0,0.3);
}

.topbar h2 {
  margin: 0;
  font-size: 18px;
  color: #007bff;
}

body.dark .topbar h2 {
  color: red;
}

.tab-menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Estilos para a barra de pesquisa */
.search-container {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

#searchInput {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.3s;
  width: 150px;
}

#searchInput:focus {
  border-color: #007bff;
}

#searchButton {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#searchButton:hover {
  background: #0056b3;
}

body.dark #searchInput {
  background: #2a2a2a;
  color: #f1f1f1;
  border-color: #444;
}

body.dark #searchInput:focus {
  border-color: red;
}

body.dark #searchButton {
  background: red;
}

body.dark #searchButton:hover {
  background: #a30000;
}

.tab-menu a {
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: 0.3s;
}

.tab-menu a:hover,
.tab-menu a.active {
  background: #007bff;
  color: #fff;
}

body.dark .tab-menu a {
  background: #2a2a2a;
  color: #f1f1f1;
}

body.dark .tab-menu a:hover,
body.dark .tab-menu a.active {
  background: red;
  color: #fff;
}

#themeToggle {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 16px;
  transition: 0.3s;
}

#themeToggle:hover {
  transform: scale(1.05);
}

body.dark #themeToggle {
  background: #2a2a2a;
  color: #f1f1f1;
  border-color: #444;
}

/* ==== CONTEÚDO ==== */
.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ==== PLAYER ==== */
.player-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
  margin-bottom: 30px;
}

body.dark .player-card {
  background: #1e1e1e;
  box-shadow: 0 4px 15px rgba(212, 0, 0, 0.4);
}

.music-cover {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  margin-right: 20px;
  background-size: cover;
  background-position: center;
  border: 2px solid #007bff;
}

body.dark .music-cover {
  border-color: red;
}

.music-info h3 {
  margin: 0 0 5px 0;
  font-size: 20px;
}

.music-info p {
  margin: 0;
  color: #666;
}

body.dark .music-info p {
  color: #bbb;
}

.live {
  color: #d40000;
  font-weight: bold;
}

.controls button {
  margin-right: 10px;
  background: #007bff;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.controls button:hover {
  background: #0056b3;
}

body.dark .controls button {
  background: red;
}

body.dark .controls button:hover {
  background: #a30000;
}

/* ==== MENSAGEM ABAIXO DO PLAYER ==== */
/* Fundo azul clarinho — igual nos dois modos */
.radio-message {
  background: rgba(0, 123, 255, 0.25);  /* Azul bem clarinho */
  color: inherit;                       /* Mantém a cor original do texto */
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

/* Modo escuro — mantém o mesmo fundo */
body.dark .radio-message {
  background: rgba(0, 123, 255, 0.25);  /* Mesmo azul clarinho */
  color: inherit;                       /* Mantém a cor do texto */
}



body.dark .radio-message {
  background: #0056b3;
}

/* ==== MURAL ==== */
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

body.dark .form-section {
  background: #1e1e1e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.form-section h2 {
  color: #007bff;
}

body.dark .form-section h2 {
  color: red;
}

.form-box input,
.form-box textarea {
  width: 100%;
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}

body.dark .form-box input,
body.dark .form-box textarea {
  background: #2a2a2a;
  color: #f1f1f1;
  border-color: #444;
}

/* ==== BOTÕES ==== */
.custom-file-label {
  background: #007bff;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.custom-file-label:hover {
  background: #0056b3;
}

#takePhotoBtn {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  margin-left: 8px;
}

#takePhotoBtn:hover {
  background: #1e7e34;
}

/* ==== CÂMERA ==== */
#cameraContainer {
  background: #f0f0f0;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}

body.dark #cameraContainer {
  background: #222;
}

#captureBtn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#captureBtn:hover {
  background: #0056b3;
}

/* ==== IMAGEM ==== */
.mural-img {
  width: 180px;
  border-radius: 10px;
  margin-top: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ==== RODAPÉ ==== */
.site-footer {
  background: #e6e3e3;
  color: #333;
  padding: 40px 20px 20px;
  text-align: center;
  border-top: 2px solid #007bff;
}

.site-footer .footer-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 900px;
  margin: auto;
}

.site-footer .footer-content div {
  min-width: 250px;
}

.footer-bottom {
  margin-top: 25px;
  font-size: 14px;
  color: #555;
}

body.dark .site-footer {
  background: #1e1e1e;
  color: #f1f1f1;
  border-top: 2px solid red;
}

/* ==== RESPONSIVIDADE ==== */
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .search-container {
    margin-right: 0;
    width: 100%;
    justify-content: center;
  }
  #searchInput {
    width: 70%;
  }
  .tab-menu {
    justify-content: center;
  }
  #takePhotoBtn {
    display: block;
    width: 100%;
    margin-left: 0;
  }
}

/* ==== CARROSSEL AUTOMÁTICO ==== */
.carousel-container {
  width: 100%;
  max-width: 320px;
  margin: 30px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
  position: relative;
  background: #fff;
}

body.dark .carousel-container {
  background: #1e1e1e;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.carousel {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

body.dark .carousel-item {
  background-color: #1e1e1e;
}

.carousel-item img {
  width: 100%;
  max-width: 200px;     /* garante proporção parecida com funca.png */
  height: 150px;        /* altura idêntica para todas */
  object-fit: contain;  /* mantém proporção sem cortar */
  display: block;
  background-color: #fff;
  border-radius: 12px;
  padding: 8px;
  margin: auto;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  transition: 0.3s;
}

.carousel-indicators span.active {
  background: #007bff;
}

body.dark .carousel-indicators span.active {
  background: red;
}

/* ==== AO VIVO PISCANDO SOMENTE COM PLAY ==== */

/* Estado normal */
.live {
  color: #d40000;
  font-weight: bold;
}

/* Classe ativada somente durante o play */
.live.live-active {
  animation: liveBlink 1s infinite;
}

/* Alternando 3 cores */
@keyframes liveBlink {
  0%   { color: #ff0000; }   /* Vermelho *
  33%  { color: #ffd900; }   /* Amarelo */
  66%  { color: #00ff15; }   /* Verde */
  100% { color: #ff0000; }   /* Volta ao vermelho */
}

.now-playing-box {
  padding: 6px 10px;
  background: rgba(0, 123, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

body.dark .now-playing-box {
  background: rgba(0, 123, 255, 0.15); /* mesmo azul claro */
}

.now-playing-box p {
  margin: 2px 0;
  font-weight: bold;
  font-size: 16px;
}

/* ==== AJUSTE EXCLUSIVO PARA A IMAGEM DA ALLDUX ==== */
.carousel-item img[alt="Alldux"] {
  width: 120%;           /* faz a imagem “zoomar” um pouco */
  height: auto;          /* mantém proporção */
  max-height: 180px;     /* controla pra não sair do quadro */
  object-fit: cover;     /* cobre melhor o espaço visível */
  background: none;      /* remove o fundo extra */
  margin-left: -10%;     /* centraliza o zoom */
  border-radius: 10px;
}

/* === 🎧 MURAL - ESTILO DE REDE SOCIAL === */
#muralUl {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#muralUl li {
  background: #ffffff;
  color: #222;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  padding: 14px 16px;
  transition: all 0.2s ease;
  word-wrap: break-word;
}

#muralUl li:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tema escuro */
body.dark #muralUl li {
  background: #1b1b1b;
  color: #eaeaea;
  box-shadow: 0 3px 8px rgba(255, 255, 255, 0.05);
}

body.dark #muralUl li:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Mensagem principal */
#muralUl li .message {
  font-size: 1rem;
  line-height: 1.4em;
  margin-bottom: 8px;
  color: inherit;
}

/* Informações do autor */
#muralUl li .author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9em;
  color: #666;
}

body.dark #muralUl li .author {
  color: #aaa;
}

#muralUl li .author strong {
  color: #007bff;
  font-weight: 600;
}

body.dark #muralUl li .author strong {
  color: #58a6ff;
}

/* Data */
#muralUl li small {
  font-size: 0.85em;
  color: #999;
}

body.dark #muralUl li small {
  color: #bbb;
}

/* Botão de apagar */
#muralUl button {
  background: #ff4b4b;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#muralUl button:hover {
  background: #e63939;
  transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 600px) {
  #muralUl li {
    padding: 12px;
  }

  #muralUl li .message {
    font-size: 0.95rem;
  }

  #muralUl li .author {
    font-size: 0.85em;
  }

  #muralUl button {
    font-size: 0.8em;
    padding: 5px 10px;
  }
}

/* === MODAL DE FOTO AMPLIADA === */
.mural-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.mural-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  animation: zoomIn 0.3s ease;
}

.mural-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.mural-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff3b3b;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: 0.2s;
}

.mural-modal-close:hover {
  background: #ff0000;
  transform: scale(1.1);
}

/* Efeitos de animação */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === VISUALIZAR FOTO AMPLIADA === */
#imageModal {
  display: none; /* escondido por padrão */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

#imageModal.active {
  display: flex; /* só mostra quando tiver a classe active */
}

#imageModal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  object-fit: contain;
  background: none;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#closeModal {
  position: absolute;
  top: 25px;
  right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 5px 12px;
  line-height: 1;
  transition: background 0.3s;
  z-index: 10000;
}

#closeModal:hover {
  background: rgba(255, 0, 0, 0.6);
}

#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

#imageModal.active {
  display: flex;
}

#modalImg {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  animation: zoomIn 0.3s ease-out;
}

#closeModal {
  position: absolute;
  top: 25px;
  right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 6px 14px;
  line-height: 1;
}

#closeModal:hover {
  background: rgba(255, 0, 0, 0.6);
}

#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

#imageModal.active {
  display: flex; /* Abre o modal */
}

#modalImg {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  animation: zoomIn 0.3s ease-out;
}
