/* =========================================================
   JOGO DA FORCA BÍBLICO - CUSTOM PREMIUM STYLES
   ========================================================= */

.forca-level-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 1.2rem;
}

.forca-level-card {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    background: white;
    border-radius: var(--border-radius-xl);
    border: 4px solid white;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

.forca-level-card:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.forca-level-card.locked {
    opacity: 0.85;
}

.forca-level-card.facil { border-color: var(--color-green); box-shadow: 0 8px 0 #04A87B; }
.forca-level-card.medio { border-color: var(--color-blue); box-shadow: 0 8px 0 #008AA8; }
.forca-level-card.dificil { border-color: var(--color-purple); box-shadow: 0 8px 0 #7A35B3; }

.forca-level-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.forca-level-info {
    flex: 1;
}

.forca-level-info h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.forca-level-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 6px;
}

.forca-level-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.forca-badge {
    background: #f0f4f8;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #d8e2ed;
}

.forca-level-card.facil .forca-badge { background: #e8f5e9; color: var(--color-green); border-color: #c8e6c9; }
.forca-level-card.medio .forca-badge { background: #e3f2fd; color: var(--color-blue); border-color: #bbdefb; }
.forca-level-card.dificil .forca-badge { background: #f3e5f5; color: var(--color-purple); border-color: #e1bee7; }

.forca-lock {
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* --- PLAY VIEW --- */
.forca-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 1.2rem;
    margin-top: 10px;
}

.forca-stat {
    background: white;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 3px solid white;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

/* --- HANGMAN/SHEEP VISUAL BOARD --- */
.forca-board-wrapper {
    margin: 15px 1.2rem 10px;
    background: linear-gradient(185deg, #aed8f2, #eef7fc);
    border-radius: var(--border-radius-xl);
    border: 4px solid white;
    box-shadow: 0 8px 0 rgba(0,0,0,0.15);
    height: 190px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forca-scenery {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Green Hill */
.forca-hill {
    position: absolute;
    bottom: -40px;
    left: -20px;
    right: -20px;
    height: 100px;
    background: #5cbf3f;
    border-radius: 50%;
    z-index: 2;
    border-top: 4px solid #4a9e30;
}

/* Glowing Sun */
.forca-sun {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #ffcc00;
    border-radius: 50%;
    box-shadow: 0 0 20px #ffea00;
    z-index: 2;
}

/* Storm Cloud (appears with mistakes) */
.forca-cloud {
    position: absolute;
    top: -50px;
    left: 20px;
    width: 100px;
    height: 40px;
    background: #cfd8dc;
    border-radius: 20px;
    z-index: 3;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.forca-cloud::before, .forca-cloud::after {
    content: "";
    position: absolute;
    background: #cfd8dc;
    border-radius: 50%;
}
.forca-cloud::before {
    width: 50px;
    height: 50px;
    top: -20px;
    left: 15px;
}
.forca-cloud::after {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 45px;
}

.forca-cloud.visible {
    top: 15px;
    opacity: 0.95;
    background: #78909c;
}
.forca-cloud.visible::before, .forca-cloud.visible::after {
    background: #78909c;
}

/* Cute Sheep SVG/HTML structure */
.forca-lamb-container {
    position: relative;
    width: 120px;
    height: 110px;
    z-index: 5;
    margin-top: 25px;
}

.lamb-part {
    position: absolute;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lamb-part.visible {
    opacity: 1;
    transform: scale(1);
}

/* Body: large fluffy cloud */
.lamb-body {
    width: 75px;
    height: 55px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 3px 0 #e0e0e0;
    top: 30px;
    left: 20px;
    border: 3px solid #555;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.1));
}
.lamb-body::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ffffff;
    border-radius: 50%;
    top: -15px;
    left: 15px;
}
.lamb-body::after {
    content: "";
    position: absolute;
    width: 35px;
    height: 35px;
    background: #ffffff;
    border-radius: 50%;
    top: -10px;
    left: 30px;
}

/* Head: fluffy cap + pink face */
.lamb-head {
    width: 42px;
    height: 42px;
    background: #ffe0b2; /* peach face */
    border-radius: 50%;
    border: 3px solid #555;
    top: 15px;
    left: 65px;
    z-index: 10;
}
.lamb-head::before { /* Cap of wool */
    content: "";
    position: absolute;
    top: -10px;
    left: 4px;
    width: 28px;
    height: 14px;
    background: white;
    border-radius: 10px;
    border: 3px solid #555;
}

/* Ears: cute floppy ears */
.lamb-ears {
    position: absolute;
    z-index: 9;
    top: 18px;
    left: 58px;
    width: 56px;
    height: 12px;
}
.lamb-ears::before, .lamb-ears::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 10px;
    background: #ffe0b2;
    border: 3px solid #555;
    border-radius: 50%;
}
.lamb-ears::before {
    left: 0;
    transform: rotate(-15deg);
}
.lamb-ears::after {
    right: 0;
    transform: rotate(15deg);
}

/* Face elements: eyes, mouth */
.lamb-face {
    position: absolute;
    z-index: 11;
    top: 25px;
    left: 74px;
    width: 25px;
    height: 20px;
}
.lamb-face::before, .lamb-face::after { /* Eyes */
    content: "•";
    position: absolute;
    font-size: 14px;
    color: #333;
}
.lamb-face::before { left: 3px; }
.lamb-face::after { right: 8px; }

/* Legs: little sticks */
.lamb-leg-lf {
    width: 8px;
    height: 22px;
    background: #ffe0b2;
    border: 3px solid #555;
    border-radius: 4px;
    top: 80px;
    left: 30px;
}
.lamb-leg-rf {
    width: 8px;
    height: 22px;
    background: #ffe0b2;
    border: 3px solid #555;
    border-radius: 4px;
    top: 80px;
    left: 42px;
}
.lamb-leg-lb {
    width: 8px;
    height: 22px;
    background: #ffe0b2;
    border: 3px solid #555;
    border-radius: 4px;
    top: 80px;
    left: 65px;
}
.lamb-leg-rb {
    width: 8px;
    height: 22px;
    background: #ffe0b2;
    border: 3px solid #555;
    border-radius: 4px;
    top: 80px;
    left: 77px;
}

/* Loss visual indicator (sad face overlay) */
.lamb-sad-overlay {
    position: absolute;
    z-index: 12;
    font-size: 20px;
    top: 20px;
    left: 70px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
}
.forca-lamb-container.sad .lamb-sad-overlay {
    opacity: 1;
}
.forca-lamb-container.sad .lamb-face {
    display: none;
}

/* --- DICA BANNER --- */
.forca-dica-container {
    padding: 0 1.2rem;
    text-align: center;
    margin-bottom: 12px;
}

.forca-dica-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff9e6;
    border: 3px solid var(--color-secondary);
    color: var(--color-secondary-dark);
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 3px 0 var(--color-secondary-dark);
}

.forca-dica-badge ion-icon {
    font-size: 1.2rem;
}

/* --- WORD REPRESENTATION --- */
.forca-word-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 1.2rem;
    min-height: 55px;
    margin-bottom: 15px;
}

.forca-letter-slot {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    border: 3px solid #d8e2ed;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-purple);
    box-shadow: 0 4px 0 #d8e2ed;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.forca-letter-slot.blank {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.1);
    color: transparent;
}

.forca-letter-slot.revealed {
    background: #f3e5f5;
    border-color: var(--color-purple);
    box-shadow: 0 4px 0 #7A35B3;
    animation: letterPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes letterPop {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

/* --- KEYBOARD --- */
.forca-keypad-wrapper {
    padding: 0 1.2rem;
    margin-top: 5px;
}

.forca-keypad {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 12px;
    border: 3px solid white;
}

.forca-key {
    aspect-ratio: 1;
    background: white;
    border: none;
    border-radius: 50%;
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 0 #d8e2ed;
    transition: all 0.1s;
}

.forca-key:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #d8e2ed;
}

.forca-key.correct {
    background: var(--color-green) !important;
    color: white !important;
    box-shadow: 0 4px 0 #049e75 !important;
    pointer-events: none;
}

.forca-key.wrong {
    background: #e0e0e0 !important;
    color: #9e9e9e !important;
    box-shadow: 0 4px 0 #bdbdbd !important;
    pointer-events: none;
    opacity: 0.6;
}

/* --- HINT BUTTON --- */
.forca-actions {
    padding: 10px 1.2rem;
    margin-top: 10px;
    text-align: center;
}

.btn-forca-hint {
    background: var(--color-secondary);
    color: #8B4513;
    border: 3px solid white;
    border-radius: 20px;
    padding: 10px 20px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 0 var(--color-secondary-dark);
    transition: all 0.1s;
}

.btn-forca-hint:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--color-secondary-dark);
}

.btn-forca-hint.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- RESULTS VIEW --- */
.forca-results-card {
    background: white;
    border-radius: var(--border-radius-xl);
    border: 4px solid var(--color-secondary);
    box-shadow: 0 10px 0 var(--color-secondary-dark);
    padding: 30px 24px;
    margin: 20px 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.forca-results-card.venceu {
    border-color: var(--color-green);
    box-shadow: 0 10px 0 #04A87B;
}

.forca-results-card.perdeu {
    border-color: var(--color-primary);
    box-shadow: 0 10px 0 var(--color-primary-dark);
}

.forca-results-emoji {
    font-size: 4.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    animation: bounce 2s infinite;
}

.forca-results-title {
    font-size: 2.2rem;
    margin-bottom: 6px;
    font-family: 'Fredoka', sans-serif;
}

.forca-results-card.venceu .forca-results-title { color: var(--color-green); }
.forca-results-card.perdeu .forca-results-title { color: var(--color-primary); }

.forca-results-msg {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.4;
}

.forca-word-reveal {
    background: #f3e5f5;
    border: 3px solid var(--color-purple);
    border-radius: var(--border-radius-md);
    padding: 10px 20px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-purple);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.forca-rewards-container {
    background: #fff9e6;
    border: 3px dashed var(--color-secondary-dark);
    border-radius: var(--border-radius-md);
    padding: 15px;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.forca-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.forca-reward-item .val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #b8860b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.forca-reward-item .lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
}
