/* ============================================
   PAUSE.CSS - Premium Redesign
   Responsivo e proporcional (max 6.9")
============================================ */

/* Pause overlay acima do game-ui-layer (z-index:100) */
#pause-modal.modal-overlay {
    z-index: 200;
}

/* Aplicando estilo da tela de Configurações aos textos da tela de Pause */
.pause-content .info-label,
.pause-content .currency-label,
.pause-content .card-title,
.pause-content .item-name,
.pause-content .stat-label {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1rem;
    color: #5d4037;
    text-shadow: 1px 1px 0px #fff;
    /* Resetando estilos conflitantes */
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}


/* IMPORTS & VARS FROM SETTINGS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

:root {
    --gold-light: #fef08a;
    --gold-dark: #a16207;
    --wood-depth: #2a1a0c;
}

.pause-box {
    /* BACKGROUND IMAGE FUNDO */
    background-image: url('../../../assets/images/home/fundo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 85%;
    max-width: 300px;
    /* Reduzido significativamente */
    height: auto;
    max-height: 85vh;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    border: 4px solid var(--wood-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* HEADER STYLE (Barra) - MATCHES RANKING */
.modal-header {
    background-color: transparent;
    padding: 15px;
    border-bottom: none;
    flex-shrink: 0;
    min-height: auto;
    /* Reduzido de 110px */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* TITLE STYLE - MATCHES RANKING */
.modal-title {
    margin: 0;
    font-family: 'Luckiest Guy', cursive;
    /* Fonte padrão do jogo */
    font-weight: 400;
    font-size: 24px;
    /* Reduzido */
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;

    /* Contorno Marrom Forte */
    text-shadow:
        2px 0 0 #5d4037, -2px 0 0 #5d4037, 0 2px 0 #5d4037, 0 -2px 0 #5d4037,
        1px 1px 0 #5d4037, -1px -1px 0 #5d4037, 1px -1px 0 #5d4037, -1px 1px 0 #5d4037,
        0 4px 4px rgba(0, 0, 0, 0.5);

    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
    text-align: center;
}

.pause-box .close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s;
}

.pause-box .close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.pause-box .close-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: radial-gradient(circle, rgba(255, 0, 0, 0.5) 0%, transparent 70%);
}

.pause-box .close-btn:active {
    transform: translateY(-50%) scale(0.95);
    background: radial-gradient(circle, rgba(255, 0, 0, 0.7) 0%, transparent 70%);
}

.pause-content {
    flex: 1;
    padding: 10px;
    /* Reduzido */
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Reduzido */
}

/* ============================================
   CARD DE INFORMACOES DO JOGADOR
============================================ */
.player-info-card {
    /* Settings Background Standard */
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: 12px;
    padding: 10px;
    /* Reduzido */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-label {
    font-size: var(--font-sm);
    font-weight: 800;
    /* Standard Text Stroke */
    color: #ffffff;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 0.5px;
    text-shadow:
        1.5px 0 0 #000, -1.5px 0 0 #000, 0 1.5px 0 #000, 0 -1.5px 0 #000,
        1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #8B4513;
    font-family: 'Luckiest Guy', cursive;
}

/* Barra de XP */
.xp-bar-container {
    margin-top: 10px;
}

.xp-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 600;
}

.xp-current {
    font-weight: 800;
    color: #00C9A7;
}

.xp-target {
    color: #6B7280;
}

.xp-bar-track {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00C9A7, #00E5FF);
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 5px rgba(0, 201, 167, 0.4);
}

.xp-percentage {
    text-align: right;
    font-size: 0.7rem;
    font-weight: 700;
    color: #00C9A7;
}

/* ============================================
   CARD DE MOEDAS
============================================ */
.currency-card {
    /* Settings Background Standard */
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.currency-label {
    flex: 1;
    font-weight: 800;
    /* Standard Text Stroke */
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-shadow:
        1.5px 0 0 #000, -1.5px 0 0 #000, 0 1.5px 0 #000, 0 -1.5px 0 #000,
        1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.currency-value {
    font-weight: 800;
    color: #374151;
    font-size: 1.1rem;
    font-family: 'Luckiest Guy', cursive;
}

/* ============================================
   CARD DE ITENS
============================================ */
.items-card {
    /* Settings Background Standard */
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 800;
    /* Standard Text Stroke */
    color: #ffffff;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 0.5px;
    text-shadow:
        1.5px 0 0 #000, -1.5px 0 0 #000, 0 1.5px 0 #000, 0 -1.5px 0 #000,
        1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    /* Slightly more opaque for inner container */
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.item-icon {
    font-size: 1.2rem;
}

.item-name {
    flex: 1;
    font-weight: 800;
    /* Standard Text Stroke */
    color: #ffffff;
    font-size: 0.85rem;
    text-shadow:
        1.5px 0 0 #000, -1.5px 0 0 #000, 0 1.5px 0 #000, 0 -1.5px 0 #000,
        1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.item-quantity {
    font-weight: 800;
    color: #845EC2;
    font-size: 0.9rem;
    background: rgba(132, 94, 194, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ============================================
   ESTATISTICAS DA PARTIDA
============================================ */
.match-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pause-content .stat-item {
    /* Settings Background Standard */
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 8px;
    /* Reduzido */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.pause-content .stat-value {
    display: block;
    font-size: 1.1rem;
    /* Reduzido */
    font-weight: 800;
    color: #374151;
    margin-bottom: 2px;
    font-family: 'Luckiest Guy', cursive;
}

.pause-content .stat-label {
    display: block;
    font-size: 0.7rem;
    /* Standard Text Stroke */
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow:
        1.5px 0 0 #000, -1.5px 0 0 #000, 0 1.5px 0 #000, 0 -1.5px 0 #000,
        1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

/* ============================================
   RODAPE (Botoes de Acao)
============================================ */
.pause-footer {
    padding: 15px;
    /* Reduzido */
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque footer */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Reduzido */
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.action-btn {
    width: 100%;
    padding: 10px;
    /* Reduzido */
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    /* Reduzido */
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.continue-btn {
    background: linear-gradient(135deg, #00C9A7, #009688);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 201, 167, 0.3);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 201, 167, 0.4);
}

.restart-btn {
    background: #FFD700;
    color: #8B4513;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.restart-btn:hover {
    background: #FFC107;
}

.home-btn {
    background: transparent;
    color: #6B7280;
    border: 2px dashed #D1D5DB;
    box-shadow: none;
    text-shadow: none;
    padding: 10px;
    font-size: 0.9rem;
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-style: solid;
    color: #374151;
}

.action-btn:active {
    transform: scale(0.98);
}

/* ============================================
   RESPONSIVIDADE
============================================ */
@media (max-height: 600px) {
    .pause-content {
        padding: 10px;
        gap: 10px;
    }

    .pause-footer {
        padding: 10px;
        gap: 8px;
    }

    .action-btn {
        padding: 10px;
    }
}



/* ============================================
   CONFIRMATION MODAL (Global)
============================================ */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out;
}

.confirm-overlay.hidden {
    display: none;
}

/* Caixa de Madeira */
.wood-modal {
    background-image: url('../../../assets/images/home/fundo1.png');
    background-size: cover;
    background-position: center;
    width: 90%;
    max-width: 340px;
    padding: 30px 20px 35px;
    border-radius: 20px;
    border: 4px solid #8B4513;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.6),
        0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Bordas internas decorativas */
.wood-modal::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px dashed rgba(139, 69, 19, 0.4);
    border-radius: 14px;
    pointer-events: none;
}

.confirm-title {
    font-family: 'Luckiest Guy', cursive;
    font-weight: 400;
    font-size: 24px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 10px;
    text-shadow:
        0 2px 0 #5d4037,
        0 4px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.confirm-message {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #FFF8E1;
    margin: 0 0 25px;
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Botões 3D */
.wood-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: 'Luckiest Guy', cursive;
    font-weight: 400;
    font-size: 16px;
    color: white;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
    width: 100px;
    transition: transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.wood-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.4) !important;
}

.cancel-btn {
    background: linear-gradient(to bottom, #FF6B6B, #EE5253);
    box-shadow: 0 4px 0 #B33939;
}

.ok-btn {
    background: linear-gradient(to bottom, #1DD1A1, #10AC84);
    box-shadow: 0 4px 0 #0C7B5E;
}