/* ─── MiniZShop Announcement Bar — Frontend Styles ─────────────────── */

/* ─── Base Bar ──────────────────────────────────────────────────────── */

.mann-bar {
    display: flex;
    width: 100%;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--mann-fs, 15px);
    line-height: 1.4;
    opacity: 0;
    overflow: hidden;
    max-height: 0;
    transition: opacity .3s ease, max-height .3s ease, transform .3s ease;
}

.mann-bar.mann-visible {
    opacity: 1;
    max-height: 120px;
}

.mann-bar.mann-hiding {
    opacity: 0;
    max-height: 0;
    transition: opacity .2s ease, max-height .3s ease .1s;
}

/* Positions */
.mann-bar.mann-pos-top {
    position: relative;
}

.mann-bar.mann-pos-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}

/* Animations */
.mann-bar.mann-anim-slide-down {
    transform: translateY(-100%);
}
.mann-bar.mann-anim-slide-down.mann-visible {
    transform: translateY(0);
}

.mann-bar.mann-anim-fade-in {
    opacity: 0;
}
.mann-bar.mann-anim-fade-in.mann-visible {
    opacity: 1;
}

/* ─── Inner ─────────────────────────────────────────────────────────── */

.mann-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.mann-bar-icon {
    font-size: 1.15em;
    flex-shrink: 0;
}

.mann-bar-text {
    font-weight: 500;
}

.mann-bar-link {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: .9;
    transition: opacity .15s;
    white-space: nowrap;
}

.mann-bar-link:hover {
    opacity: 1;
}

.mann-bar-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s;
    padding: 0 6px;
    margin-left: 6px;
    flex-shrink: 0;
}

.mann-bar-close:hover {
    opacity: 1;
}

/* ─── Style: Classic Red (MiniZShop) ────────────────────────────────── */

.mann-style-classic-red {
    background-color: #c0392b;
    color: #fff;
}
.mann-style-classic-red .mann-bar-link { color: #fff; }
.mann-style-classic-red .mann-bar-close { color: #fff; }

/* ─── Style: Dark Slate ─────────────────────────────────────────────── */

.mann-style-dark-slate {
    background-color: #1e293b;
    color: #f1f5f9;
}
.mann-style-dark-slate .mann-bar-link { color: #f1f5f9; }
.mann-style-dark-slate .mann-bar-close { color: #f1f5f9; }

/* ─── Style: Ocean Blue ─────────────────────────────────────────────── */

.mann-style-ocean-blue {
    background-color: #1e40af;
    color: #dbeafe;
}
.mann-style-ocean-blue .mann-bar-link { color: #dbeafe; }
.mann-style-ocean-blue .mann-bar-close { color: #dbeafe; }

/* ─── Style: Emerald Green ──────────────────────────────────────────── */

.mann-style-emerald-green {
    background-color: #065f46;
    color: #d1fae5;
}
.mann-style-emerald-green .mann-bar-link { color: #d1fae5; }
.mann-style-emerald-green .mann-bar-close { color: #d1fae5; }

/* ─── Style: Sunset Orange ──────────────────────────────────────────── */

.mann-style-sunset-orange {
    background-color: #c2410c;
    color: #fff7ed;
}
.mann-style-sunset-orange .mann-bar-link { color: #fff7ed; }
.mann-style-sunset-orange .mann-bar-close { color: #fff7ed; }

/* ─── Style: Royal Purple ───────────────────────────────────────────── */

.mann-style-royal-purple {
    background-color: #581c87;
    color: #f3e8ff;
}
.mann-style-royal-purple .mann-bar-link { color: #f3e8ff; }
.mann-style-royal-purple .mann-bar-close { color: #f3e8ff; }

/* ─── Style: Midnight Gold ──────────────────────────────────────────── */

.mann-style-midnight-gold {
    background-color: #1a1a2e;
    color: #fbbf24;
}
.mann-style-midnight-gold .mann-bar-link { color: #fbbf24; }
.mann-style-midnight-gold .mann-bar-close { color: #fbbf24; }

/* ─── Style: Soft Pink ──────────────────────────────────────────────── */

.mann-style-soft-pink {
    background-color: #fce7f3;
    color: #831843;
}
.mann-style-soft-pink .mann-bar-link { color: #831843; }
.mann-style-soft-pink .mann-bar-close { color: #831843; }

/* ─── Style: Gradient Fire ──────────────────────────────────────────── */

.mann-style-gradient-fire {
    background: linear-gradient(90deg, #c0392b, #e67e22);
    color: #fff;
}
.mann-style-gradient-fire .mann-bar-link { color: #fff; }
.mann-style-gradient-fire .mann-bar-close { color: #fff; }

/* ─── Style: Gradient Ocean ─────────────────────────────────────────── */

.mann-style-gradient-ocean {
    background: linear-gradient(90deg, #1e40af, #06b6d4);
    color: #fff;
}
.mann-style-gradient-ocean .mann-bar-link { color: #fff; }
.mann-style-gradient-ocean .mann-bar-close { color: #fff; }

/* ─── Style: Custom ─────────────────────────────────────────────────── */

.mann-style-custom {
    background-color: var(--mann-bg, #c0392b);
    color: var(--mann-text, #fff);
}
.mann-style-custom .mann-bar-link { color: var(--mann-text, #fff); }
.mann-style-custom .mann-bar-close { color: var(--mann-text, #fff); }

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .mann-bar-inner {
        padding: 10px 14px;
        gap: 8px;
        font-size: 13px;
    }

    .mann-bar-link {
        font-size: 12px;
    }
}
