/* --- FONTES E ÍCONES EXTERNOS --- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* --- ESTILOS GERAIS E RESPONSIVOS --- */
:root {
    --orange: #ff6600;
    --dark: #1a1a1a;
    --light-gray: #f4f4f4;
    --text-color: #333;
    --bg-color: #fff;
    --secondary-bg: #e9e9e9;
    --footer-bg: var(--dark);
}

/* --- MODO CLARO/ESCURO --- */
body.dark-mode {
    --dark: #f4f4f4;
    --light-gray: #1a1a1a;
    --text-color: #ccc;
    --bg-color: #2c2c2c;
    --secondary-bg: #3c3c3c;
    --footer-bg: #222;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.5s ease;
}

a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s ease;
}

/* Centraliza e limita a largura do conteúdo, usando !important para garantir a aplicação */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.5s ease;
}

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

.logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--dark);
}

.logo span {
    color: var(--orange);
}

.icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 25px;
    margin-left: auto;
}

.nav-desktop {
    display: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav a {
    padding: 15px 25px;
    display: block;
    transition: background-color 0.3s, color 0.3s, border-radius 0.3s;
    font-weight: bold;
}

nav a:hover {
    background-color: var(--orange);
    color: #fff;
    border-radius: 20px;
    padding: 10px 25px;
}

.theme-toggle {
    background-color: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon div {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-icon.open div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-icon.open div:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- SEÇÃO DE BEM-VINDOS --- */
.welcome {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--secondary-bg);
    transition: background-color 0.5s ease;
}

.welcome h1 {
    font-size: 2.8em;
    color: var(--orange);
    margin-bottom: 10px;
}

.welcome p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--text-color);
}

/* --- SLIDER DE IMAGENS --- */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

