/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    padding-top: 80px;
}

/* Header Estilo Clash */
header {
    background-color: #1C375C;
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
}

/* --- MENU LATERAL (SIDEBAR) --- */

.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #1C375C 0%, #0a1525 100%);
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.6);
    border-right: 3px solid #FFD700;
    white-space: nowrap;
}

.sidebar.active {
    width: 250px;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar a {
    padding: 10px 10px 10px 32px;
    text-decoration: none;
    font-size: 20px;
    color: #f1f1f1;
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar a:hover, .sidebar a.active {
    color: #FFD700;
    background-color: rgba(255, 215, 0, 0.15);
    padding-left: 45px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.sidebar .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    padding: 0;
    color: #fff;
    border-bottom: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://etgeekera.com/wp-content/uploads/2016/05/clash-royale-banner.jpg?w=788');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px black;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 600px;
}

.btn-cta {
    background-color: #FFD700;
    color: #1C375C;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: scale(1.05);
}

/* Cards Home */
.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 50px 5%;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 5px solid #367CFF;
}

.card h3 {
    color: #1C375C;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Estilos Específicos das Páginas Internas */
.conteudo-pagina {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('https://www.clashroyaledicas.com/wp-content/uploads/2023/03/skin-campo-treino-clash-royale-boot-camp-1024x558.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 10%;
    min-height: 80vh;
    text-align: center;
}

.conteudo-pagina h1 {
    color: #1C375C;
    margin-bottom: 10px;
}

.intro-text {
    margin-bottom: 40px;
    color: #666;
}

.dica-box {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #FFD700;
}

.dica-box h2 {
    margin-bottom: 15px;
    color: #333;
}

.tabela-elixir {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
}

.tabela-elixir th, .tabela-elixir td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.tabela-elixir th {
    background-color: #1C375C;
    color: white;
}

.verde {
    color: green;
    font-weight: bold;
}

/* --- Estilos da Página de Decks --- */
.decks-page {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://wallpaperaccess.com/full/1136667.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 40px 5%;
    min-height: 85vh;
    text-align: center;
    color: white;
}

.decks-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.deck-card {
    background: white;
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    color: #333;
    display: flex;
    flex-direction: column;
}

.deck-card:hover {
    transform: translateY(-10px);
}

.card-header {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    position: relative;
}

.card-header img {
    height: 100px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.card-header h2 {
    color: white;
    font-size: 1.5rem;
    margin-top: 5px;
    text-shadow: 1px 1px 3px black;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2;
}

.bait {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.clashroyaledicas.com/wp-content/uploads/2016/07/tronco-clash-royale-wiki-1068x544.jpg');
    background-size: cover;
    background-position: center;
}

.hog {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.clashroyaledicas.com/wp-content/uploads/2016/02/corredor-clash-royale-wiki-1068x544.jpg');
    background-size: cover;
    background-position: center;
}

.golem {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.clashroyaledicas.com/wp-content/uploads/2020/03/golem-clash-royale-wiki-1068x544.jpg');
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 20px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-body h3 {
    font-size: 1rem;
    color: #1C375C;
    margin: 15px 0 5px 0;
    border-bottom: 2px solid #ddd;
}

.card-body ul {
    list-style: none;
    margin-bottom: 20px;
}

.card-body li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.btn-copiar {
    display: block;
    background-color: #367CFF;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}

.btn-copiar:hover {
    background-color: #1C375C;
}

/* --- ESTATÍSTICAS VISUAIS (Issue #8) --- */
.deck-stats {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e1e4e8;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    width: 75px;
    font-weight: 600;
    color: #555;
}

.stat-bar-bg {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
}

/* Cores das barras */
.atk { background-color: #e74c3c; } /* Vermelho Ataque */
.def { background-color: #3498db; } /* Azul Defesa */
.dif { background-color: #f1c40f; } /* Amarelo Dificuldade */

/* --- ESTILO DA SEÇÃO BALANCEAMENTO (Issue #10) --- */
.secao-balanceamento {
    text-align: center;
    padding: 60px 20px;
    background-color: #e9ecef; /* Cinza claro para destacar */
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

.secao-balanceamento h2 {
    color: #1C375C;
    margin-bottom: 15px;
}

.secao-balanceamento p {
    color: #555;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto; /* Centraliza o texto */
    margin-right: auto;
}

/* Estilo específico para o botão dessa seção */
.btn-balanceamento {
    background-color: #1C375C;
    color: #FFD700;
}

.btn-balanceamento:hover {
    background-color: #FFD700;
    color: #1C375C;
    transform: scale(1.05); /* Efeito de zoom */
}