/* Fun YOLO Landing Page CSS */

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

body {
    font-family: 'Fredoka', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #000;
    color: white;
}

/* Fun Background Pattern */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #8b5cf6;
}

/* Navigation Links */
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: #fbbf24;
    transform: scale(1.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 12px 32px;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Floating Mascots */
.floating-mascot {
    animation: float 6s ease-in-out infinite;
}

.floating-mascot:nth-child(2) {
    animation-delay: -2s;
}

.floating-mascot:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

/* Rainbow Text Effect */
.rainbow-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 4s ease-in-out infinite;
}

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

/* Sticker Items */
.sticker-item {
    text-align: center;
    transition: all 0.3s ease;
}

.sticker-item:hover {
    transform: scale(1.1) rotate(5deg);
}

.sticker-item img {
    border: 3px solid transparent;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

/* Community Cards */
.community-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #8b5cf6;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

/* Gallery Items */
.gallery-item {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.gallery-item img {
    border: 2px solid transparent;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

/* Rainbow Underline */
.rainbow-underline {
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    background-size: 200% 100%;
    animation: rainbow-move 3s linear infinite;
    border-radius: 2px;
}

@keyframes rainbow-move {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Toast Animation */
#toast.show {
    transform: translateX(0);
}

/* Fun Animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section Transitions */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fun Hover Effects */
.community-card:hover h3 {
    color: #fbbf24;
}

.sticker-item:hover span {
    color: #fbbf24;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    h1 {
        font-size: 3rem !important;
    }
    
    .floating-mascot {
        display: none;
    }
    
    .community-card {
        padding: 1.5rem;
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #4ecdc4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4ecdc4, #45b7d1);
}

/* Focus States for Accessibility */
button:focus, a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Fun Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Fun Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Fun Text Glow */
.rainbow-text {
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Fun Button Glow */
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

.btn-secondary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Fun Section Backgrounds */
#lore {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
}

#community {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #065f46 100%);
}

/* Fun Typography */
h1, h2, h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Fun Border Effects */
.border-purple-500 {
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Fun Gradient Borders */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    padding: 3px;
    border-radius: 1rem;
}

.gradient-border > * {
    background: #000;
    border-radius: calc(1rem - 3px);
}

/* Contract Address Styling */
#copy-ca {
    transition: all 0.3s ease;
    transform: scale(1);
}

#copy-ca:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#copy-ca:active {
    transform: scale(0.95);
}

/* Contract Address Container Animation */
.contract-address-container {
    animation: contractPulse 2s ease-in-out infinite;
}

@keyframes contractPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
    }
}
