/* ============================================
   MELLO ZONE — FANDOM OVERHAUL
   Paw cursor, sparkles, glow trails, furry pop
   ============================================ */

/* --- Paw Print Cursor --- */
@keyframes mzPawPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Base64-encoded paw cursor for max compatibility */
* {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23FF4DB8' opacity='0.9'%3E%3Cellipse cx='14' cy='19' rx='6' ry='5'/%3E%3Ccircle cx='7' cy='11' r='3'/%3E%3Ccircle cx='21' cy='11' r='3'/%3E%3Ccircle cx='11' cy='6' r='2.5'/%3E%3Ccircle cx='17' cy='6' r='2.5'/%3E%3C/g%3E%3C/svg%3E") 14 14, auto;
}

a, button, [role="button"], input[type="submit"], .mz-btn, .mz-social-icon, .mz-menu-toggle {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23D926FF'%3E%3Cellipse cx='14' cy='19' rx='6' ry='5'/%3E%3Ccircle cx='7' cy='11' r='3'/%3E%3Ccircle cx='21' cy='11' r='3'/%3E%3Ccircle cx='11' cy='6' r='2.5'/%3E%3Ccircle cx='17' cy='6' r='2.5'/%3E%3C/g%3E%3C/svg%3E") 14 14, pointer;
}

/* --- Sparkle Cursor Trail --- */
.mz-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mz-pink);
    box-shadow:
        0 0 6px var(--mz-pink),
        0 0 12px var(--mz-magenta),
        0 0 20px var(--mz-purple);
    animation: mzSparkle 0.6s ease-out forwards;
}

@keyframes mzSparkle {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translate(var(--mz-dx, 10px), var(--mz-dy, -15px));
    }
}

/* --- Glowing Neon Text Enhancements --- */
.mz-glow-text {
    background: linear-gradient(135deg, var(--mz-pink), var(--mz-magenta), var(--mz-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(217, 38, 255, 0.4));
    animation: mzTextGlow 3s ease-in-out infinite alternate;
}

@keyframes mzTextGlow {
    0% { filter: drop-shadow(0 0 6px rgba(255, 77, 184, 0.3)); }
    50% { filter: drop-shadow(0 0 14px rgba(217, 38, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 6px rgba(138, 43, 255, 0.3)); }
}

/* --- Enhanced Link Hover Glow --- */
a:hover {
    text-shadow: 0 0 8px rgba(255, 77, 184, 0.5);
}

/* --- Glassmorphism Card Hover Enhancement --- */
.mz-glass-card:hover,
.mz-event-card:hover,
.mz-rules-card:hover,
.mz-resource-box:hover,
.mz-role-card:hover,
.mz-masonry-item:hover {
    box-shadow:
        0 0 15px rgba(217, 38, 255, 0.2),
        0 8px 32px rgba(138, 43, 255, 0.15),
        inset 0 0 30px rgba(255, 77, 184, 0.05);
}

/* --- Button Shimmer Effect --- */
.mz-btn::before,
.mz-cta-btn::before,
.mz-apply-btn::before,
.mz-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.mz-btn:hover::before,
.mz-cta-btn:hover::before,
.mz-apply-btn:hover::before,
.mz-submit-btn:hover::before {
    left: 100%;
}

.mz-btn,
.mz-cta-btn,
.mz-apply-btn,
.mz-submit-btn {
    position: relative;
    overflow: hidden;
}

/* --- Social Icon Hover Bounce --- */
.mz-social-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mz-social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow:
        0 0 12px rgba(255, 77, 184, 0.5),
        0 0 24px rgba(217, 38, 255, 0.3);
}

/* --- Paw Print Background Pattern --- */
.mz-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23FF4DB8'%3E%3Cellipse cx='30' cy='38' rx='10' ry='8'/%3E%3Ccircle cx='18' cy='24' r='5'/%3E%3Ccircle cx='42' cy='24' r='5'/%3E%3Ccircle cx='23' cy='14' r='4'/%3E%3Ccircle cx='37' cy='14' r='4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.mz-footer > * {
    position: relative;
    z-index: 1;
}

/* --- Hero Section Floating Particles --- */
.mz-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(255, 77, 184, 0.6), transparent),
        radial-gradient(2px 2px at 35% 75%, rgba(217, 38, 255, 0.5), transparent),
        radial-gradient(3px 3px at 55% 15%, rgba(138, 43, 255, 0.4), transparent),
        radial-gradient(2px 2px at 75% 65%, rgba(255, 110, 219, 0.5), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(200, 156, 255, 0.4), transparent),
        radial-gradient(3px 3px at 25% 55%, rgba(106, 91, 255, 0.3), transparent),
        radial-gradient(2px 2px at 65% 45%, rgba(255, 77, 184, 0.35), transparent),
        radial-gradient(2px 2px at 45% 85%, rgba(217, 38, 255, 0.4), transparent);
    animation: mzExtraStars 6s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes mzExtraStars {
    0% { opacity: 0.5; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(-5px); }
}

