
/* =========================================
   BA - GAME
   حرف الباء
========================================= */

.baa-game {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}


/* =========================================
   GAME INTRO
========================================= */

.baa-game .game-intro {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-bottom: 20px;
}

.baa-game .game-letter {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 14px;

    color: #2563eb;

    font-size: 45px;
    font-weight: 800;
}

.baa-game .game-intro-text h1 {
    margin: 0 0 4px;

    color: #1f2937;

    font-size: 28px;
    font-weight: 700;
}

.baa-game .game-intro-text p {
    margin: 0;

    color: #6b7280;

    font-size: 15px;
}

.baa-game .game-intro-text strong {
    color: #2563eb;
}


/* =========================================
   GAME INFO
========================================= */

.baa-game .game-info {
    display: flex;

    gap: 10px;

    margin-bottom: 15px;
}

.baa-game .info-box {
    min-width: 105px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.baa-game .info-box > span {
    font-size: 18px;
}

.baa-game .info-box strong {
    color: #374151;

    font-size: 16px;
}

.baa-game .info-box small {
    color: #9ca3af;

    font-size: 12px;
}


/* =========================================
   GAME CARD
========================================= */

.baa-game .game-card {
    padding: 28px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
}


/* =========================================
   QUESTION
========================================= */

.baa-game .question-area {
    text-align: center;

    margin-bottom: 25px;
}

.baa-game .question-number {
    margin-bottom: 8px;

    color: #9ca3af;

    font-size: 13px;
}

.baa-game .question-area h2 {
    margin: 0 0 5px;

    color: #1f2937;

    font-size: 23px;
    font-weight: 700;
}

.baa-game .question-hint {
    margin: 0;

    color: #7a828c;

    font-size: 14px;
}

.baa-game .question-hint strong {
    color: #2563eb;
}


/* =========================================
   WORDS
========================================= */

.baa-game .words-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================
   WORD BUTTON
========================================= */

.baa-game .word-button {
    min-height: 80px;

    padding: 15px;

    background: #ffffff;

    border: 2px solid #e5e7eb;
    border-radius: 10px;

    color: #263238;

    font-family: inherit;

    font-size: 22px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.15s ease;
}

.baa-game .word-button:hover:not(:disabled) {
    border-color: #bfdbfe;

    background: #f8fbff;

    transform: translateY(-2px);
}

.baa-game .word-button:active:not(:disabled) {
    transform: scale(0.98);
}


/* =========================================
   CORRECT
========================================= */

.baa-game .word-button.correct {
    border-color: #86efac;

    background: #f0fdf4;

    color: #15803d;
}


/* =========================================
   WRONG
========================================= */

.baa-game .word-button.wrong {
    border-color: #fca5a5;

    background: #fef2f2;

    color: #dc2626;
}


/* =========================================
   DISABLED
========================================= */

.baa-game .word-button:disabled {
    cursor: default;
}


/* =========================================
   ANSWER MESSAGE
========================================= */

.baa-game .answer-message {
    min-height: 30px;

    margin-top: 18px;

    text-align: center;

    font-size: 16px;
    font-weight: 700;
}

.baa-game .answer-message.success {
    color: #16a34a;
}

.baa-game .answer-message.error {
    color: #dc2626;
}


/* =========================================
   NEXT BUTTON
========================================= */

.baa-game .next-button {
    width: 100%;

    margin-top: 12px;

    padding: 12px 18px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.baa-game .next-button:hover:not(:disabled) {
    background: #1d4ed8;
}

.baa-game .next-button:disabled {
    background: #d1d5db;

    cursor: not-allowed;
}

.baa-game .next-button span {
    margin-right: 5px;
}


/* =========================================
   RESULT
========================================= */

.baa-game .result-card {
    display: none;

    padding: 40px 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    text-align: center;
}

.baa-game .result-card.show {
    display: block;
}

.baa-game .result-icon {
    margin-bottom: 8px;

    font-size: 50px;
}

.baa-game .result-card h2 {
    margin: 0 0 3px;

    color: #1f2937;

    font-size: 27px;
}

.baa-game .result-card > p {
    margin: 0;

    color: #6b7280;

    font-size: 15px;
}


/* =========================================
   RESULT SCORE
========================================= */

.baa-game .result-score {
    display: flex;
    align-items: baseline;
    justify-content: center;

    gap: 5px;

    margin: 20px 0;
}

.baa-game .result-score strong {
    color: #2563eb;

    font-size: 48px;
    line-height: 1;
}

.baa-game .result-score span {
    color: #9ca3af;

    font-size: 15px;
}


/* =========================================
   RESULT MESSAGE
========================================= */

.baa-game .result-message {
    margin-bottom: 20px !important;

    color: #4b5563 !important;

    font-size: 16px !important;
}


/* =========================================
   RESTART
========================================= */

.baa-game .restart-button {
    padding: 11px 25px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.baa-game .restart-button:hover {
    background: #1d4ed8;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .baa-game .game-intro {
        gap: 15px;
    }

    .baa-game .game-letter {
        width: 65px;
        height: 65px;

        font-size: 37px;
    }

    .baa-game .game-intro-text h1 {
        font-size: 24px;
    }

    .baa-game .game-card {
        padding: 22px;
    }

    .baa-game .question-area h2 {
        font-size: 21px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 550px) {

    .baa-game .game-intro {
        gap: 12px;

        margin-bottom: 15px;
    }

    .baa-game .game-letter {
        width: 55px;
        height: 55px;

        border-radius: 9px;

        font-size: 31px;
    }

    .baa-game .game-intro-text h1 {
        font-size: 21px;
    }

    .baa-game .game-intro-text p {
        font-size: 13px;
    }

    .baa-game .game-info {
        margin-bottom: 10px;
    }

    .baa-game .info-box {
        min-width: 90px;

        padding: 7px 10px;
    }

    .baa-game .game-card {
        padding: 18px 13px;

        border-radius: 10px;
    }

    .baa-game .question-area {
        margin-bottom: 20px;
    }

    .baa-game .question-area h2 {
        font-size: 19px;
    }

    .baa-game .question-hint {
        font-size: 13px;
    }

    .baa-game .words-grid {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .baa-game .word-button {
        min-height: 65px;

        font-size: 20px;
    }

    .baa-game .result-card {
        padding: 30px 18px;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .baa-game .game-letter {
        width: 50px;
        height: 50px;

        font-size: 28px;
    }

    .baa-game .game-intro-text h1 {
        font-size: 19px;
    }

    .baa-game .game-intro-text p {
        font-size: 12px;
    }

    .baa-game .word-button {
        min-height: 60px;

        font-size: 19px;
    }
}

