/* ================================
   Configurações Gerais e Layout
================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f4f4;
    font-family: 'Roboto', sans-serif;
    color: #333;
    padding-top: 84px;   /* altura do header fixo */
    padding-bottom: 70px; /* altura do footer fixo */
}

a {
    color: #FF6600;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   Header e Footer Fixos Modernos
================================ */
.fixed-top,
.fixed-bottom {
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1040;
}

.main-header {
    background: #234320 !important;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.13);
}
.main-header .navbar {
    background: transparent !important;
    box-shadow: none;
}
.brand-logo img {
    height: 44px;
    margin-right: 12px;
}
.brand-logo span {
    font-family: 'Roboto', sans-serif;
    font-size: 1.7em;
    font-weight: 700;
    color: #fff;
}
.main-footer {
    background: #234320 !important;
    color: #fff !important;
    font-size: 1em;
    width: 100vw;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 20px 0 12px 0;
    box-shadow: 0 -0.5rem 1.4rem rgba(0,0,0,0.13);
    text-align: center;
}
.main-footer p {
    margin-bottom: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}
.main-content > .container {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* ================================
   Estilos Gerais Visual Moderno
================================ */
.bg-dark-green {
    background-color: #234320 !important;
    color: #fff !important;
}
.btn-dark-green {
  background-color: #244822 !important;
  color: #fff !important;
  border: none;
}
.btn-dark-green:hover, .btn-dark-green:focus {
  background-color: #1c3919 !important;
  color: #fff !important;
  box-shadow: none;
}

/* ================================
   Listas e Cards (Artistas, Home)
================================ */
.artist-list {
    list-style: none;
    padding: 0;
}
.artist-list li {
    background-color: #fff;
    margin-bottom: 12px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s;
}
.artist-list li:hover {
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.11);
}
.artist-list li a {
    display: block;
    padding: 16px 20px;
    font-size: 1.18em;
    font-weight: 700;
}

/* ================================
   Estilos da Página de Músicas
================================ */
.song-container {
    font-family: 'Source Code Pro', 'Courier New', Courier, monospace;
    font-size: 1.08em;
    line-height: 1.5;
    background-color: #fff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
}

/* Sessões e chunks de cifra */
.cifra-display { 
    font-family:'Source Code Pro', monospace; 
    font-size:1.08em; 
    line-height:1.5; 
    background: #fff; 
    border-radius:6px; 
    min-height:120px;
    padding: 18px 24px;
}
.line {
    white-space: pre-wrap;
    min-height: 2.3em;
    padding-top: 1.2em;
    position: relative;
}
.chunk {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Garante que o acorde fique exatamente em cima e centralizado horizontalmente */
  vertical-align: bottom;
  /* Remove qualquer espaçamento interno aqui */
  padding: 0;
  margin: 0;
}

.chord {
  font-weight: 700;
  color: #FF6600;
  font-size: 0.94em;
  font-family: 'Source Code Pro', monospace;
  /* Mantém o acorde bem colado na sílaba */
  margin-bottom: 40px;
  /* Reduz a altura da linha para o acorde ficar acima da letra */
  line-height: 1.1;
}

.lyric {
  display: inline;
  min-width: 1px;
  padding: 0;
  margin: 0;
}
.cifra-section {
    color: #234320;
    font-weight: 700;
    background: #e6f6e3;
    padding: 2px 12px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 9px;
    margin-bottom: 6px;
}
.cifra-comment {
    color: #666;
    font-style: italic;
    margin-bottom: 4px;
    margin-top: 6px;
    font-size: 0.96em;
    display: block;
}
.cifra-obs {
    background: #fffbe6;
    color: #ad8f14;
    border-left: 3px solid #ffd700;
    padding: 2px 10px;
    margin: 6px 0;
    font-size: 0.96em;
    border-radius: 2px;
    display: inline-block;
}

/* Botões e Inputs Customizados */
.btn-success {
    background-color: #234320 !important;
    border-color: #234320 !important;
}
.btn-primary {
    background-color: #FF6600 !important;
    border-color: #FF6600 !important;
}
input[type="text"]:focus, textarea:focus {
    border-color: #234320;
    box-shadow: 0 0 0 2px rgb(35 67 32 / 12%);
}
.brand-title .reforma {
    color: #FF6600;
    font-weight: 700;
    font-size: 0.95em;
}
.brand-title .cifras {
    color: #fff;
    font-weight: 700;
    font-size: 0.95em;
}
.brand-title {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    letter-spacing: 0.04em;
}
.podium {
    margin-bottom: 30px;
}
.podium-place {
    text-align: center;
    min-width: 120px;
}
.podium-trophy {
    display: block;
    margin: 0 auto 10px auto;
}
.trophy-1 { height: 110px; filter: drop-shadow(0 0 7px gold);}
.trophy-2 { height: 80px; filter: drop-shadow(0 0 5px silver);}
.trophy-3 { height: 80px; filter: drop-shadow(0 0 5px #bc8246);}
.podium-place .fw-bold { margin-top: 5px; }

@media (max-width: 767.98px) {
  .podium-place {
    margin-bottom: 20px;
  }
}

.navbar-nav .nav-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 700 !important;
  font-size: 1.08rem;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: color 0.18s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffc107 !important;
  text-decoration: none !important;
}
/* Rodapé flex moderno */
.main-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.main-footer a {
  color: #fff;
  text-decoration: none !important;
  margin-left: 10px;
}
.main-footer a:hover,
.main-footer .fa-lg:hover {
  color: #ffc107 !important;
}
.main-footer .fa-lg {
  vertical-align: middle;
  margin-left: 5px;
  transition: color 0.2s;
}
/* Responsivo para rodapé em mobile */
@media (max-width: 767.98px) {
 .main-footer .container {
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
 }
 .footer-social,
 .footer-dev,
 .footer-rights {
  width: 100%;
  margin-bottom: 4px;
 }
}

.modal-backdrop.show {
  opacity: 0.96 !important;
  background-color: #1b1b1b !important;
}

/* --- Agrupamento/Fullscreen/Print/PDF --- */
#visualizarCifra.fullscreen {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 9999;
    padding: 0;
    display: flex; flex-direction: column;
    background: #233d24;
}
#visualizarCifra.fullscreen .card-header,
#visualizarCifra.fullscreen .card-footer {
    flex-shrink: 0;
}
#visualizarCifra.fullscreen .card-body {
    flex: 1 1 auto;
    overflow: auto !important;
    background: #fff;
    max-height: 100% !important;
}
#fullscreenExitBtn {
    position: absolute;
    top: 11px; right: 19px;
    background: #111b; color: #fff; border: none; z-index: 10000;
    font-size: 2.1rem; font-weight: bold;
    border-radius: 80%;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.8;
}
#fullscreenExitBtn:active,
#fullscreenExitBtn:hover { opacity:1; background: #143218;}
@media (max-width: 700px) {
  #visualizarCifra.fullscreen .card-body {padding: 10px !important; font-size: 1.02em;}
  #fullscreenExitBtn { top: 6px; right: 6px; width: 41px; height: 41px; font-size: 1.33rem;}
}
/* Print mode & PDF export: só exibe a cifra */
@media print {
  body * { visibility: hidden !important; }
  #visualizarCifra, #visualizarCifra * { visibility: visible !important; }
  #visualizarCifra { position: absolute !important; left: 0; top: 0; width:100vw !important; height:auto !important; box-shadow:none !important; }
  #fullscreenExitBtn, .no-print { display: none !important; }
}