/* --- Neon Border Pulse on Focus --- */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--mz-pink) !important;
    box-shadow:
        0 0 8px rgba(255, 77, 184, 0.4),
        0 0 16px rgba(217, 38, 255, 0.2),
        inset 0 0 6px rgba(255, 77, 184, 0.1) !important;
    animation: mzInputGlow 2s ease-in-out infinite alternate;
}

@keyframes mzInputGlow {
    0% { box-shadow: 0 0 8px rgba(255, 77, 184, 0.3), 0 0 16px rgba(217, 38, 255, 0.15); }
    100% { box-shadow: 0 0 12px rgba(255, 77, 184, 0.5), 0 0 24px rgba(217, 38, 255, 0.3); }
}

/* --- Header Glow Line Animation --- */
.mz-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mello-primary), var(--mello-secondary), var(--mello-primary), transparent);
    animation: mzHeaderLine 4s linear infinite;
    background-size: 200% 100%;
}

@keyframes mzHeaderLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Nav Link Hover Underline --- */
.mz-primary-nav .mz-nav-list > li > a {
    position: relative;
}

.mz-primary-nav .mz-nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mello-primary), var(--mello-secondary));
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.4);
}

.mz-primary-nav .mz-nav-list > li > a:hover::after,
.mz-primary-nav .mz-nav-list > li.current-menu-item > a::after {
    width: 80%;
}

/* --- Scroll Progress Bar --- */
.mz-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mz-pink), var(--mz-magenta), var(--mz-purple));
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(217, 38, 255, 0.5);
}

/* --- Page Section Fade-In --- */
.mz-rules-card,
.mz-event-card,
.mz-resource-box,
.mz-role-card,
.mz-masonry-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Selection Styling --- */
::selection {
    background: rgba(217, 38, 255, 0.35);
    color: #fff;
}

::-moz-selection {
    background: rgba(217, 38, 255, 0.35);
    color: #fff;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mz-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--mz-pink), var(--mz-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--mz-magenta), var(--mz-violet));
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--mz-purple) var(--mz-black);
}

/* --- Footer Glow Enhancement --- */
.mz-footer-glow {
    height: 2px;
    filter: blur(2px);
    animation: mzFooterGlow 3s ease-in-out infinite alternate;
}

@keyframes mzFooterGlow {
    0% { opacity: 0.6; filter: blur(1px); }
    100% { opacity: 1; filter: blur(3px); }
}

/* --- Logo Hover Effect --- */
.mz-logo-text:hover .mz-logo-main,
.mz-footer-logo-text:hover .mz-logo-main {
    animation: mzLogoShimmer 0.6s ease;
}

@keyframes mzLogoShimmer {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 77, 184, 0.5)); }
    100% { filter: brightness(1); }
}

/* --- Responsive overhaul for page templates --- */
@media (max-width: 768px) {
    .mz-community-wrap,
    .mz-events-wrap,
    .mz-showcase-wrap,
    .mz-resources-wrap,
    .mz-apply-wrap,
    .mz-appeal-wrap,
    .mz-contact-wrap,
    .mz-legal-wrap,
    .mz-rules-wrap {
        padding-inline: 1rem;
    }

    .mz-contact-grid {
        grid-template-columns: 1fr;
    }

    .mz-contact-info {
        padding-right: 0;
    }

    .mz-masonry-grid {
        column-count: 1;
    }
}
