/* Premium Transparent Frosted Glass Theme for Mengci Faka */

:root {
    --glass-bg: rgba(255, 255, 255, 0.15); /* Very transparent bright glass */
    --glass-dark-bg: rgba(0, 0, 0, 0.25); /* Subtle dark glass for header */
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(25px) saturate(180%);
}

/* Let the anime background shine through completely beautifully! */
body {
    background-color: transparent !important;
    background-blend-mode: normal !important;
    color: #ffffff !important;
}

/* Page Header & Top Nav - Frameless Glass */
#page-header, .bg-nav-primary-darker, .bg-black-10 {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none !important;
    box-shadow: none !important;
}

/* Footer can keep a slight glass if needed, but clean it up */
.bg-body-extra-light {
    background: transparent !important;
    border: none !important;
}

/* Cards & Blocks - High Transparency Frosted Glass */
.block, .item-block, .block-rounded, .dropdown-menu, .block-notice {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important; /* FLOW style: larger fluid radius */
    color: #ffffff !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease !important; /* Spring ease */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Beautiful hover floating effect without being overly aggressive */
.item-block:hover, .block-notice:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Title and Logo Tracking floating */
.content-header .font-w600, .h3.font-w600, .navbar-brand {
    transition: letter-spacing 0.5s cubic-bezier(0.25, 1, 0.3, 1), text-shadow 0.5s ease;
}
.content-header .font-w600:hover, .h3.font-w600:hover, .navbar-brand:hover {
    letter-spacing: 2px !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(154, 214, 255, 0.6);
}

/* Force high transparency overlay on content areas so background shows through */
.block-content, .bg-body-light, .bg-body, .btn-alt-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}
.content-notice {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Text & Headings to remain readable */
h1, h2, h3, h4, h5, h6, .text-dual, .nav-main-link-name, .text-muted, .text-gray-dark {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* Hard shadow for contrast against bright anime BG */
}

.item-text, .item-price, .support-wholesale {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Buttons - Flow style liquid buttons */
.btn {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
    border-radius: 999px !important; /* Pill shape for buttons */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

/* Add a subtle inner shine */
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-3px) scale(1.05); /* Slight pop */
    color: #ffffff !important;
}

.btn:hover::before {
    left: 150%;
}

/* Navbar active item glow & Flow Dynamics */
.nav-main-link {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* Bouncy magnetic ease */
    border-radius: 12px;
    padding: 8px 16px;
}
.nav-main-link.active, .nav-main-link:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-4px) scale(1.08); /* Upper floating effect */
    text-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 20px #9ad6ff;
}

/* Inputs / Search */
.form-control, .form-control-alt {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 999px !important; /* Flow style input */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.form-control:focus {
    box-shadow: 0 0 15px rgba(255,255,255,0.4) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25) !important;
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}
.input-group-text {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
}

/* Custom Scrollbar for elegant look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.7);
}

/* Badges / Stock Indicators */
.badge.bg-primary, .item-stock, .item-sold {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 2px 6px;
}

/* Notice Banner */
.block-notice {
    border-left: 4px solid rgba(255, 255, 255, 0.7) !important;
    border-right: 4px solid rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Image Thumbnails inside cards */
.item-card-icon img {
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.4s ease;
}
.item-block:hover .item-card-icon img {
    transform: scale(1.08) rotate(3deg);
}

/* Fix product link colors inside notice */
.notice-title {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 999px !important;
}

/* === Video Background === */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}
