/* ==========================================================
   Boldmen Ticker Widget — v2.0_FULLSCREEN_READY
   Premium ticker with glassmorphism + fullscreen awareness
   ========================================================== */

/* Google Font for ticker */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* Container - Fixed to bottom of screen */
#bmt-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(90deg, #0a0a0f 0%, #111118 30%, #0d0d14 70%, #0a0a0f 100%);
    border-top: 1px solid rgba(255, 160, 40, 0.4);
    z-index: 100000;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace, sans-serif;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(255, 160, 40, 0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle shimmer overlay */
#bmt-ticker-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 160, 40, 0.03), transparent);
    animation: ticker-shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ticker-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 200%; }
}

/* Hidden state */
#bmt-ticker-container.bmt-ticker-hidden {
    transform: translateY(100%);
}

/* Show ticker after data loads */
#bmt-ticker-container.bmt-ticker-visible {
    transform: translateY(0);
}

/* Close button */
.bmt-ticker-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    background: rgba(255, 160, 40, 0.12);
    backdrop-filter: blur(4px);
    color: #FFA028;
    border: 1px solid rgba(255, 160, 40, 0.3);
    border-radius: 4px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    z-index: 100001;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmt-ticker-close:hover {
    background: #FFA028;
    color: #000;
    box-shadow: 0 0 12px rgba(255, 160, 40, 0.4);
}

/* Reopen button - non-intrusive pill */
.bmt-ticker-reopen {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 160, 40, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFA028;
    border: 1px solid rgba(255, 160, 40, 0.35);
    border-radius: 25px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    z-index: 100000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 160, 40, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', 'JetBrains Mono', sans-serif;
    letter-spacing: 0.02em;
}

.bmt-ticker-reopen:hover {
    background: rgba(255, 160, 40, 0.85);
    color: #000;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 160, 40, 0.35);
    border-color: rgba(255, 160, 40, 0.6);
}

/* Ticker track */
.bmt-ticker-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 50px 0 20px;
    position: relative;
    z-index: 1;
}

/* Ticker content - scrolling */
.bmt-ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}

/* Individual ticker items */
.bmt-ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 45px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    position: relative;
    padding-left: 12px;
}

/* Separator dot between items */
.bmt-ticker-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 160, 40, 0.4);
    font-size: 8px;
}

.bmt-ticker-item:first-child::before {
    display: none;
}

/* Vendor name */
.ticker-vendor {
    color: #FFA028;
    font-weight: 700;
    margin-right: 8px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Estate name */
.ticker-estate {
    color: rgba(170, 170, 170, 0.9);
    margin-right: 8px;
    font-weight: 400;
}

/* Price */
.ticker-price {
    color: #FFF;
    font-weight: 700;
    margin-right: 6px;
    font-size: 13px;
    letter-spacing: -0.01em;
}

/* Change % */
.ticker-change {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Up/Down colors */
.ticker-up {
    color: #00E676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.ticker-down {
    color: #FF5252;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.15);
}

/* Custom announcement styling */
.ticker-custom {
    color: #FFA028 !important;
    background: rgba(255, 160, 40, 0.08) !important;
    border: 1px solid rgba(255, 160, 40, 0.2) !important;
    padding: 2px 10px !important;
    border-radius: 3px;
}

/* Endless scroll animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
#bmt-ticker-container:hover .bmt-ticker-content {
    animation-play-state: paused;
}

/* Mobile optimizations */
@media screen and (max-width: 768px) {
    #bmt-ticker-container {
        height: 40px;
    }

    .bmt-ticker-item {
        font-size: 11px;
        margin-right: 30px;
    }

    .ticker-price {
        font-size: 12px;
    }

    .ticker-change {
        font-size: 10px;
        padding: 1px 5px;
    }

    .bmt-ticker-close {
        width: 22px;
        height: 22px;
        font-size: 10px;
        right: 6px;
    }

    .bmt-ticker-reopen {
        font-size: 11px;
        padding: 7px 14px;
        bottom: 8px;
    }
}

@media screen and (max-width: 480px) {
    #bmt-ticker-container {
        height: 35px;
    }

    .bmt-ticker-item {
        font-size: 10px;
        margin-right: 22px;
    }

    .ticker-price {
        font-size: 11px;
    }

    .ticker-estate {
        display: none;
    }

    .bmt-ticker-reopen {
        font-size: 10px;
        padding: 5px 10px;
        bottom: 5px;
    }
}
