/* =========================================================
   1. RESET E ESTILOS GERAIS
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    line-height: 1.6;
}

/* =========================================================
   2. FUNDO COM FÊNIX (Efeito Paralaxe e Overlay)
   ========================================================= */
.treinos-page {
    /* 2.1 Imagem de Fundo (Fênix) */
    background-image: url('bg-fenix.png'); /* !!! Certifique-se de que o arquivo existe !!! */
    
    /* 2.2 Configurações do fundo fixo */
    background-size: cover;          /* Cobre toda a tela */
    background-position: center;     /* Centraliza a fênix */
    background-repeat: no-repeat;    /* Não repete */
    background-attachment: fixed;    /* Paralaxe: Fênix fica fixa ao rolar */
    
    /* 2.3 Overlay Escuro para Contraste */
    position: relative;
    background-color: #000; /* Cor de segurança caso a imagem não carregue */
}

/* Cria o overlay preto usando um pseudo-elemento */
.treinos-page::after {
    content: "";
    position: fixed; /* Fica fixo junto com o fundo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 85% preto, 15% fênix */
    z-index: 0; /* Fica atrás de todo o conteúdo */
}

/* =========================================================
   3. NAVBAR (Mantendo o padrão preto)
   ========================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.95); /* Preto quase opaco */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo { display: flex; flex-direction: column; font-weight: 900; text-decoration: none; color: #fff; }
.logo-text { font-size: 1.4rem; letter-spacing: 2px; }
.logo-sub { font-size: 0.6rem; color: #ff6600; letter-spacing: 1px; }

nav ul { display: flex; list-style: none; }
nav ul li a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: 0.3s;
}
nav ul li a:hover, nav ul li a.active { color: #ff6600; }

/* =========================================================
   4. CONTEÚDO PRINCIPAL (Alinhado sobre o fundo)
   ========================================================= */
.treinos-main {
    padding: 130px 5% 60px; /* Mais padding top para compensar a navbar */
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Garante que o conteúdo fique acima do overlay */
    z-index: 1;
}

.treinos-intro {
    text-align: center;
    margin-bottom: 50px;
}

.treinos-intro h1 {
    font-size: clamp(2rem, 8vw, 3rem); /* Fonte fluida */
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
}

.treinos-intro p {
    color: #ff6600; /* Laranja Fênix */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================================
   5. BLOCOS DE TREINO E TABELA
   ========================================================= */
.workout-container {
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7); /* Sombra para destacar o card */
}

.muscle-header {
    background: #ff6600; /* Laranja Fênix */
    color: #000;
    padding: 12px 25px;
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilização da Tabela */
.workout-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(17, 17, 17, 0.95); /* Fundo sutilmente transparente */
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.workout-table th, .workout-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.workout-table th {
    background: rgba(26, 26, 26, 0.9);
    color: #ff6600; /* Destaque no cabeçalho */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.col-index {
    width: 35%;
    font-weight: bold;
    color: #fff;
}

.col-link {
    width: 65%;
}

/* Links do YouTube */
.yt-link {
    color: #ff6600; /* Laranja Fênix */
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.yt-link::before {
    content: "▶"; /* Ícone simples de play */
    margin-right: 8px;
    font-size: 0.8rem;
    color: #ff0000; /* Cor do YouTube */
}

.yt-link:hover {
    color: #fff;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Zebra Striping */
.workout-table tbody tr:nth-child(even) {
    background: rgba(22, 22, 22, 0.9);
}

.workout-table tbody tr:hover {
    background: rgba(31, 31, 31, 0.9);
}

/* =========================================================
   6. FOOTER E RESPONSIVIDADE
   ========================================================= */
footer { padding: 30px; text-align: center; font-size: 0.7rem; color: #555; background: rgba(0,0,0,0.9); position: relative; z-index: 1;}

@media (max-width: 768px) {
    .treinos-main {
        padding-top: 110px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .muscle-header {
        font-size: 1.1rem;
        padding: 10px 15px;
    }

    .workout-table th, .workout-table td {
        padding: 15px 10px;
        font-size: 0.85rem;
    }
}