/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #fdf6ee;
    color: #2d1e0f;
    min-height: 100vh;
}

/* ===== App Container ===== */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
}

/* ===== Navigation ===== */
.nav {
    background: #fdf6ee;
    border-bottom: 2px solid #d9c8b0;
    flex-shrink: 0;
}

.nav-container {
    display: flex;
    width: 100%;
}

.nav-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border: none;
    border-bottom: 4px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.nav-step .nav-emoji {
    font-size: 32px;
    line-height: 1.5;
}

.nav-step .nav-label {
    font-size: 17px;
    line-height: 1.3;
    color: #7a5c3e;
    font-weight: 500;
}

.nav-step:hover {
    background: rgba(107, 79, 160, 0.05);
}

.nav-step[aria-current="page"] {
    border-bottom-color: #6b4fa0;
    color: #6b4fa0;
}

.nav-step[aria-current="page"] .nav-label {
    color: #6b4fa0;
    font-weight: 600;
}

.app[data-section="equipment"] .nav-step[aria-current="page"] {
    border-bottom-color: #315f26 !important;
    color: #315f26 !important;
}

.app[data-section="equipment"] .nav-step[aria-current="page"] .nav-label {
    color: #315f26 !important;
    font-weight: 600;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px;
    overflow-y: auto;
}

/* ===== Activity Styles ===== */
.activity-container {
    width: 100%;
    margin: 24px 0;
}

.activity-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    width: 800px;
    height: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.activity-instruction {
    font-size: 24px;
    line-height: 1.5;
    color: #2d1e0f;
    margin-bottom: 36px;
    text-align: center;
    flex-grow: 0;
}

.activity-scene {
    position: relative;
    min-height: 500px;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f5f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 36px 0;
    flex-grow: 1;
}

.activity-glass {
    position: relative;
    width: 40%;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border: 3px dashed #d9c8b0;
    border-radius: 12px;
    transition: border-color 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.glass-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.activity-pearls {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 10;
    display: block;
    visibility: visible;
    transition: all 0.3s ease;
}

.activity-water {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 10;
    display: block;
    visibility: visible;
    transition: all 0.3s ease;
}

.pearls-image {
    width: 150px;
    height: auto;
    display: block;
    visibility: visible;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== Step Header ===== */
.step-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 8px;
    min-height: 48px;
}

.step-header-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: #6b4fa0;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.step-counter {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    color: #7a5c3e;
}

/* ===== Step Progress Dots ===== */
.step-progress {
    display: flex;
    gap: 11px;
    height: 50px;
    align-items: center;
    padding-top: 20px;
    margin-top: 8px;
    width: 100%;
}

.step-dot {
    height: 7px;
    border-radius: 999px;
    flex: 1;
    min-width: 0;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: #6b4fa0;
}

.step-dot.inactive {
    background: #ede3d4;
}

/* ===== Step Content Card ===== */
.step-content {
    padding-top: 57px;
    width: 100%;
}

.content-card {
    background: #f0eaf8;
    border: 3px solid rgba(107, 79, 160, 0.14);
    border-radius: 36px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.content-emoji {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 12px;
}

.content-heading {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    color: #2d1e0f;
    margin-bottom: 12px;
}

.content-description {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: #000000;
    width: 100%;
    max-width: 679px;
}

.content-media {
    width: 100%;
    margin-top: 24px;
}

.content-video {
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    background: #000;
}

/* ===== Navigation Buttons ===== */
.step-navigation {
    display: flex;
    gap: 16px;
    height: 96px;
    align-items: center;
    padding-top: 32px;
    width: 100%;
}

.btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-prev {
    flex: 0 0 auto;
    min-width: 100px;
    background: #ede3d4;
    color: #5b3b1f;
    padding: 36px 57px;
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    flex: 1;
    min-width: 0;
    background: #6b4fa0;
    color: #fdf6ee;
    font-weight: 600;
    box-shadow: 0px 4px 14px rgba(107, 79, 160, 0.25);
}

.btn-next:hover {
    background: #5a428a;
}

.btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 21px 36px;
    border-radius: 29px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 25px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #ede3d4;
    color: #5b3b1f;
    min-width: 88px;
    height: 78px;
}

.btn-prev:hover {
    background: #e0d3c1;
}

.btn-next {
    background: #6b4fa0;
    color: #fdf6ee;
    flex: 1;
    height: 78px;
    box-shadow: 0px 4px 14px rgba(107, 79, 160, 0.25);
}

.btn-next:hover {
    background: #5a428a;
    transform: translateY(-1px);
    box-shadow: 0px 6px 18px rgba(107, 79, 160, 0.3);
}

