/* LOL Moon Calculator - Custom Styles */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', 'Comic Sans MS', cursive, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Retro Shadow System */
.shadow-retro {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
}

.shadow-retro-lg {
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
}

.shadow-retro-sm {
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

/* Hover Effects */
.shadow-retro:hover,
.shadow-retro-lg:hover {
    transform: translateY(-2px);
    box-shadow: 8px 12px 0px rgba(0, 0, 0, 1);
    transition: all 0.2s ease;
}

/* Custom Range Slider */
.slider {
    background: linear-gradient(to right, #6bc5a6 0%, #f9c74f 50%, #f8961e 100%);
    border: 3px solid #000;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    background: #f9c74f;
    border: 4px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #f9c74f;
    border: 4px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
}

/* Quick Pick Buttons */
.quick-pick-btn,
.quick-pick-holdings-btn {
    background: #1a5f3f;
    color: #6bc5a6;
    border: 2px solid #000;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-pick-btn:hover,
.quick-pick-holdings-btn:hover {
    background: #6bc5a6;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
}

.quick-pick-btn:active,
.quick-pick-holdings-btn:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

/* Result Card Glow Effects */
.glow-green {
    box-shadow: 0 0 30px rgba(107, 197, 166, 0.5);
}

.glow-gold {
    box-shadow: 0 0 40px rgba(249, 199, 79, 0.6);
}

.glow-orange {
    box-shadow: 0 0 50px rgba(248, 150, 30, 0.7);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 50px rgba(248, 150, 30, 0.7);
    }
    50% {
        box-shadow: 0 0 70px rgba(248, 150, 30, 0.9);
    }
}

/* Number Count-Up Animation */
.count-up {
    animation: count-up 0.6s ease-out;
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f9c74f;
    animation: confetti-fall 2s ease-out forwards;
}

.confetti:nth-child(2n) {
    background: #f8961e;
}

.confetti:nth-child(3n) {
    background: #6bc5a6;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Comparison Cards */
.comparison-card {
    background: #1a5f3f;
    border: 4px solid #000;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
}

/* Lazy Bounce Animation */
@keyframes lazy-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-lazy-bounce {
    animation: lazy-bounce 2s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 1s ease-out;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .slider {
        height: 16px;
    }

    .slider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }

    .slider::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }

    .quick-pick-btn,
    .quick-pick-holdings-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Touch Improvements for Mobile */
@media (hover: none) and (pointer: coarse) {
    .slider::-webkit-slider-thumb {
        width: 36px;
        height: 36px;
    }

    .slider::-moz-range-thumb {
        width: 36px;
        height: 36px;
    }

    button,
    .quick-pick-btn,
    .quick-pick-holdings-btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Share Modal Styles (if needed) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-content {
    background: #1a5f3f;
    border: 4px solid #000;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f8961e;
    border: 2px solid #000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
    background: #f9c74f;
}

/* Responsive Text Sizing */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #future-value {
        font-size: 2.5rem;
    }
}

/* Print Styles (for sharing) */
@media print {
    body {
        background: white;
        color: black;
    }

    .shadow-retro,
    .shadow-retro-lg {
        box-shadow: none;
        border: 2px solid #000;
    }
}
