@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.flashy-header-root {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    position: relative;
    z-index: 999;
    width: 100%;
    margin: 16px 0;
}

.flashy-header-wrapper {
    position: relative;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

/* OVAL CONTAINER - STRICTLY ENCLOSES ALL CONTENT INSIDE THE GLASS PILL */
.flashy-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(99, 102, 241, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.flashy-header-floating .flashy-header-inner {
    border-radius: 999px;
}

.flashy-header-full {
    margin: 0;
}
.flashy-header-full .flashy-header-inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Ambient Background Light Blob */
.flashy-header-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--flashy-primary, #6366f1) 0%, transparent 60%);
    opacity: 0.25;
    filter: blur(40px);
    pointer-events: none;
    animation: flashyPulse 6s ease-in-out infinite alternate;
}

.flashy-header-inner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--flashy-secondary, #ec4899) 0%, transparent 60%);
    opacity: 0.2;
    filter: blur(40px);
    pointer-events: none;
    animation: flashyPulse 8s ease-in-out infinite alternate;
}

@keyframes flashyPulse {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.15) translate(20px, -10px); opacity: 0.35; }
}

/* BRAND LOGO & CREATIVE ICON */
.flashy-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    z-index: 2;
    flex-shrink: 0;
}

.flashy-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--flashy-primary, #6366f1), var(--flashy-secondary, #ec4899));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.flashy-brand:hover .flashy-brand-icon {
    transform: rotate(12deg) scale(1.08);
}

.flashy-brand-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.flashy-brand-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* CREATIVE HUB BADGE */
.flashy-brand-badge {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flashy-primary, #6366f1), var(--flashy-secondary, #ec4899));
    color: #ffffff;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--flashy-glow, #8b5cf6);
    animation: badgeGlow 2s infinite alternate;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 0 6px var(--flashy-primary, #6366f1); }
    100% { box-shadow: 0 0 14px var(--flashy-secondary, #ec4899); }
}

/* NAV CONTAINER WITH PERFECTLY CENTERED SLIDING INDICATOR */
.flashy-nav-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
    flex-shrink: 1;
}

.flashy-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-sizing: border-box;
    line-height: 1;
}

/* SLIDING CIRCLE / SURROUNDING INDICATOR */
.flashy-nav-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flashy-primary, #6366f1), var(--flashy-secondary, #ec4899));
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.5),
        0 0 18px var(--flashy-glow, #8b5cf6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.32s cubic-bezier(0.16, 1, 0.3, 1), height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.flashy-nav-indicator.is-visible {
    opacity: 1;
}

.flashy-nav-item {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashy-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.25s ease;
    z-index: 2;
    white-space: nowrap;
    box-sizing: border-box;
    text-align: center;
}

.flashy-nav-link:hover,
.flashy-nav-link:focus,
.flashy-nav-item.is-active .flashy-nav-link {
    color: #ffffff;
}

.flashy-item-badge {
    font-size: 7.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    backdrop-filter: blur(4px);
}

/* CTA BUTTON */
.flashy-cta-wrap {
    z-index: 2;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.flashy-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--flashy-primary, #6366f1) 0%, var(--flashy-glow, #8b5cf6) 50%, var(--flashy-secondary, #ec4899) 100%);
    background-size: 200% 200%;
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(236, 72, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}

.flashy-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s ease;
}

.flashy-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background-position: 100% 0;
    box-shadow: 
        0 12px 35px rgba(99, 102, 241, 0.7),
        0 0 30px rgba(236, 72, 153, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.flashy-cta-btn:hover::before {
    left: 100%;
}

/* SUB-STRIP CREATIVE CATEGORY BAR */
.flashy-sub-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 22px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.flashy-strip-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
}

.flashy-strip-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flashy-strip-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.flashy-strip-pill:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* MOBILE HAMBURGER TOGGLE */
.flashy-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    cursor: pointer;
    z-index: 10;
}

.flashy-mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.flashy-mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.flashy-mobile-menu.is-open {
    display: flex;
}

@media (max-width: 1080px) {
    .flashy-nav-container,
    .flashy-cta-wrap,
    .flashy-sub-strip {
        display: none;
    }
    .flashy-mobile-toggle {
        display: flex;
    }
}
