/* ============================================
   CAPYBARA GO! - Map & Adventure Display Styles
   ============================================ */

/* Map Screen Layout */
#map-screen {
    background: linear-gradient(180deg, 
        var(--color-bg-secondary) 0%, 
        var(--color-bg-primary) 50%,
        #d4e5c7 100%);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.player-stats-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.stat-item.hp {
    flex: 1;
    max-width: 180px;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-item.gold,
.stat-item.floor {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adventure Display */
.adventure-display {
    text-align: center;
    padding: var(--space-xl);
}

.capybara-walking {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 0 auto var(--space-xl);
}

/* Walking Capybara Animation */
.walking-capybara {
    position: absolute;
    width: 100px;
    height: 70px;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    animation: walkBounce 0.6s ease-in-out infinite;
}

.walking-capybara::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 50px;
    background: var(--color-capybara-body);
    border-radius: 40px 40px 25px 25px;
    bottom: 15px;
    left: 10px;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.1);
}

.walking-capybara::after {
    content: '😊';
    position: absolute;
    font-size: 28px;
    bottom: 35px;
    left: 60px;
}

@keyframes walkBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* Walking ground/path */
.walking-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(139, 105, 20, 0.3) 20%,
        rgba(139, 105, 20, 0.5) 50%,
        rgba(139, 105, 20, 0.3) 80%,
        transparent 100%
    );
    border-radius: var(--radius-full);
    overflow: hidden;
}

.walking-ground::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(90deg, 
        transparent 0px,
        transparent 20px,
        rgba(0,0,0,0.2) 20px,
        rgba(0,0,0,0.2) 25px
    );
    animation: groundScroll 1s linear infinite;
}

@keyframes groundScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Progress Info */
.progress-info h2 {
    font-family: var(--font-display);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.8rem;
}

.floor-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.floor-label span {
    color: var(--color-primary);
}

/* Floor Progress Dots */
.floor-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-md);
}

.progress-dot {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.progress-dot.completed {
    background: var(--color-tertiary);
    box-shadow: 0 0 8px var(--color-tertiary);
}

.progress-dot.current {
    background: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.progress-text {
    color: var(--color-text-light);
    font-style: italic;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* World-specific backgrounds */
.map-container.world-1 {
    background: linear-gradient(180deg, 
        #e8f5e9 0%, 
        #c8e6c9 50%,
        #a5d6a7 100%);
}

.map-container.world-2 {
    background: linear-gradient(180deg, 
        #fff8e1 0%, 
        #ffecb3 50%,
        #ffe082 100%);
}

.map-container.world-3 {
    background: linear-gradient(180deg, 
        #e3f2fd 0%, 
        #bbdefb 50%,
        #90caf9 100%);
}

.map-container.world-4 {
    background: linear-gradient(180deg, 
        #fce4ec 0%, 
        #f8bbd9 50%,
        #f48fb1 100%);
}

.map-container.world-5 {
    background: linear-gradient(180deg, 
        #ede7f6 0%, 
        #d1c4e9 50%,
        #b39ddb 100%);
}

/* Floor Transition Overlay */
.floor-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: transitionFade 2s ease-in-out forwards;
}

.transition-content {
    text-align: center;
    color: white;
    animation: transitionPop 0.5s ease-out;
}

.transition-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px var(--color-gold);
}

.transition-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

@keyframes transitionFade {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes transitionPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* World Indicator (now in adventure display) */
.world-indicator {
    display: none; /* Hidden since we show it in adventure-display */
}
