* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #334155;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Enhanced Header with Fire Effects */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    text-align: center;
    position: relative;
    z-index: 100;
    overflow: hidden;
}

.fire-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.fire-particle {
    position: absolute;
    width: 4px;
    height: 8px;
    background: linear-gradient(to top, #ff6b35, #f59e0b, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: fireFloat 2s ease-out forwards;
}

@keyframes fireFloat {
    0% {
        transform: translateY(100px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) scale(0.5);
        opacity: 0;
    }
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.mayo-banner {
    background: linear-gradient(90deg, #ff6b35, #f59e0b, #ff6b35);
    background-size: 200% 100%;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    margin: 0.5rem 0;
    animation: gradientShift 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.achievement-banner {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.5rem;
    border-radius: 10px;
    margin: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scrolling-text {
    display: inline-block;
    animation: scroll 10s linear infinite;
    font-weight: 600;
}

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

.search-container {
    position: relative;
    max-width: 400px;
    margin: 1rem auto 0;
}

#searchInput {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #64748b;
}

.trending-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

/* Enhanced Scene Container */
#scene-container {
    flex: 1;
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

#scene-container canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fire-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.fire-trail-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ff6b35, transparent);
    border-radius: 50%;
    animation: fireTrailFade 1s ease-out forwards;
    pointer-events: none;
}

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

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

/* Enhanced Sidebar */
.sidebar {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    z-index: 50;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.mayo-meter-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.mayo-meter {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    height: 30px;
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0;
    border: 2px solid rgba(245, 158, 11, 0.5);
}

.mayo-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: 25px;
    transition: width 0.5s ease;
    position: relative;
}

.mayo-meter-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.mayo-meter-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.control-section {
    margin-bottom: 1.5rem;
}

.control-section h3 {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.dope-mode-toggle {
    margin-bottom: 1rem;
}

.dope-toggle-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff6b35, #f59e0b);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dope-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.5);
}

.dope-toggle-btn.active {
    animation: dopeGlow 1s ease-in-out infinite alternate;
}

@keyframes dopeGlow {
    0% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
    100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.8); }
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn, .view-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-btn:hover, .view-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.category-btn.active, .view-btn.active {
    background: #f59e0b;
    color: white;
    font-weight: 600;
}

.mayo-special {
    background: linear-gradient(45deg, #ff6b35, #f59e0b) !important;
    color: white !important;
    font-weight: 700 !important;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.effect-toggle {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 15px;
    background: #10b981;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.effect-toggle:not(.active) {
    background: #ef4444;
}

.effect-toggle:hover {
    transform: scale(1.1);
}

#timeSlider, #confettiSlider, #sparkleSlider {
    width: 100%;
    margin-bottom: 0.5rem;
    accent-color: #f59e0b;
}

#timeLabel, #confettiLabel, #sparkleLabel {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
}

#weatherSelect {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #334155;
    backdrop-filter: blur(10px);
}

.view-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-section {
    margin-bottom: 1.5rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement {
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.achievement.locked {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.achievement.unlocked {
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
    font-weight: 600;
    animation: achievementUnlock 1s ease-out;
}

@keyframes achievementUnlock {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.info-panel {
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.mayo-style {
    border: 2px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.info-panel h3 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-panel p {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.landmark-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category, .dope-level {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.dope-level {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.mayo-quotes {
    margin-top: 1rem;
}

.quote {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.quote.active {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Bottom Toolbar */
.bottom-toolbar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.fire-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff6b35, #f59e0b);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.fire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.mayo-celebration-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    animation: celebrationPulse 2s ease-in-out infinite;
}

@keyframes celebrationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
}

.mayo-celebration-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.6);
}

/* Mayo Features */
.mayo-reaction-cam {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mayo-reaction-cam.active {
    transform: translateY(0);
    opacity: 1;
}

.mayo-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b35, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reaction-bubble {
    background: #1e40af;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    position: relative;
}

.reaction-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: #1e40af;
}

.fire-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.fire-counter.fire-pulse {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
}

.fire-icon {
    font-size: 1.5rem;
    animation: flicker 1s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.fire-count {
    font-size: 1.2rem;
    font-weight: 700;
}

.fire-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Mayo Special Message */
.mayo-special-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(45deg, #ff6b35, #f59e0b);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 80vw;
}

.mayo-special-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Enhanced Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mayo-enhanced {
    background: rgba(245, 158, 11, 0.1);
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.footer p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.mayo-endorsement {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #d97706;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .mayo-banner {
        font-size: 0.9rem;
    }
    
    .sidebar {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: calc(100% - 2rem);
        margin: 1rem;
        margin-bottom: 0;
        max-height: none;
    }
    
    #scene-container {
        min-height: 50vh;
    }
    
    .bottom-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .fire-btn, .mayo-celebration-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 120px;
    }
    
    .mayo-reaction-cam {
        bottom: 10px;
        right: 10px;
        padding: 0.5rem;
    }
    
    .fire-counter {
        top: 10px;
        right: 10px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .mayo-special-message {
        font-size: 1.2rem;
        padding: 1.5rem;
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .mayo-banner {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .sidebar {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .bottom-toolbar {
        padding: 0.5rem;
    }
    
    .fire-btn, .mayo-celebration-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.7);
}

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

.category-btn, .view-btn {
    animation: float 6s ease-in-out infinite;
}

.category-btn:nth-child(2) { animation-delay: -1s; }
.category-btn:nth-child(3) { animation-delay: -2s; }
.category-btn:nth-child(4) { animation-delay: -3s; }
.category-btn:nth-child(5) { animation-delay: -4s; }

/* Glassmorphism effects */
.header, .sidebar, .bottom-toolbar, .footer {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhanced focus states for accessibility */
button:focus, input:focus, select:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Special Mayo Effects */
@keyframes mayoGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.8);
        transform: scale(1.02);
    }
}

.mayo-special:hover {
    animation: mayoGlow 1s ease-in-out infinite;
}

/* Fire trail cursor effect */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23ff6b35" opacity="0.8"/></svg>'), auto;
}

/* Additional fire effects for dope mode */
.dope-mode-active .category-btn,
.dope-mode-active .view-btn {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    animation: dopeFloat 2s ease-in-out infinite;
}

@keyframes dopeFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    }
    25% { 
        transform: translateY(-5px) rotate(1deg); 
        box-shadow: 0 5px 20px rgba(245, 158, 11, 0.7);
    }
    50% { 
        transform: translateY(-8px) rotate(0deg); 
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.8);
    }
    75% { 
        transform: translateY(-5px) rotate(-1deg); 
        box-shadow: 0 5px 20px rgba(245, 158, 11, 0.7);
    }
}