@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --primary-color: #7c3aed; /* Violet 600 */
    --secondary-color: #db2777; /* Pink 600 */
}

body { font-family: 'Cairo', sans-serif; scroll-behavior: smooth; }
html { scroll-behavior: smooth; }

/* --- 🌊 ANIMATED BACKGROUND (Happy Motion) --- */
@keyframes floatBubble {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.bg-blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatBubble 10s infinite ease-in-out;
}

/* Individual Blob Configurations */
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #e9d5ff; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: #fbcfe8; animation-delay: 2s; }
.blob-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: #bfdbfe; animation-delay: 4s; }

/* --- 賢ｸGLASSMORPHISM UTILITIES --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px; /* Pill shape */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

/* Gold Glass Card for Gift */
.gold-glass-card {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 24px;
    padding: 2px; /* For border effect */
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    transition: transform 0.3s ease;
}
.gold-glass-card:hover { transform: translateY(-3px); }

/* --- 🧊 3D TILT EFFECT --- */
.hover-tilt {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* --- 混 BUTTONS & UI ELEMENTS --- */
.btn-candy {
    background-size: 200% auto;
    background-image: linear-gradient(to right, #7c3aed 0%, #db2777 51%, #7c3aed 100%);
    border-radius: 9999px;
    color: white;
    font-weight: 700;
    transition: 0.5s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    border: none;
}
.btn-candy:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-candy-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    background-size: 200% auto;
    background-image: linear-gradient(to right, #7c3aed 0%, #db2777 51%, #7c3aed 100%);
    border-radius: 9999px;
    color: white;
    font-weight: 700;
    transition: 0.5s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    border: none;
}
.btn-candy-sm:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.nav-button {
    color: #4b5563;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.nav-button:hover, .nav-button.active {
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.05);
}

/* Tabs & Pills */
.tab-pill {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    color: #6b7280;
    transition: all 0.3s ease;
}
.tab-pill.active {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.filter-pill:hover { border-color: #d8b4fe; }
.filter-pill.active {
    background: #f3e8ff;
    color: #7c3aed;
    border-color: #d8b4fe;
}

/* --- 些 BENTO SUB-NAV --- */
.sub-nav-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.sub-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.sub-nav-card.active {
    border-color: #d8b4fe;
    background: #fdfaff;
}
.sub-nav-card .icon-box {
    width: 3rem; height: 3rem;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}
.sub-nav-card.active .icon-box { transform: scale(1.1) rotate(5deg); }
.sub-nav-card .title { font-weight: 700; color: #374151; font-size: 0.9rem; }

/* --- 汐 ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.animate-bounce-slow { animation: bounceSlow 3s infinite ease-in-out; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* --- 統 SECTIONS & UTILS --- */
.page-section { display: none; padding-top: 2rem; padding-bottom: 5rem; animation: fadeInUp 0.5s ease-out; }
.page-section.active { display: block; }
.tab-content, .sub-tab-content { display: none; }
.tab-content.active, .sub-tab-content.active { display: block; animation: fadeInUp 0.4s ease-out; }

.section-title { font-size: 2.25rem; font-weight: 900; color: #1f2937; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.125rem; color: #6b7280; }

/* Accordion */
.accordion-content { overflow: hidden; transition: max-height 0.3s ease; max-height: 0; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }