/* ══════════════════════════════════════════════════════════════
   INFO PANEL - Simple text overlay in sky
   Garden name floats in the sky area with progress bar below
   ══════════════════════════════════════════════════════════════ */

/* HIDDEN - replaced by biplane banner */
.info-panel {
    display: none;
}

.garden-name {
    font-size: 20px;
    font-weight: bold;
    color: #4a3a2a;
    letter-spacing: 1px;
    text-shadow:
        0 1px 0 rgba(255, 250, 240, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
}

.garden-progress {
    font-size: 13px;
    color: #6a5a4a;
    text-shadow: 0 1px 0 rgba(255, 250, 240, 0.5);
}

/* Progress bar - simple vintage style */
.progress-bar {
    width: 120px;
    height: 8px;
    background: rgba(90, 70, 50, 0.25);
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(90, 70, 50, 0.4);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        #6a9050 0%,
        #7aa858 50%,
        #8ab860 100%
    );
    border-radius: 2px;
    transition: width 0.5s ease;
    min-width: 8px;
}

/* ══════════════════════════════════════════════════════════════
   PROGRESS BADGE - Tappable stage indicator on the garden
   ══════════════════════════════════════════════════════════════ */

.progress-badge {
    position: absolute;
    bottom: 6%;
    left: 4%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 250, 240, 0.85);
    border: 2px solid rgba(90, 70, 50, 0.4);
    border-radius: 12px;
    cursor: pointer;
    z-index: 15;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.progress-badge:active {
    transform: scale(0.95);
}

.progress-badge-stage {
    font-size: 13px;
    font-weight: 700;
    color: #4a3a2a;
    white-space: nowrap;
    font-family: 'Nunito', sans-serif;
}

.progress-badge-bar {
    width: 40px;
    height: 6px;
    background: rgba(90, 70, 50, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-badge-fill {
    height: 100%;
    background: linear-gradient(90deg, #6a9050, #8ab860);
    border-radius: 3px;
    transition: width 0.5s ease;
    min-width: 8px;
}

/* ══════════════════════════════════════════════════════════════
   BREAKDOWN POPUP - Factor details shown on badge tap
   ══════════════════════════════════════════════════════════════ */

.breakdown-popup {
    position: absolute;
    bottom: 14%;
    left: 4%;
    width: 180px;
    padding: 10px 12px;
    background: rgba(255, 250, 240, 0.95);
    border: 2px solid rgba(90, 70, 50, 0.4);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 16;
    animation: breakdownSlideIn 0.2s ease-out;
}

.breakdown-popup.hidden {
    display: none;
}

@keyframes breakdownSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.breakdown-title {
    font-size: 13px;
    font-weight: 700;
    color: #4a3a2a;
    margin-bottom: 8px;
    font-family: 'Nunito', sans-serif;
}

.breakdown-factor {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.breakdown-factor:last-child {
    margin-bottom: 0;
}

.breakdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.breakdown-dot.strong { background: #6a9050; }
.breakdown-dot.growing { background: #c9a832; }
.breakdown-dot.planted { background: #9a8aaa; }

.breakdown-label {
    font-size: 13px;
    color: #5a4a3a;
    flex: 1;
    font-family: 'Nunito', sans-serif;
}

.breakdown-bar-wrap {
    width: 50px;
    height: 5px;
    background: rgba(90, 70, 50, 0.15);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.breakdown-bar-fill.strong { background: #6a9050; }
.breakdown-bar-fill.growing { background: #c9a832; }
.breakdown-bar-fill.planted { background: #9a8aaa; }

/* Tooltip help "?" icon on each factor */
.breakdown-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(90, 70, 50, 0.15);
    color: #8a7a6a;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    cursor: pointer;
    line-height: 1;
    font-family: 'Georgia', serif;
}

/* Tooltip text that appears below the factor row */
.breakdown-tooltip-text {
    font-size: 13px;
    color: #6a5a4a;
    line-height: 1.4;
    padding: 5px 0 2px 14px;
    font-style: italic;
    animation: tooltip-fade 4s ease forwards;
}

@keyframes tooltip-fade {
    0% { opacity: 0; transform: translateY(-3px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Sunbeam balance in breakdown popup */
.breakdown-sunbeams {
    font-size: 13px;
    color: #8b6914;
    text-align: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(90, 70, 50, 0.1);
}

/* Disclaimer footer in breakdown popup */
.breakdown-disclaimer {
    font-size: 13px;
    color: #9a8a7a;
    text-align: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(90, 70, 50, 0.1);
    font-style: italic;
}

/* Hide badge during welcome overlay */
.garden-scene:has(.welcome-overlay.visible) .progress-badge,
.garden-scene:has(.welcome-overlay.visible) .breakdown-popup {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .progress-badge {
        background: rgba(40, 35, 30, 0.85);
        border-color: rgba(180, 160, 130, 0.4);
    }
    .progress-badge-stage {
        color: #e0d5c5;
    }
    .breakdown-popup {
        background: rgba(40, 35, 30, 0.95);
        border-color: rgba(180, 160, 130, 0.4);
    }
    .breakdown-title {
        color: #e0d5c5;
    }
    .breakdown-label {
        color: #c0b5a5;
    }
}