.slide-caption h3 {
    font-size: 2.5em;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

.slide-caption p {
    font-size: 1.2em;
    text-align: center;
}

/* --- SEÇÃO DE ARTISTAS --- */
.artist-section {
    padding: 40px 0;
    text-align: center;
}

.search-box {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 1em;
    border: 2px solid var(--orange);
    border-radius: 25px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.search-box input:focus {
    border-color: var(--dark);
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
}

.artist-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.artist-card {
    background-color: var(--bg-color);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.5s ease;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.artist-card a {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    padding: 5px 0;
    color: var(--orange);
}

/* ESTILIZAÇÃO DO BOTÃO "VER MAIS" E "VER MENOS" */
.show-more-btn, .show-less-btn {
    background-color: var(--orange);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.show-more-btn:hover, .show-less-btn:hover {
    background-color: #e55c00;
}

.hidden {
    display: none;
}

/* --- RODAPÉ --- */
footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    transition: background-color 0.5s ease;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    width: 30%;
    margin-bottom: 20px;
    text-align: left;
}

.footer-section h4 {
    color: var(--orange);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

/* CSS PARA OS ÍCONES DE REDES SOCIAIS */
.social-icons-list {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icons-list li {
    margin: 0;
}

.social-icons-list a {
    font-size: 1.5em;
    color: #ccc;
    transition: color 0.3s ease;
}

.social-icons-list a:hover {
    color: var(--orange);
}

/* --- BOTÃO VOLTAR AO TOPO --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--orange);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- MEDIA QUERIES (RESPONSIVIDADE) --- */
@media (max-width: 768px) {
    .logo {
        font-size: 1.4em;
    }

    .slider-container {
        display: none;
    }

    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: block;
    }

    .header-content {
        justify-content: space-between;
        align-items: center;
    }

    .nav-mobile nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        overflow: hidden;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: var(--bg-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: max-height 0.3s ease-out;
        max-height: 0;
    }

    .nav-mobile nav.nav-open {
        display: flex;
        max-height: 300px;
    }

    .theme-toggle {
        display: block;
    }

    .hamburger-icon {
        display: block;
    }

    .nav-mobile nav a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    .nav-mobile nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .nav-mobile nav ul li:last-child a {
        border-bottom: none;
    }

    .nav-mobile nav ul li {
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    .nav-mobile nav.nav-open ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-mobile nav.nav-open ul li:nth-child(1) { transition-delay: 0.1s; }
    .nav-mobile nav.nav-open ul li:nth-child(2) { transition-delay: 0.2s; }
    .nav-mobile nav.nav-open ul li:nth-child(3) { transition-delay: 0.3s; }
    .nav-mobile nav.nav-open ul li:nth-child(4) { transition-delay: 0.4s; }
    .nav-mobile nav.nav-open ul li:nth-child(5) { transition-delay: 0.5s; }

    .artist-card a {
        font-size: 1em;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }
    /* CENTRALIZA OS ÍCONES EM TELAS PEQUENAS */
    .social-icons-list {
        justify-content: center;
    }

    /* DIMINUI A ALTURA DO SLIDER EM TELAS PEQUENAS */
    .slider-container {
        height: 250px;
    }
}

@media (min-width: 769px) {
    .nav-desktop {
        display: block;
    }
    .nav-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .welcome h1 {
        font-size: 2em;
    }
    .slide-caption h3 {
        font-size: 1.8em;
    }
    .slide-caption p {
        font-size: 1em;
    }
}

/* CONTEÚDO PRINCIPAL (CIFRA) */
.main-content {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    width: 100%;
    box-sizing: border-box;
}

.cifra-container {
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    background-color: var(--secondary-bg);
    padding: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.4;
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-weight: 500;
    text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.8);
    overflow-x: auto;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.cifra-container .acorde {
    color: var(--orange);
    font-weight: bold;
}

.destaque-secao {
    font-weight: bold;
    background-color: yellow;
}

.highlight {
    background-color: yellow;
    color: #000;
    font-weight: bold;
}

.left-sidebar {
    background-color: var(--bg-color);
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 100px;
    left: 0;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.left-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

.left-sidebar li {
    padding: 5px 10px;
    border-bottom: none;
    border-right: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.left-sidebar li:last-child {
    border-right: none;
}

.left-sidebar li:hover {
    background-color: #f9f9f9;
}

.transpositor-controls,
.font-size-controls,
.metronomo-controls .controls,
.auto-scroll-controls .controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.transpositor-controls button,
.font-size-controls button,
.metronomo-controls button,
.auto-scroll-controls button,
.fullscreen-controls button {
    padding: 5px 10px;
    border: 1px solid var(--dark);
    background-color: var(--secondary-bg);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.metronomo-controls,
.auto-scroll-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.auto-scroll-controls {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Estilos para o Modo Tela Cheia */
:fullscreen {
    overflow: hidden;
}

#cifra-exibida.is-fullscreen {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
    font-size: 1.2em;
}

body.fullscreen-mode {
    overflow: hidden;
}

body.fullscreen-mode .left-sidebar {
    display: none;
}

body.fullscreen-mode main {
    display: block;
    padding: 0;
    height: 100vh;
}

body.fullscreen-mode .main-content {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    overflow-y: auto;
    max-height: 100vh;
}

.fullscreen-controls {
    display: none;
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: var(--bg-color);
    padding: 10px;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

body.fullscreen-mode .fullscreen-controls {
    display: flex;
}

body.fullscreen-mode .main-content .cifra-container {
    padding: 20px;
    border: none;
    background-color: transparent;
    height: 100vh;
    box-sizing: border-box;
}

/* ESTILOS DO POP-UP DO ACORDE */
.acorde {
    position: relative;
}

.acorde-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    background-color: var(--bg-color);
    border: 1px solid var(--dark);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 10px;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.acorde-popup svg {
    display: block;
    width: 100px;
    height: 150px;
}

/* --- ADAPTAÇÕES PARA O MODO ESCURO --- */
body.dark-mode {
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --secondary-bg: #1f1f1f;
    --footer-bg: #222;
}

body.dark-mode .main-content {
    background-color: #1f1f1f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

body.dark-mode .cifra-container {
    background-color: #1f1f1f;
    border: 1px solid #333;
    color: #e0e0e0;
}

body.dark-mode .left-sidebar {
    background-color: #1f1f1f;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

body.dark-mode .left-sidebar li:hover {
    background-color: #333;
}

body.dark-mode .transpositor-controls button,
body.dark-mode .font-size-controls button,
body.dark-mode .metronomo-controls button,
body.dark-mode .auto-scroll-controls button,
body.dark-mode .fullscreen-controls button {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .fullscreen-controls {
    background-color: #1f1f1f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

body.dark-mode .acorde-popup {
    background-color: #1f1f1f;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

body.dark-mode .acorde-popup text {
    fill: #e0e0e0;
}

/* CORREÇÃO DA COR DE DESTAQUE */
body.dark-mode .destaque-secao,
body.dark-mode .highlight {
    background-color: #444;
    color: #fff;
}

/* --- REGRAS PARA TELAS MENORES (CELULAR) --- */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }

    .main-content {
        padding: 10px;
        max-height: calc(100vh - 100px);
        width: 100%;
        box-sizing: border-box;
    }

    .cifra-container {
        padding: 10px;
        width: 100%;
        font-size: 1em;
        box-sizing: border-box;
    }

    .left-sidebar {
        top: 0;
    }

    .metronomo-controls,
    .auto-scroll-controls {
        display: none;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .social-icons-list {
        justify-content: center;
    }
}


/* CSS DA PÁGINA SOBRE */
.about-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 900px;
    line-height: 1.6;
}

.about-section h1 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.about-section h2 {
    font-size: 2rem;
    color: #ff9100;
    margin-top: 40px;
    margin-bottom: 15px;
}

.about-section p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Estilo para listas */
.about-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.about-section ul li {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.about-section ul li:hover {
    background-color: #f0f0f0;
}

.about-section ul li strong {
    color: #ff9100;
}



/* --- ESTILOS PARA O MODO ESCURO --- */
body.dark-mode .privacy-policy-section {
    background-color: #2c2c2c;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .privacy-policy-section h1,
body.dark-mode .privacy-policy-section h2 {
    color: #ff9100;
}

body.dark-mode .privacy-policy-section h2 {
    border-bottom-color: #ff9100;
}

body.dark-mode .privacy-policy-section p,
body.dark-mode .privacy-policy-section li {
    color: #ddd;
}

body.dark-mode .privacy-policy-section ul li {
    background-color: #3b3b3b;
}

body.dark-mode .privacy-policy-section ul li:hover {
    background-color: #444;
}

body.dark-mode .privacy-policy-section ul li strong {
    color: #fff;
}/* --- ESTILOS PARA O MODO ESCURO --- */
.privacy-policy-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 900px;
    line-height: 1.6;
}

.privacy-policy-section h1 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-policy-section h2 {
    font-size: 1.8rem;
    color: #ff9100;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff9100;
    padding-bottom: 5px;
}

.privacy-policy-section p,
.privacy-policy-section li {
    color: #555;
    margin-bottom: 15px;
    font-size: 1em;
}

.privacy-policy-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.privacy-policy-section ul li strong {
    color: #ff9100;
}

/* --- ESTILOS PARA O MODO ESCURO --- */
body.dark-mode .privacy-policy-section {
    background-color: #2c2c2c;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .privacy-policy-section h1,
body.dark-mode .privacy-policy-section h2 {
    color: #ff9100;
}

body.dark-mode .privacy-policy-section h2 {
    border-bottom-color: #ff9100;
}

body.dark-mode .privacy-policy-section p,
body.dark-mode .privacy-policy-section li {
    color: #ddd;
}

body.dark-mode .privacy-policy-section ul li {
    background-color: #3b3b3b;
}

body.dark-mode .privacy-policy-section ul li:hover {
    background-color: #444;
}

body.dark-mode .privacy-policy-section ul li strong {
    color: #fff;
}

/* --- RESPONSIVIDADE PARA CELULAR (FONTES MENORES) --- */
@media (max-width: 768px) {
    .privacy-policy-section h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .privacy-policy-section h2 {
        font-size: 1.4rem;
        margin-top: 25px;
        margin-bottom: 8px;
        padding-bottom: 2px;
    }

    .privacy-policy-section p,
    .privacy-policy-section li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .privacy-policy-section {
        padding: 20px;
        margin: 15px auto;
    }
}



