/* ===================================
   Storybook Theme
   The Ice Cream Adventure - Playful & Colorful
   =================================== */

/* Playful Typography */
.game-title,
.start-title,
.encounter-title {
    font-family: 'Comic Sans MS', 'Marker Felt', 'Chalkboard SE', cursive, sans-serif;
    letter-spacing: 0.5px;
}

/* Additional Colorful Elements */
.choice-btn:nth-child(1) {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFE55C 100%);
    border-color: #FFB6C1;
}

.choice-btn:nth-child(2) {
    background: linear-gradient(135deg, #98D8C8 0%, #87CEEB 100%);
    border-color: #98D8C8;
}

.choice-btn:nth-child(3) {
    background: linear-gradient(135deg, #FFE55C 0%, #98D8C8 100%);
    border-color: #FFE55C;
}

.choice-btn:nth-child(4) {
    background: linear-gradient(135deg, #D2B48C 0%, #FFE55C 100%);
    border-color: #D2B48C;
}

/* Hover effects maintain playfulness */
.choice-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #FFE55C 0%, #FFB6C1 100%);
}

.choice-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 100%);
}

.choice-btn:nth-child(3):hover {
    background: linear-gradient(135deg, #98D8C8 0%, #FFE55C 100%);
}

.choice-btn:nth-child(4):hover {
    background: linear-gradient(135deg, #FFE55C 0%, #D2B48C 100%);
}

/* Decorative Borders */
.encounter-card {
    background: linear-gradient(to bottom, #ffffff 0%, #FFFEF7 100%);
    position: relative;
}

.encounter-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #87CEEB, #98D8C8, #FFB6C1, #FFE55C);
    border-radius: 15px;
    z-index: -1;
}

/* Playful Shadows and Depth */
.party-status {
    box-shadow: 0 4px 8px rgba(255, 182, 193, 0.3);
}

.game-header {
    position: relative;
    overflow: hidden;
}

.game-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Achievement Badge Styles */
.achievement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFE55C 0%, #FFB6C1 100%);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    border: 2px solid #D2691E;
    font-weight: bold;
    color: #333;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.achievement-badge::before {
    content: '🌟 ';
}

/* Fun Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.start-btn:hover {
    animation: bounce 0.6s ease infinite;
}

/* Delayed reminder bounce - starts after 10 seconds */
@keyframes reminderBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce-reminder {
    animation: reminderBounce 1s ease-in-out infinite;
}

/* Emoji and Icon Sizing */
.status-value {
    letter-spacing: 2px;
}

/* Flavor Text Styling */
.flavor-text {
    font-style: italic;
    color: #666;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #FFB6C1;
}

/* Journey Summary (Finale) */
.journey-summary {
    background-color: #FFF0F5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 3px solid #FFB6C1;
}

.journey-summary h3 {
    color: #D2691E;
    margin-bottom: 15px;
    text-align: center;
}

.journey-summary ul {
    list-style: none;
    padding-left: 0;
}

.journey-summary li {
    color: #333;
    padding: 8px 0;
    border-bottom: 1px dashed #FFB6C1;
}

.journey-summary li:last-child {
    border-bottom: none;
}

.journey-summary li::before {
    content: '✨ ';
    margin-right: 8px;
}

/* Ice Cream Flavor Choice Styling */
.flavor-choice {
    font-size: 1.3em;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #FFB6C1 0%, #98D8C8 100%);
    border-radius: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Character Names Highlighting */
.character-name {
    font-weight: bold;
    color: #D2691E;
}

/* Playful Button Number Indicators */
.choice-btn::before {
    content: attr(data-number) '. ';
    font-weight: bold;
    opacity: 0.6;
    margin-right: 5px;
}

/* Energy and Morale Visual Enhancements */
.status-item .status-value {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Loading Animation (for future use) */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Confetti effect for achievements (CSS-only) */
.confetti {
    position: relative;
}

.confetti::after {
    content: '🎉';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 2em;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Cute Corner Decorations */
.encounter-card {
    overflow: hidden;
}

/* Finale Screen Special Styling */
.finale-screen {
    text-align: center;
    padding: 30px;
}

.finale-screen .ice-cream-emoji {
    font-size: 4em;
    display: block;
    margin: 20px 0;
    animation: bounce 1s ease infinite;
}

.finale-title {
    font-size: 2.5em;
    color: #D2691E;
    margin-bottom: 20px;
}

.finale-message {
    font-size: 1.3em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

/* Party Member Pills */
.party-member-pill {
    display: inline-block;
    background-color: #98D8C8;
    color: #333;
    padding: 5px 12px;
    margin: 3px;
    border-radius: 15px;
    font-size: 0.9em;
    border: 2px solid #87CEEB;
}

/* Fun fact boxes */
.fun-fact {
    background-color: #FFE55C;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border: 2px solid #D2691E;
    font-style: italic;
}

.fun-fact::before {
    content: '💡 Fun Fact: ';
    font-weight: bold;
    font-style: normal;
}
