/*
Theme Name: Portal Tudo Musica - by RVD
Author: Ramon Dantas
Description: Tema desenvolvido por Ramon Vieira para o Portal Tudo Música.
Version: 2.0 (Layout Clássico)
*/

/* RESET UNIVERSAL (Mata os alertas das linhas 56 e 57) */
*, *::before, *::after {
    box-sizing: border-box;
}

body { margin: 0; padding: 0; font-family: 'Open Sans', 'Segoe UI', sans-serif; background: #fff; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; transition: 0.2s; }

/* =========================================
   CABEÇALHO (HEADER) - ESTILO CLÁSSICO
   ========================================= */
.header-top { background-color: #16232c; border-bottom: 5px solid #e99d14; position: relative; z-index: 10; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }

/* Efeito da Logo "Saindo" do Header */
.logo-wrapper { background: #16232c; padding: 10px 20px 20px; border-radius: 0 0 15px 15px; margin-top: 30px; display: inline-block; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.logo-wrapper strong { color: #fff; font-size: 28px; display: flex; align-items: center; }
.logo-wrapper strong span { color: #e99d14; margin-left: 5px; font-style: italic; }

.search-box { flex-grow: 1; max-width: 400px; position: relative; margin-left: 20px; }
.search-box input { width: 100%; padding: 10px 40px 10px 15px; border-radius: 4px; border: none; font-size: 14px; outline: none; }
.search-box button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 16px; cursor: pointer; color: #666; }

.top-nav { display: flex; gap: 20px; }
.top-nav a { color: #fff; font-size: 14px; font-weight: 600; }
.top-nav a:hover { color: #e99d14; }

/* Submenu de Categorias */
.header-bottom { border-bottom: 1px solid #eaeaea; background: #fff; }
.header-bottom .container { display: flex; justify-content: flex-start; padding-left: 250px; }
.cat-nav { display: flex; gap: 25px; padding: 15px 0; }
.cat-nav a { color: #555; font-size: 14px; font-weight: 600; }
.cat-nav a:hover { color: #e99d14; }

/* =========================================
   PÁGINA DA CIFRA (SINGLE) - 3 COLUNAS
   ========================================= */
.breadcrumb { font-size: 12px; color: #999; margin: 20px 0; }
.breadcrumb a { color: #999; }

.grid-cifra { display: grid; grid-template-columns: 200px 1fr 320px; gap: 40px; margin-bottom: 50px; align-items: start; }

/* Lateral Esquerda (Ferramentas) */
.artist-img { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 4px; border: 1px solid #eaeaea; margin-bottom: 20px; }

.box-tool { border: 1px solid #eaeaea; border-radius: 6px; padding: 15px; text-align: center; margin-bottom: 15px; background: #fff; }
.box-tool.active-tab { border-left: 3px solid #e99d14; }
.tool-label { font-size: 11px; color: #999; font-weight: bold; margin-bottom: 10px; display: block; text-transform: uppercase; }
.tool-btn-group { display: flex; gap: 5px; }
.tool-btn-group button { flex: 1; padding: 8px; border: 1px solid #ccc; background: #fff; border-radius: 4px; font-weight: bold; cursor: pointer; color: #555; font-size: 12px; }
.tool-btn-group button:hover { border-color: #999; }
.btn-reset { font-size: 11px; color: #999; background: none; border: none; text-decoration: underline; cursor: pointer; margin-top: 10px; width: 100%; }
.btn-rolar { background: #ff7f00; color: #fff; border: none; width: 100%; padding: 12px; border-radius: 4px; font-weight: bold; cursor: pointer; margin-bottom: 10px; }
.btn-imprimir { background: #2b3b47; color: #fff; border: none; width: 100%; padding: 12px; border-radius: 4px; font-weight: bold; cursor: pointer; }

.links-uteis { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.links-uteis a { font-size: 13px; color: #555; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* Centro (Cifra) */
.cifra-content h1 { font-size: 32px; font-weight: 800; margin: 0 0 5px 0; color: #111; }
.cifra-content h2 { font-size: 18px; font-weight: 700; color: #e99d14; margin: 0 0 20px 0; }
.cifra-meta { font-size: 13px; color: #666; margin-bottom: 15px; }
.cifra-badge { display: inline-block; background: #16232c; color: #fff; padding: 5px 15px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-bottom: 20px; }
.cifra-tom { font-size: 14px; color: #555; margin-bottom: 20px; }
.cifra-tom strong { color: #e99d14; }

.cifra-texto { font-family: 'Courier New', Courier, monospace; font-size: 16px; line-height: 1.8; color: #777; white-space: pre-wrap; word-wrap: break-word; }
.cifra-texto strong { color: #e99d14; font-weight: bold; }

/* Lateral Direita (Vídeos e Views) */
.views-count { text-align: right; font-size: 14px; color: #111; margin-bottom: 20px; font-weight: 600; }
.views-count strong { color: #e99d14; font-size: 20px; font-weight: 800; }

.video-tabs { display: flex; border-radius: 4px 4px 0 0; overflow: hidden; }
.video-tabs div { padding: 10px 15px; font-size: 12px; font-weight: bold; cursor: pointer; background: #2b3b47; color: #fff; border-right: 1px solid #16232c; }
.video-tabs div.active { background: #16232c; }

.video-player { background: #16232c; padding: 5px; border-radius: 0 0 4px 4px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Responsividade */
@media (max-width: 900px) {
    .grid-cifra { grid-template-columns: 1fr; gap: 20px; }
    .header-bottom .container { padding-left: 15px; }
    .logo-wrapper { margin-top: 0; padding: 10px; border-radius: 0; }
}


/* =======================================
   CORREÇÃO DEFINITIVA: QUEBRA DA CIFRA
   ======================================= */
/* 1. Garante que a coluna respeite o limite do Grid */
.cifra-content {
    min-width: 0;
    width: 100%;
}

/* 2. Regra universal para quebrar linha em tags <pre> sem esconder texto */
.cifra-texto {
    white-space: pre-wrap !important;       /* Padrão CSS3 */
    white-space: -moz-pre-wrap !important;  /* Mozilla */
    white-space: -pre-wrap !important;      /* Opera antigo */
    white-space: -o-pre-wrap !important;    /* Opera mais novo */
    word-wrap: break-word !important;       /* IE e Edge */
    overflow-wrap: break-word !important;   /* Navegadores modernos */
    width: 100%;
    box-sizing: border-box;
}