/* LevelUp Kids Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── DESIGN SYSTEM: Font ── */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── DESIGN SYSTEM: Colors ── */
:root {
    --primary: #ee9d2b;
    --primary-dark: #d48215;
    --background-light: #f8f9fa;
    --background-dark: #1a140c;
    --card-bg-light: #ffffff;
    --card-bg-dark: #1a140c;
    --card-bg-dark-alt: #231a10;
    --text-main: #181511;
    --text-muted: #897961;
    --success: #4CAF50;
}

/* ── DESIGN SYSTEM: Unified Dark Mode Background ── */
.dark body,
body.dark,
[class*="dark:bg-background-dark"] {
    background-color: var(--background-dark) !important;
}

/* ── DESIGN SYSTEM: Page Title (H1) ── */
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    /* 24px */
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.25rem;
        /* 36px */
    }
}

/* ── DESIGN SYSTEM: Section Title (H2) ── */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    /* 12px */
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 0.875rem;
        /* 14px */
    }
}

/* ── DESIGN SYSTEM: Section Label (Badge) ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    /* 10px */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: rgba(238, 157, 43, 0.1);
    color: var(--primary);
    border: 1px solid rgba(238, 157, 43, 0.2);
}

.dark .section-label {
    background: rgba(238, 157, 43, 0.1);
    color: #fbbf24;
    border-color: rgba(238, 157, 43, 0.15);
}

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Base animations */
@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

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

/* Gamified Elements */
.gamified-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gamified-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(238, 157, 43, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-pressable {
    transition: all 0.15s ease;
    box-shadow: 0 4px 0 0 var(--primary-dark);
}

.btn-pressable:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 0 var(--primary-dark);
}

.dark {
    color-scheme: dark;
}

/* Pre-defined animations for WOW factor */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Premium Visual Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark .glass-card {
    background: rgba(30, 26, 19, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.glow-primary {
    filter: drop-shadow(0 0 15px rgba(238, 157, 43, 0.4));
}

.glow-rose {
    filter: drop-shadow(0 0 15px rgba(244, 63, 94, 0.4));
}

.glow-blue {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

@keyframes aura-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(238, 157, 43, 0.4), 0 0 40px rgba(238, 157, 43, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(238, 157, 43, 0.6), 0 0 80px rgba(238, 157, 43, 0.3);
    }
}

@keyframes float-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shine-sweep {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

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

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

.animate-shine-sweep {
    animation: shine-sweep 2s infinite linear;
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(238, 157, 43, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1a140c;
}

::-webkit-scrollbar-thumb {
    background: #ee9d2b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d48215;
}

/* Hide scrollbar utility */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Safe area padding for notch phones */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Home Style Card Components */
.cute-card {
    background-color: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 2rem;
    padding: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .cute-card {
        border-radius: 3.5rem;
        padding: 2rem;
    }
}

.dark .cute-card {
    background-color: rgba(26, 20, 12, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.cute-card:hover {
    transform: translateY(-0.75rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 240, 240, 1) 100%);
}

.dark .cute-card:hover {
    background: linear-gradient(135deg, rgba(44, 34, 21, 0.9) 0%, rgba(26, 20, 12, 0.9) 100%);
}

.icon-bloom {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.5s;
    position: relative;
    z-index: 10;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .icon-bloom {
        width: 6rem;
        height: 6rem;
        border: 4px solid rgba(255, 255, 255, 0.4);
    }
}

.group:hover .icon-bloom {
    transform: scale(1.1);
}

.btn-glass {
    margin-top: 1rem;
    height: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn-glass {
        margin-top: 2.5rem;
        height: 3rem;
        padding-left: 2rem;
        padding-right: 2rem;
        font-size: 11px;
    }
}

.btn-glass:active {
    transform: scale(0.95);
}

.reward-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.3rem;
    border-radius: 0.6rem;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .reward-tag {
        padding: 0.15rem 0.4rem;
    }
}

.dark .reward-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

.tag-gold {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.tag-xp {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.tag-sticker {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.tag-water {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.tag-personality {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
}

.tag-bond {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Premium Glass Effects */
.glass-premium {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.dark .glass-premium {
    background: rgba(26, 20, 12, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

    100% {
        transform: translateX(100%);
    }
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

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

/* Roadmap Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(238, 157, 43, 0.2);
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(238, 157, 43, 0.4);
}

/* Hide scrollbar on desktop */
@media (min-width: 768px) {
    .custom-scrollbar {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .custom-scrollbar::-webkit-scrollbar {
        display: none;
    }
}

/* Tooltip persistence */
.group\/m:hover .opacity-0 {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(-5px) scale(1) !important;
}

.text-gold-gradient {
    background: linear-gradient(to bottom,
            #BF953F 0%,
            #FCF6BA 22%,
            #B38728 50%,
            #FBF5B7 78%,
            #AA771C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(238, 157, 43, 0.4));
    font-weight: 900;
}

/* Custom Thin Scrollbar for Carousel */
.custom-thin-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.custom-thin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-thin-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(238, 157, 43, 0.3);
    border-radius: 10px;
}

@media (min-width: 768px) {
    .custom-thin-scrollbar {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .custom-thin-scrollbar::-webkit-scrollbar {
        display: none;
    }
}

/* Item Magic Effects */
@keyframes item-float-fancy {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes glow-pulse-fancy {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1) blur(20px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.3) blur(30px);
    }
}

.animate-item-fancy {
    animation: item-float-fancy 6s infinite ease-in-out;
}

.animate-glow-fancy {
    animation: glow-pulse-fancy 4s infinite ease-in-out;
}

.magic-item-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* CURRENT USER HIGHLIGHT ANIMATIONS */
@keyframes subtle-pulse {

    0%,
    100% {
        border-color: rgba(238, 157, 43, 0.4);
        box-shadow: 0 0 20px rgba(238, 157, 43, 0.2);
    }

    50% {
        border-color: rgba(238, 157, 43, 0.8);
        box-shadow: 0 0 30px rgba(238, 157, 43, 0.4);
    }
}

.animate-subtle-pulse {
    animation: subtle-pulse 2s infinite ease-in-out;
}

@keyframes bounce-subtle-mini {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

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