.btn-prev:disabled,
.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-step {
        flex: 1 1 33%;
        padding: 16px 8px;
    }

    .nav-step .nav-emoji {
        font-size: 24px;
    }

    .nav-step .nav-label {
        font-size: 14px;
    }

    .main-content {
        padding: 24px;
    }

    .content-card {
        padding: 32px;
        min-height: 300px;
    }

    .content-emoji {
        font-size: 60px;
    }

    .content-heading {
        font-size: 32px;
    }

    .content-description {
        font-size: 22px;
    }

    .step-navigation {
        height: 100px;
    }

    .btn-nav {
        font-size: 20px;
        padding: 16px 24px;
    }
}

/* ===== Equipment Section Overrides ===== */
.app[data-section="equipment"] .step-title {
    color: #315f26;
}

.app[data-section="equipment"] .step-dot.active {
    background: #315f26;
}

.app[data-section="equipment"] .btn-next {
    background: #315f26;
    box-shadow: 0px 4px 14px rgba(49, 95, 38, 0.25);
}

.app[data-section="equipment"] .btn-next:hover {
    background: #264a1e;
    box-shadow: 0px 6px 18px rgba(49, 95, 38, 0.3);
}

.app[data-section="equipment"] .content-card {
    background: #f4f8ea;
    border-color: rgba(49, 95, 38, 0.14);
}

.app[data-section="equipment"] .content-card--minimal {
    background: transparent;
    border: none;
}

.app[data-section="equipment"] .nav-step[aria-current="page"] {
    border-bottom-color: #315f26;
    color: #315f26;
}

.app[data-section="equipment"] .nav-step[aria-current="page"] .nav-label {
    color: #315f26;
    font-weight: 600;
}

@media (max-width: 480px) {
    .nav-step .nav-label {
        display: none;
    }

    .nav-step {
        flex: 1 1 16.66%;
    }
}

/* ===== Prepare Tapioca Section Overrides ===== */
.app[data-section="prepare-tapioca-the-night-before"] .step-title {
    color: #7A3E3E;
}

.app[data-section="prepare-tapioca-the-night-before"] .step-dot.active {
    background: #7A3E3E;
}

.app[data-section="prepare-tapioca-the-night-before"] .btn-next {
    background: #7A3E3E;
    box-shadow: 0px 4px 14px rgba(122, 62, 62, 0.25);
}

.app[data-section="prepare-tapioca-the-night-before"] .btn-next:hover {
    background: #5f2f2f;
    box-shadow: 0px 6px 18px rgba(122, 62, 62, 0.3);
}

.app[data-section="prepare-tapioca-the-night-before"] .content-card {
    background: #f8efef;
    border-color: rgba(122, 62, 62, 0.14);
}

.app[data-section="prepare-tapioca-the-night-before"] .content-card--minimal {
    background: transparent;
    border: none;
}

.app[data-section="prepare-tapioca-the-night-before"] .nav-step[aria-current="page"] {
    border-bottom-color: #7A3E3E;
    color: #7A3E3E;
}

.app[data-section="prepare-tapioca-the-night-before"] .nav-step[aria-current="page"] .nav-label {
    color: #7A3E3E;
    font-weight: 600;
}

/* ===== Brew the Milk Tea Section Overrides ===== */
.app[data-section="brew-the-milk-tea"] .step-title {
    color: #7A3E3E;
}

.app[data-section="brew-the-milk-tea"] .step-dot.active {
    background: #7A3E3E;
}

.app[data-section="brew-the-milk-tea"] .btn-next {
    background: #7A3E3E;
    box-shadow: 0px 4px 14px rgba(122, 62, 62, 0.25);
}

.app[data-section="brew-the-milk-tea"] .btn-next:hover {
    background: #5f2f2f;
    box-shadow: 0px 6px 18px rgba(122, 62, 62, 0.3);
}

.app[data-section="brew-the-milk-tea"] .content-card {
    background: #f8efef;
    border-color: rgba(122, 62, 62, 0.14);
}

.app[data-section="brew-the-milk-tea"] .content-card--minimal {
    background: transparent;
    border: none;
}

.app[data-section="brew-the-milk-tea"] .nav-step[aria-current="page"] {
    border-bottom-color: #7A3E3E;
    color: #7A3E3E;
}

.app[data-section="brew-the-milk-tea"] .nav-step[aria-current="page"] .nav-label {
    color: #7A3E3E;
    font-weight: 600;
}

/* ===== Cook the Tapioca Section Overrides ===== */
.app[data-section="cook-the-tapioca"] .step-title {
    color: #7A3E3E;
}

