/* ==========================================================================
   INTERACTIVE BREWING GUIDE STYLES
   ========================================================================== */

.interactive-guide-wrapper {
    margin-top: calc(var(--nav-height) + 2rem);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-text {
    max-width: 700px;
    margin-bottom: 3rem;
}

.header-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}


/* Stage */
.interactive-stage {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.tea-type-selector {
    display: flex;
    background: #fdfdfc;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    /* Handle small screens */
}

.tea-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tea-tab:hover {
    color: var(--primary);
    background: #fafaf5;
}

.tea-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}


/* Dashboard Layout */
.dashboard-panel {
    display: flex;
    flex: 1;
    min-height: 400px;
}

.visual-panel {
    flex: 0 0 40%;
    background: #f4f6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-right: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.metrics-panel {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metrics-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.desc-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
    min-height: 80px;
    /* Prevent jumping during transitions */
}

/* Specs Grid Override inside Dashboard */
.metrics-panel .specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metrics-panel .spec-card {
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.spec-card.highlight {
    background: #f4f1eb;
    border-color: #e4e0d4;
}

.spec-card .val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 0.5rem;
}


/* Kettle Animation CSS */
.kettle-illustration {
    position: relative;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kettle {
    width: 150px;
    height: 150px;
    overflow: visible;
}

.steam {
    animation: rise 3s infinite ease-in;
    opacity: 0;
}

.steam-2 {
    animation-delay: 1.5s;
    animation-duration: 4s;
}

@keyframes rise {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-40px) scaleX(1.5);
        opacity: 0;
    }
}

.temp-display {
    margin-top: 2rem;
    font-family: var(--font-heading);
    color: var(--primary);
    display: flex;
    align-items: flex-start;
}

.count-up {
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.8;
}

.degree {
    font-size: 2rem;
    font-weight: 500;
    margin-left: 0.2rem;
}


/* Animation State Class */
.fade-transition {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 850px) {
    .dashboard-panel {
        flex-direction: column;
    }

    .visual-panel {
        flex: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 2rem;
    }

    .kettle-illustration {
        width: auto;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }

    .temp-display {
        margin-top: 0;
    }

    .metrics-panel {
        padding: 2rem;
    }
}