/* ============================= */
/* Australia 과제 선택 화면        */
/* (문제풀기 / 해설보기)           */
/* explain-viewer.css 디자인 참고  */
/* ============================= */

/* 헤더 */
.aus-select-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.aus-select-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.aus-select-icon-badge {
    font-size: 20px;
    line-height: 1;
}

.aus-select-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.aus-select-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* ============================= */
/* 선택 패널                       */
/* ============================= */

.aus-select-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 71px);
    padding: 48px 24px;
    gap: 40px;
    background: var(--bg-color);
}

.aus-select-prompt {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: -0.01em;
}

.aus-select-buttons {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 700px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================= */
/* 공통 카드 베이스                 */
/* ============================= */

.aus-select-btn {
    flex: 0 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 30px;
    height: 220px;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(148, 128, 197, 0.08),
                0 4px 10px rgba(0, 0, 0, 0.02);
}

.aus-select-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(148, 128, 197, 0.15);
}

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

/* 해설보기 카드 아이콘 */
.aus-select-btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 5px;
}

#ausSelectBtnExplain .aus-select-btn-icon {
    background-color: #fdf2f2;
    color: #e5a08d;
}

.aus-select-btn-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.01em;
    margin-top: 15px;
}

.aus-select-btn-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ============================= */
/* 분할 카드 (다시풀기 | 실전풀이)  */
/* ============================= */

.aus-select-btn--split {
    flex-direction: row;
    padding: 0;
    gap: 0;
    cursor: default;
    overflow: hidden;
}

/* 분할 카드는 hover 시 카드 자체가 올라가지 않음 */
.aus-select-btn--split:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(148, 128, 197, 0.08),
                0 4px 10px rgba(0, 0, 0, 0.02);
}

/* 좌우 반쪽 버튼 */
.aus-split-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
    position: relative;
}

.aus-split-half:hover {
    background: rgba(148, 128, 197, 0.04);
}

.aus-split-half:active {
    background: rgba(148, 128, 197, 0.10);
}

/* 구분선 */
.aus-split-divider {
    width: 1px;
    align-self: stretch;
    margin: 28px 0;
    background: var(--border-color);
    flex-shrink: 0;
}

/* 분할 아이콘 */
.aus-split-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

/* 실전풀이 아이콘 (왼쪽) */
.aus-split-left .aus-split-icon {
    background-color: #eef2ff;
    color: #6366f1;
}

/* 다시보기 아이콘 (오른쪽) */
.aus-split-right .aus-split-icon {
    background-color: #f0fdf4;
    color: #22c55e;
}

/* 분할 라벨 */
.aus-split-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.4;
}

/* ============================= */
/* 푸는 방법 안내 버튼              */
/* ============================= */

.aus-guide-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #f0edfa 0%, #e8e4f5 100%);
    border: 1.5px solid #d4cce8;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    max-width: 700px;
    width: 100%;
    margin-top: -20px;
}

.aus-guide-btn:hover {
    background: linear-gradient(135deg, #e8e4f5 0%, #ddd6f0 100%);
    border-color: #b9aed6;
    box-shadow: 0 4px 15px rgba(148, 128, 197, 0.15);
    transform: translateY(-1px);
}

.aus-guide-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.aus-guide-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #9480c5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.aus-guide-btn-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a3f6b;
    text-align: left;
}

.aus-guide-btn-arrow {
    font-size: 0.8rem;
    color: #9480c5;
    flex-shrink: 0;
}

/* 확인 완료 상태 */
.aus-guide-btn.aus-guide-checked {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f9ec 100%);
    border-color: #a7d7b8;
}

.aus-guide-btn.aus-guide-checked .aus-guide-btn-icon {
    background: #22c55e;
}

.aus-guide-btn.aus-guide-checked .aus-guide-btn-text {
    color: #166534;
}

.aus-guide-btn.aus-guide-checked .aus-guide-btn-text::after {
    content: ' \2713';
    color: #22c55e;
    font-weight: 700;
}

.aus-guide-btn.aus-guide-checked .aus-guide-btn-arrow {
    color: #22c55e;
}

/* ============================= */
/* 푸는 방법 안내 모달              */
/* ============================= */

.aus-guide-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ausGuideOverlayIn 0.2s ease;
}

@keyframes ausGuideOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.aus-guide-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 480px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: ausGuideModalIn 0.3s ease;
}

@keyframes ausGuideModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.aus-guide-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.aus-guide-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aus-guide-modal-emoji {
    font-size: 28px;
    line-height: 1;
}

.aus-guide-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.aus-guide-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.aus-guide-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.aus-guide-modal-body {
    padding: 20px 24px 28px;
}

