/**
 * Banner Simple - Frontend Styles
 *
 * Design Direction: Editorial Luxury
 * Sophisticated urgency - commands attention through refinement,
 * not aggression. Think high-end retail announcements.
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --banner-simple-height: 72px;
    --banner-simple-height-mobile: 64px;
    --banner-simple-z-index: 999999;
}

/* ============================================
   Body Padding - Push content down/up
   ============================================ */
body.has-banner-top {
    padding-top: var(--banner-simple-height) !important;
    margin-top: 0 !important;
}

body.has-banner-top.admin-bar {
    padding-top: calc(var(--banner-simple-height) + 32px) !important;
}

body.has-banner-bottom {
    padding-bottom: var(--banner-simple-height) !important;
    margin-bottom: 0 !important;
}

@media screen and (max-width: 782px) {
    body.has-banner-top.admin-bar {
        padding-top: calc(var(--banner-simple-height) + 46px) !important;
    }
}

@media screen and (max-width: 768px) {
    body.has-banner-top {
        padding-top: var(--banner-simple-height-mobile) !important;
    }
    body.has-banner-top.admin-bar {
        padding-top: calc(var(--banner-simple-height-mobile) + 32px) !important;
    }
    body.has-banner-bottom {
        padding-bottom: var(--banner-simple-height-mobile) !important;
    }
}

@media screen and (max-width: 782px) and (max-width: 768px) {
    body.has-banner-top.admin-bar {
        padding-top: calc(var(--banner-simple-height-mobile) + 46px) !important;
    }
}

/* ============================================
   Base Banner Styles
   ============================================ */
#banner-simple.banner-simple {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: var(--banner-simple-z-index) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;

    /* Base colors from CSS variables */
    background-color: var(--banner-bg, #1a1a2e) !important;
    color: var(--banner-text, #edf2f4) !important;

    /* Typography - Uses CSS variables for customization */
    font-family: var(--banner-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif) !important;
    font-size: var(--banner-size, 18px) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;

    /* Luxurious gradient overlay */
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 20%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.03) 80%,
            rgba(255, 255, 255, 0) 100%
        ) !important;

    /* Refined shadow - not heavy, but present */
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 4px 24px rgba(0, 0, 0, 0.08) !important;

    /* Subtle inner glow at edges */
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;

    /* Animation */
    opacity: 0;
    animation: bannerSimpleReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.15s;
}

/* ============================================
   Position Variants
   ============================================ */
#banner-simple.banner-top {
    top: 0 !important;
    bottom: auto !important;
}

#banner-simple.banner-bottom {
    bottom: 0 !important;
    top: auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow:
        0 -2px 8px rgba(0, 0, 0, 0.12),
        0 -4px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Admin bar compensation */
#banner-simple.banner-top.banner-with-admin-bar {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    #banner-simple.banner-top.banner-with-admin-bar {
        top: 46px !important;
    }
}

/* ============================================
   Reveal Animation - Elegant entrance
   ============================================ */
@keyframes bannerSimpleReveal {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#banner-simple.banner-bottom {
    animation-name: bannerSimpleRevealBottom;
}

@keyframes bannerSimpleRevealBottom {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Container & Content
   ============================================ */
#banner-simple .banner-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: var(--banner-simple-height) !important;
    box-sizing: border-box !important;
    position: relative !important;
}

#banner-simple .banner-content {
    text-align: center !important;
    margin: 0 !important;
    padding: 16px 0 !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Decorative elements - subtle sparkle effect */
#banner-simple .banner-container::before,
#banner-simple .banner-container::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 6px !important;
    background: currentColor !important;
    opacity: 0.4 !important;
    border-radius: 50% !important;
}

#banner-simple .banner-container::before {
    left: 20px !important;
}

#banner-simple .banner-container::after {
    right: 20px !important;
}

/* ============================================
   Content Typography & Links
   ============================================ */
#banner-simple .banner-content strong,
#banner-simple .banner-content b {
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
}

#banner-simple .banner-content em,
#banner-simple .banner-content i {
    font-style: italic !important;
}

#banner-simple .banner-content a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: 1px solid currentColor !important;
    padding-bottom: 1px !important;
    transition: opacity 0.25s ease, border-bottom-width 0.25s ease !important;
}

#banner-simple .banner-content a:hover,
#banner-simple .banner-content a:focus {
    opacity: 0.85 !important;
    border-bottom-width: 2px !important;
}

/* ============================================
   Shimmer Effect - Subtle attention grabber
   ============================================ */
#banner-simple.banner-simple::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
    ) !important;
    animation: bannerShimmer 4s ease-in-out infinite !important;
    animation-delay: 1s !important;
    pointer-events: none !important;
}

@keyframes bannerShimmer {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

/* ============================================
   Preview Mode Styles
   ============================================ */
#banner-simple.banner-preview {
    border-bottom: 2px dashed rgba(255, 200, 87, 0.6) !important;
}

#banner-simple.banner-preview.banner-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-top: 2px dashed rgba(255, 200, 87, 0.6) !important;
}

#banner-simple .banner-preview-label {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 5px 14px !important;
    text-align: center !important;
    margin: 0 !important;
    text-shadow: none !important;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media screen and (max-width: 768px) {
    #banner-simple.banner-simple {
        font-size: var(--banner-size-mobile, 16px) !important;
    }

    #banner-simple .banner-container {
        padding: 0 24px !important;
        min-height: var(--banner-simple-height-mobile) !important;
    }

    #banner-simple .banner-content {
        padding: 14px 0 !important;
    }

    #banner-simple .banner-container::before,
    #banner-simple .banner-container::after {
        width: 4px !important;
        height: 4px !important;
    }

    #banner-simple .banner-container::before {
        left: 12px !important;
    }

    #banner-simple .banner-container::after {
        right: 12px !important;
    }

    #banner-simple .banner-preview-label {
        font-size: 9px !important;
        padding: 4px 10px !important;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media screen and (max-width: 480px) {
    #banner-simple.banner-simple {
        font-size: var(--banner-size-mobile, 15px) !important;
        line-height: 1.4 !important;
    }

    #banner-simple .banner-container {
        padding: 0 16px !important;
    }

    #banner-simple .banner-content {
        padding: 12px 20px !important;
    }

    /* Hide decorative dots on very small screens */
    #banner-simple .banner-container::before,
    #banner-simple .banner-container::after {
        display: none !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #banner-simple.banner-simple {
        display: none !important;
    }
    body.has-banner-top,
    body.has-banner-bottom {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    #banner-simple.banner-simple {
        animation: none !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    #banner-simple.banner-simple::before {
        animation: none !important;
    }
}
