/* Task Page Styles */

.task-page {
    min-height: calc(100vh - 70px);
    padding: 50px 24px;
    background-image: url('cpr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.task-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 90, 110, 0.5);
    z-index: 0;
}

.task-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 742px 635px;
    gap: 15px;
    max-width: 1392px;
    margin: 0 auto;
}

/* Task Sections */
.task-a-section,
.task-b-section {
    background: rgba(153, 240, 199, 0.77);
    border-radius: 50px;
    padding: 30px 40px;
}

.task-a-section {
    min-height: 855px;
}

.task-b-section {
    min-height: 694px;
}

/* Task Titles */
.task-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: #494545;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.264px;
}

.subtitle {
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    text-align: center;
    letter-spacing: -0.132px;
    margin-bottom: 20px;
}

.subtitle p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-btn {
    background: #d9d9d9;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    letter-spacing: -0.132px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn.wide {
    flex: 1;
    min-width: 232px;
}

.control-btn:hover {
    background: #c9c9c9;
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
}

.scenario-btn {
    width: 199px;
    margin-bottom: 15px;
}

/* Instruction Text */
.instruction-text {
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    text-align: center;
    letter-spacing: -0.132px;
    margin-bottom: 20px;
}

.instruction-text p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    background: #d9d9d9;
    border-radius: 10px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: move;
    transition: all 0.2s ease;
    min-height: 68px;
}

.step-item:hover {
    background: #c9c9c9;
    transform: translateX(5px);
}

.step-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.arrow-icon {
    font-size: 20px;
    color: #666;
    user-select: none;
    flex-shrink: 0;
}

.step-text {
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    letter-spacing: -0.132px;
    line-height: 1.5;
}

/* Scenario Box */
.scenario-box {
    background: rgba(153, 160, 240, 0.77);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    min-height: 205px;
}

.scenario-tag {
    background: #d9d9d9;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    letter-spacing: -0.132px;
    margin-bottom: 15px;
    height: 32px;
    width: 91px;
}

.scenario-content h3 {
    font-family: 'Autour One', sans-serif;
    font-size: 16px;
    color: #494545;
    letter-spacing: -0.132px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.scenario-description {
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #605d5d;
    letter-spacing: -0.132px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.scenario-detail {
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    letter-spacing: -0.132px;
    line-height: 1.5;
    text-align: justify;
}

/* Score Section */
.score-heading {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: #494545;
    text-align: left;
    margin-bottom: 10px;
    letter-spacing: -0.264px;
}

.score-value {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: #494545;
    letter-spacing: -0.264px;
    padding-bottom: 2px;
    border-bottom: 2px solid #f92b2b;
    display: inline-block;
    margin-bottom: 15px;
    line-height: 1.5;
}

.score-note {
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    text-align: center;
    letter-spacing: -0.132px;
    margin-bottom: 30px;
}

/* Key Points */
.key-points {
    margin-top: 20px;
}

.key-points-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: #494545;
    margin-bottom: 10px;
    letter-spacing: -0.264px;
}

.key-points-text {
    font-family: 'Autour One', sans-serif;
    font-size: 12px;
    color: #494545;
    letter-spacing: -0.132px;
    line-height: 1.5;
    text-align: justify;
}

/* Peer Test Button */
.peer-test-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.peer-test-btn {
    background: #81e5ff;
    border-radius: 10px;
    width: 222px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Autour One', sans-serif;
    font-size: 20px;
    color: #494545;
    text-decoration: none;
    letter-spacing: -0.22px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.peer-test-btn:hover {
    background: #6dd4ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.peer-test-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .task-container {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .task-a-section,
    .task-b-section {
        padding: 25px 30px;
    }
}

@media (max-width: 1024px) {
    .task-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .task-page {
        padding: 30px 20px;
    }

    .task-a-section,
    .task-b-section {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .task-page {
        padding: 20px 15px;
    }

    .task-a-section,
    .task-b-section {
        border-radius: 30px;
        padding: 20px;
    }

    .task-title {
        font-size: 20px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .control-btn,
    .control-btn.wide {
        width: 100%;
    }

    .step-item {
        padding: 15px 20px;
    }

    .step-text {
        font-size: 11px;
    }

    .peer-test-btn {
        width: 180px;
        height: 55px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .task-a-section,
    .task-b-section {
        border-radius: 20px;
        padding: 15px;
    }

    .task-title {
        font-size: 18px;
    }

    .subtitle,
    .instruction-text,
    .step-text {
        font-size: 10px;
    }

    .scenario-content h3 {
        font-size: 14px;
    }

    .score-heading,
    .key-points-title {
        font-size: 20px;
    }

    .peer-test-btn {
        width: 160px;
        height: 50px;
        font-size: 16px;
    }
}