.aus-guide-modal-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aus-guide-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.aus-guide-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #9480c5;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.aus-guide-step-text {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #374151;
}

.aus-guide-step-text strong {
    color: #5B4A9E;
    font-weight: 600;
}

.aus-guide-modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}

.aus-guide-modal-confirm-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #9480c5;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.aus-guide-modal-confirm-btn:hover {
    background: #7b67b0;
}

/* ============================= */
/* 모달 멀티섹션 스타일             */
/* ============================= */

.aus-guide-section {
    margin-bottom: 24px;
}

.aus-guide-section:last-child {
    margin-bottom: 0;
}

.aus-guide-section + .aus-guide-section {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.aus-guide-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.aus-guide-section-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.aus-guide-section-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
}

.aus-guide-section-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 3px solid #9480c5;
}

/* ============================= */
/* 모바일 대응                     */
/* ============================= */
@media (max-width: 768px) {
    .aus-select-panel {
        padding: 32px 16px;
        gap: 28px;
        min-height: calc(100vh - 60px);
    }

    .aus-select-prompt {
        font-size: 1.2rem;
    }

    .aus-select-buttons {
        flex-direction: column;
        max-width: 100%;
        gap: 16px;
    }

    .aus-select-btn {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 180px;
        padding: 24px 20px;
    }

    .aus-select-btn--split {
        padding: 0;
        min-height: 160px;
    }

    .aus-split-half {
        padding: 20px 12px;
    }

    .aus-select-header {
        padding: 12px 16px;
        gap: 12px;
    }

    .aus-select-title {
        font-size: 16px;
    }

    .aus-select-subtitle {
        font-size: 12px;
    }

    .aus-guide-btn {
        padding: 12px 16px;
        margin-top: -12px;
    }

    .aus-guide-btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .aus-guide-btn-text {
        font-size: 0.88rem;
    }

    .aus-guide-modal {
        width: 95%;
        max-height: 80vh;
    }

    .aus-guide-modal-header {
        padding: 20px 18px 0;
    }

    .aus-guide-modal-body {
        padding: 16px 18px 24px;
    }

    .aus-guide-modal-footer {
        padding: 0 18px 20px;
    }

    .aus-guide-step-text {
        font-size: 0.85rem;
    }
}

/* ============================= */
/* OMR 채점 섹션                  */
/* ============================= */

.omr-section-area {
    padding: 0 24px 32px;
}

.omr-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
}

.omr-section-divider::before,
.omr-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d4cce8;
}

.omr-section-divider span {
    font-size: 14px;
    font-weight: 700;
    color: #5B4A9E;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.omr-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1.5px solid transparent;
}

.omr-card-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

.omr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 128, 197, 0.12);
    border-color: transparent;
}

.omr-card:active {
    transform: translateY(0);
}

.omr-card-done {
    background: #FFFFFF;
    border-color: transparent;
    cursor: default;
}

.omr-card-done:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 128, 197, 0.12);
    border-color: transparent;
}

.omr-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.omr-card-icon {
    font-size: 16px;
    color: #5C5C5C;
    line-height: 1;
}

.omr-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.omr-card-label {
    font-size: 15px;
    font-weight: 600;
    color: #5C5C5C;
}

.omr-card-status {
    font-size: 12px;
    color: #9ca3af;
}

.omr-status-pending {
    color: #FFCBCB;
    font-weight: 600;
}

.omr-status-done {
    color: #22c55e;
    font-weight: 600;
}

.omr-card-arrow {
    color: #EBEBEB;
    font-size: 14px;
}

.omr-card-done .omr-card-arrow {
    color: #EBEBEB;
}

.omr-card-done .omr-card-icon {
    color: #5C5C5C;
}

.omr-card-done .omr-card-label {
    color: #5C5C5C;
}

.omr-card-done .omr-status-done {
    color: #b8d8be;
}

.omr-card-done .omr-card-sub {
    color: #5C5C5C;
}

@media (max-width: 768px) {
    .omr-section-area {
        padding: 0 16px 24px;
    }

    .omr-card {
        padding: 14px 16px;
    }

    .omr-card-label {
        font-size: 14px;
    }
}

/* ── OMR 이미 제출 팝업 ── */
.omr-confirm-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.omr-confirm-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.omr-confirm-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.omr-confirm-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.omr-confirm-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 22px;
}

.omr-confirm-buttons {
    display: flex;
    gap: 10px;
}

.omr-confirm-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: background 0.2s;
}

.omr-confirm-ok {
    background: #9480c5;
    color: #fff;
}

.omr-confirm-ok:hover {
    background: #7b67b0;
}
