/* ============================================================
   THEORY RESULT SCREEN
   ============================================================ */

.theory-result-screen {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 20px;

    box-sizing: border-box;

    background-color: #09103f;

    background-image:
        url("/client/assets/images/bg/result_bg_portrait.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

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

    display: flex;

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

    overflow-y: auto;
}

@media (orientation: landscape) {
    .theory-result-screen {
        background-image:
            url("/client/assets/images/bg/result_bg_landscape.jpg");
    }
}

/* ============================================================
   CARD
   ============================================================ */

.theory-result-card {
    background: #ffffff;

    color: #0a2a43;

    padding: 28px 24px;

    border-radius: 16px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.20);

    width: 100%;

    max-width: 560px;

    text-align: center;

    animation:
        cardEnter 420ms ease-out forwards;
}

/* ============================================================
   TITLE
   ============================================================ */

.theory-result-card h2 {
    font-family: "Sora", sans-serif;

    margin-bottom: 26px;

    color: #0a2a43;

    font-size: 1.35rem;
}

/* ============================================================
   META
   ============================================================ */

.theory-meta {
    margin-bottom: 18px;
}

.theory-label {
    font-family: "Inter", sans-serif;

    font-size: 14px;

    color: #666;

    margin-bottom: 5px;
}

.theory-value {
    font-family: "Chakra", sans-serif;

    font-size: 18px;

    font-weight: 600;

    word-break: break-word;
}

.theory-status {
    text-transform: capitalize;
}

/* ============================================================
   SUBMISSION ID + COPY
   ============================================================ */

.theory-submission-row {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;
}

.theory-submission-id {
    max-width: calc(100% - 48px);

    overflow-wrap: anywhere;

    word-break: break-word;
}

.theory-copy-btn {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: flex;

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

    border-radius: 9px;

    border: 1px solid #a3b8dc;

    background: #0a2a43;

    color: #ffffff;

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

    font-size: 18px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.theory-copy-btn:hover {
    transform: translateY(-1px);

    filter: brightness(1.08);
}

.theory-copy-btn:active {
    transform: translateY(0);
}

/* ============================================================
   EXTRA INFORMATION
   ============================================================ */

.theory-result-extra {
    margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.theory-result-buttons {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 28px;
}

.theory-btn {
    width: 100%;

    min-height: 56px;

    box-sizing: border-box;

    padding: 10px 12px;

    border-radius: 12px;

    border: none;

    cursor: pointer;

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

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.2px;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.theory-btn:hover {
    transform: translateY(-1px);

    filter: brightness(1.08);
}

.theory-btn:active {
    transform: translateY(0);
}

/* ============================================================
   HOME
   ============================================================ */

.theory-home-btn {
    background: #ffffff;

    color: #0a2a43;

    border: 2px solid #0a2a43;
}

/* ============================================================
   REVIEW
   ============================================================ */

.theory-review-btn {
    background: #00d590;

    color: #ffffff;
}

/* ============================================================
   RETRY
   ============================================================ */

.theory-retry-btn {
    background: #0a2a43;

    color: #ffffff;
}

/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes cardEnter {
    from {
        opacity: 0;

        transform:
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

/* ============================================================
   SMALL SCREENS
   ============================================================ */

@media (max-width: 600px) {
    .theory-result-screen {
        padding: 10px;
    }

    .theory-result-card {
        padding: 24px 14px;
    }

    .theory-result-buttons {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 7px;
    }

    .theory-btn {
        min-height: 54px;

        padding: 9px 6px;

        font-size: 12px;

        letter-spacing: 0;
    }
}

@media (max-width: 380px) {
    .theory-result-card h2 {
        font-size: 1.15rem;
    }

    .theory-result-buttons {
        gap: 5px;
    }

    .theory-btn {
        min-height: 52px;

        padding: 8px 4px;

        font-size: 11px;

        line-height: 1.15;
    }

    .theory-copy-btn {
        width: 34px;
        height: 34px;

        font-size: 16px;
    }
}