/* =========================================
   BASE STYLES & LAYOUT
   ========================================= */
html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #0A0A18;
    color: #E8E8FF;
    overflow-x: hidden;
}

.app-root {
    width: 100%;
    padding-top: 16px;
    padding-bottom: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-section {
    width: 650px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
}

.monsters-section {
    width: 650px;
    margin: 0 auto;
    transition: width 0.4s ease;
    box-sizing: border-box;
    padding: 0 8px;
}

.monsters-section.wide {
    width: 860px;
}

/* Header Centralizado */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.header-icon {
    font-size: 44px;
    margin-bottom: 6px;
}

h1 {
    font-size: 22px;
    margin: 0;
    line-height: 1.4;
    font-weight: bold;
}

/* --- NOVO: Botão de Voltar --- */
.back-btn {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #16162A;
    color: #8888BB;
    border: 1px solid #2A2A4A;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 50;
}

.back-btn:hover {
    background-color: #7B3FF2;
    color: #FFFFFF;
    border-color: #7B3FF2;
    box-shadow: 0 0 8px rgba(123, 63, 242, 0.4);
}

/* Botão de Idioma Flutuante no Topo Direito */
.lang-toggle-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 50;
}

/* Donation */
.donation-section {
    width: 100%;
    margin: 14px auto 18px auto;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.08), rgba(0, 230, 118, 0.05));
    border: 1px solid #2A2A4A;
    border-radius: 14px;
    padding: 14px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.donation-title {
    font-size: 11px;
    font-weight: bold;
    color: #8888BB;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.donation-title::before,
.donation-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #2A2A4A);
}

.donation-title::after {
    background: linear-gradient(to left, transparent, #2A2A4A);
}

.donation-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-pix-btn,
.donation-kofi-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.donation-pix-btn {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00E676;
}

.donation-pix-btn:hover {
    background: rgba(0, 230, 118, 0.18);
    border-color: #00E676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.donation-kofi-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.donation-kofi-btn:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Footer */
.info-footer {
    margin-top: 24px;
    font-size: 12px;
    color: #8888BB;
    line-height: 1.5;
    text-align: center;
}

.footer-credits {
    margin-top: 15px;
    font-size: 0.85em;
    text-align: center;
    color: #FFFFFF;
}

.footer-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.footer-rights-box {
    font-size: 10px;
    color: #4A4A6A;
    display: block;
    margin-top: 8px;
}

.report-wrapper {
    text-align: center;
    margin-top: 12px;
}

.report-link {
    color: #FF5252;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.text-red {
    color: #FF5252 !important;
}

@media (min-width: 851px) {

    .content-section,
    .monsters-section {
        zoom: 1.08;
    }
}

@media (max-width: 850px) {
    .content-section {
        width: 100%;
        padding: 0 14px;
    }

    .monsters-section,
    .monsters-section.wide {
        width: 100%;
        padding: 0;
    }

    .lang-toggle-wrapper {
        right: 14px;
    }

    /* Alinha o botão voltar certinho no mobile */
    .back-btn {
        left: 14px;
    }
}