/* ============================================================
   Integrated Speaking (Australia) — 통스2·3·4
   Brainstorming 스타일 기반
   ============================================================ */

/* ── 인트로 화면 ── */
.is-intro-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    background: #f7fafc;
}
.is-intro-card {
    max-width: 700px;
    text-align: center;
    background: #ffffff;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(25, 28, 29, 0.05);
}
.is-intro-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #006688, #50c9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.is-intro-icon i {
    font-size: 32px;
    color: #fff;
}
.is-intro-title {
    font-size: 36px;
    font-weight: 700;
    color: #191c1d;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.is-intro-type-badge {
    display: inline-block;
    background: #edf2f7;
    color: #3e484f;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}
.is-intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: #3e484f;
    margin-bottom: 30px;
}
.is-intro-text p {
    margin: 0 0 15px 0;
}
.is-intro-text p:last-child {
    margin-bottom: 0;
}
.is-intro-note {
    padding: 15px 25px;
    background: #edf2f7;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* ── 리딩 화면 (통스2/3) ── */
.is-reading-wrap {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}
.is-reading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #5a5f6b;
    color: #fff;
}
.is-reading-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.is-reading-timer {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 6px;
}
.is-reading-body {
    flex: 1;
    padding: 60px 24px 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    transition: opacity 0.5s ease;
}
.is-reading-title {
    font-size: 22px;
    font-weight: 700;
    color: #191c1d;
    margin: 0 0 24px 0;
    line-height: 1.4;
}
.is-reading-passage {
    font-size: 17px;
    line-height: 1.9;
    color: #2d3748;
    white-space: pre-wrap;
}

/* ── 오디오 전용 화면 (통스4) ── */
.is-audio-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 56px);
    text-align: center;
    padding: 60px 24px 40px;
}
.is-audio-label {
    font-size: 14px;
    font-weight: 600;
    color: #3e484f;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.is-audio-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #006688, #50c9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.is-audio-icon i {
    font-size: 42px;
    color: #fff;
}
.is-audio-image {
    max-width: 700px;
    width: 95%;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.is-audio-image img {
    width: 100%;
    display: block;
}
/* ── 오디오 프로그레스 바 ── */
.is-audio-progress-wrap {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    padding: 0 24px;
}
.is-audio-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.is-audio-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #006688, #50c9ff);
    border-radius: 3px;
    transition: width 0.15s linear;
}

.is-audio-status {
    font-size: 18px;
    color: #3e484f;
    font-weight: 500;
}

/* ── 문제 + 타이머 화면 ── */
.is-topic-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 40px 24px;
    text-align: center;
}
.is-topic-label {
    font-size: 14px;
    font-weight: 600;
    color: #3e484f;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.is-topic-wrap--higher {
    justify-content: flex-start;
    padding-top: 80px;
}
.is-topic-text {
    font-size: 22px;
    font-weight: 500;
    color: #191c1d;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 80px;
}
.is-timer-section {
    width: 100%;
    max-width: 500px;
}
.is-timer-display {
    width: 100%;
    background: #5a5f6b;
    border-radius: 12px;
    overflow: hidden;
}
.is-timer-phase-label {
    background: #5a5f6b;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    letter-spacing: 1.5px;
}
.is-timer-content {
    background: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.is-timer-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 원형 프로그레스 */
.is-progress-circle {
    width: 50px;
    height: 50px;
    position: relative;
    flex-shrink: 0;
}
.is-progress-circle > svg:first-child {
    transform: rotate(-90deg);
}
.is-progress-circle-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 4;
}
.is-progress-circle-fill {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
.is-mic-icon {
    position: absolute;
    top: 25px;
    left: 25px;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    color: #8b5cf6;
}
.is-timer-text {
    font-size: 32px;
    font-weight: 600;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

/* ── 완료 화면 ── */
.is-complete-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    background: #f7fafc;
}
.is-complete-card {
    max-width: 460px;
    width: 90%;
    text-align: center;
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(25, 28, 29, 0.05);
}
.is-complete-check {
    margin-bottom: 24px;
}
.is-complete-title {
    font-size: 24px;
    font-weight: 700;
    color: #191c1d;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}
.is-complete-desc {
    font-size: 16px;
    color: #3e484f;
    margin: 0 0 32px 0;
    line-height: 1.6;
}
.is-complete-btn {
    background: linear-gradient(135deg, #006688, #50c9ff);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.25s;
}
.is-complete-btn:active {
    opacity: 0.8;
}

/* ── 전환 스피너 ── */
.is-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
}
.is-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #006688;
    border-radius: 50%;
    animation: is-spin 0.8s linear infinite;
}
@keyframes is-spin {
    to { transform: rotate(360deg); }
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .is-intro-card {
        padding: 40px 30px;
    }
    .is-intro-title {
        font-size: 28px;
    }
    .is-intro-text {
        font-size: 16px;
    }
    .is-reading-body {
        padding: 28px 18px;
    }
    .is-reading-title {
        font-size: 19px;
    }
    .is-reading-passage {
        font-size: 15px;
    }
    .is-complete-card {
        padding: 40px 28px;
    }
}
