/* =========================================================
   REWARDED AD
   css/RewardedAd.css
   ========================================================= */

/* =========================================================
   REWARDED AD SCREEN
   ========================================================= */

.ra-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #09103f;
    color: #ffffff;

    font-family: "Inter", sans-serif;

    box-sizing: border-box;
}

/* =========================================================
   REWARDED AD CONTAINER
   ========================================================= */

.ra-container {
    position: relative;

    width: min(100%, 480px);
    padding: 32px 24px;

    background: #0a2a43;

    border: 1px solid #1e7894;
    border-radius: 14px;

    text-align: center;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);

    box-sizing: border-box;
}

/* =========================================================
   REWARD STAGE
   ========================================================= */

.ra-stage {
    display: inline-block;

    margin-bottom: 20px;
    padding: 8px 14px;

    background: #123e58;
    border-radius: 6px;

    color: #74e8ff;

    font-family: "Chakra Petch", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================================
   REWARD TITLE AND DESCRIPTION
   ========================================================= */

.ra-title {
    margin: 0 0 15px;

    font-family: "Sora", sans-serif;
    font-size: clamp(23px, 5vw, 30px);

    color: #ffffff;
}

.ra-description {
    margin: 0 0 24px;

    font-size: 15px;
    line-height: 1.7;

    color: #c4dce8;
}

.ra-description strong {
    color: #74e8ff;
}

/* =========================================================
   REWARD DISPLAY
   ========================================================= */

.ra-reward-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    padding: 18px 12px;

    background: #071e32;

    border: 1px solid #24536b;
    border-radius: 10px;

    font-family: "Chakra Petch", sans-serif;
    font-size: 17px;
}

.ra-reward-display strong {
    color: #74e8ff;
}

.ra-arrow {
    color: #74e8ff;
    font-size: 22px;
}

/* =========================================================
   REWARD STATUS
   ========================================================= */

.ra-status {
    min-height: 22px;

    margin: 18px 0;

    color: #c4dce8;

    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   REWARD ACTIONS
   ========================================================= */

.ra-actions {
    display: flex;
    gap: 12px;
}

.ra-actions button {
    flex: 1;

    min-height: 48px;
    padding: 12px;

    border: none;
    border-radius: 7px;

    font-family: "Chakra Petch", sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.ra-watch-btn {
    background: #00cbe8;
    color: #062438;
}

.ra-watch-btn:hover {
    background: #74e8ff;
}

.ra-cancel-btn {
    background: #18394f;
    color: #ffffff;
}

.ra-cancel-btn:hover {
    background: #24536b;
}

.ra-actions button:active {
    transform: scale(0.97);
}

.ra-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   LOADING OVERLAY
   ========================================================= */

.ra-loading-overlay {
    position: absolute;
    inset: 0;

    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;

    background: #0a2a43;
    border-radius: inherit;
}

.ra-loading-overlay[hidden] {
    display: none;
}

.ra-loading-overlay p {
    margin: 0;

    color: #74e8ff;
    font-size: 15px;
}

/* =========================================================
   LOADING SPINNER
   ========================================================= */

.ra-spinner {
    width: 46px;
    height: 46px;

    border: 4px solid #24536b;
    border-top-color: #74e8ff;
    border-radius: 50%;

    animation: ra-spin 0.8s linear infinite;
}

@keyframes ra-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   QUIZ SETTINGS REWARD SECTION
   Namespace: qss
   ========================================================= */

.qss-reward-section {
    margin: 12px 0 24px;
    padding: 18px;

    background: #0a2a43;

    border: 1px solid #24536b;
    border-radius: 10px;
}

.qss-reward-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}

.qss-reward-label {
    color: #c4dce8;

    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.qss-reward-limit {
    color: #74e8ff;

    font-family: "Chakra Petch", sans-serif;
    font-size: 17px;
}

.qss-reward-description {
    margin: 14px 0;

    color: #c4dce8;

    font-size: 13px;
    line-height: 1.6;
}

.qss-unlock-questions-btn {
    width: 100%;
    min-height: 44px;

    padding: 10px 15px;

    background: #00cbe8;
    color: #062438;

    border: none;
    border-radius: 7px;

    font-family: "Chakra Petch", sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.qss-unlock-questions-btn:hover {
    background: #74e8ff;
}

.qss-unlock-questions-btn:active {
    transform: scale(0.98);
}

.qss-unlock-questions-btn:disabled {
    background: #18394f;
    color: #9db4c3;

    cursor: not-allowed;
}

/* =========================================================
   PAST QUESTION SETTINGS REWARD SECTION
   Namespace: pqss

   Progression:
   5 Questions → 10 Questions → All Questions
   ========================================================= */

.pqss-reward-section {
    margin: 12px 0 24px;
    padding: 18px;

    background: #0a2a43;

    border: 1px solid #24536b;
    border-radius: 10px;
}

.pqss-reward-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}

.pqss-reward-label {
    color: #c4dce8;

    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.pqss-reward-limit {
    color: #74e8ff;

    font-family: "Chakra Petch", sans-serif;
    font-size: 17px;
}

.pqss-reward-description {
    margin: 14px 0;

    color: #c4dce8;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.pqss-unlock-questions-btn {
    width: 100%;
    min-height: 44px;

    padding: 10px 15px;

    background: #00cbe8;
    color: #062438;

    border: none;
    border-radius: 7px;

    font-family: "Chakra Petch", sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.pqss-unlock-questions-btn:hover {
    background: #74e8ff;
}

.pqss-unlock-questions-btn:active {
    transform: scale(0.98);
}

.pqss-unlock-questions-btn:disabled {
    background: #18394f;
    color: #9db4c3;

    cursor: not-allowed;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 480px) {
    .ra-container {
        padding: 25px 18px;
    }

    .ra-actions {
        flex-direction: column;
    }

    .ra-actions button {
        width: 100%;
        flex: auto;
    }

    .ra-reward-display {
        font-size: 15px;
    }

    .qss-reward-section,
    .pqss-reward-section {
        padding: 15px;
    }

    .qss-reward-limit,
    .pqss-reward-limit {
        font-size: 16px;
    }

    .qss-unlock-questions-btn,
    .pqss-unlock-questions-btn {
        font-size: 13px;
    }
}