.app[data-section="cook-the-tapioca"] .step-dot.active {
    background: #7A3E3E;
}

.app[data-section="cook-the-tapioca"] .btn-next {
    background: #7A3E3E;
    box-shadow: 0px 4px 14px rgba(122, 62, 62, 0.25);
}

.app[data-section="cook-the-tapioca"] .btn-next:hover {
    background: #5f2f2f;
    box-shadow: 0px 6px 18px rgba(122, 62, 62, 0.3);
}

.app[data-section="cook-the-tapioca"] .content-card {
    background: #f8efef;
    border-color: rgba(122, 62, 62, 0.14);
}

.app[data-section="cook-the-tapioca"] .content-card--minimal {
    background: transparent;
    border: none;
}

.app[data-section="cook-the-tapioca"] .nav-step[aria-current="page"] {
    border-bottom-color: #7A3E3E;
    color: #7A3E3E;
}

.app[data-section="cook-the-tapioca"] .nav-step[aria-current="page"] .nav-label {
    color: #7A3E3E;
    font-weight: 600;
}

/* ===== Assemble the Bubble Tea Section Overrides ===== */
.app[data-section="assemble-the-bubble-tea"] .step-title {
    color: #7A3E3E;
}

.app[data-section="assemble-the-bubble-tea"] .step-dot.active {
    background: #7A3E3E;
}

.app[data-section="assemble-the-bubble-tea"] .btn-next {
    background: #7A3E3E;
    box-shadow: 0px 4px 14px rgba(122, 62, 62, 0.25);
}

.app[data-section="assemble-the-bubble-tea"] .btn-next:hover {
    background: #5f2f2f;
    box-shadow: 0px 6px 18px rgba(122, 62, 62, 0.3);
}

.app[data-section="assemble-the-bubble-tea"] .content-card {
    background: #f8efef;
    border-color: rgba(122, 62, 62, 0.14);
}

.app[data-section="assemble-the-bubble-tea"] .content-card--minimal {
    background: transparent;
    border: none;
}

.app[data-section="assemble-the-bubble-tea"] .nav-step[aria-current="page"] {
    border-bottom-color: #7A3E3E;
    color: #7A3E3E;
}

.app[data-section="assemble-the-bubble-tea"] .nav-step[aria-current="page"] .nav-label {
    color: #7A3E3E;
    font-weight: 600;
}

/* ===== Interactive Activity Styles ===== */
.activity-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.activity-card {
    background: #f0eaf8;
    border: 3px solid rgba(107, 79, 160, 0.14);
    border-radius: 36px;
    padding: 40px;
    width: 800px;
    height: 660px;
}

.activity-instruction {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #6b4fa0;
    text-align: center;
    margin-bottom: 36px;
}

.activity-scene {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #f8f4ff 0%, #ede3d4 100%);
    border-radius: 24px;
    overflow: hidden;
}

.activity-glass {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.glass-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.activity-pearls {
    position: absolute;
    width: 180px;
    height: 180px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: all 0.3s ease;
}

.pearls-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.activity-pearls:active {
    cursor: grabbing;
}

/* ===== Quiz Styles ===== */
.quiz-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-question {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.quiz-question-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #2d1e0f;
    margin-bottom: 16px;
    line-height: 1.4;
}

.quiz-question-number {
    color: #6b4fa0;
    margin-right: 8px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9f5f0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #2d1e0f;
    text-align: left;
    width: 100%;
}

.quiz-option:hover:not([disabled]) {
    background: #ede3d4;
    border-color: #d9c8b0;
}

.quiz-option.selected {
    background: #f0eaf8;
    border-color: #6b4fa0;
    color: #6b4fa0;
}

.quiz-option.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.quiz-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.quiz-option-marker {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz-feedback {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.quiz-feedback.correct {
    background: #d4edda;
    color: #155724;
}

.quiz-feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.quiz-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.quiz-results-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 32px;
    color: #2d1e0f;
    margin-bottom: 16px;
}

.quiz-results-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #6b4fa0;
    margin-bottom: 24px;
}

.quiz-results-message {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #5b3b1f;
    margin-bottom: 32px;
    line-height: 1.5;
}

.quiz-restart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #6b4fa0;
    color: #fdf6ee;
    border: none;
    border-radius: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 14px rgba(107, 79, 160, 0.25);
}

.quiz-restart-btn:hover {
    background: #5a428a;
    transform: translateY(-1px);
    box-shadow: 0px 6px 18px rgba(107, 79, 160, 0.3);
}

/* ===== End of File ===== */
