/* ============================================
   Enchantrix Discord Chyron – Styles
   ============================================ */

.enchantrix-chyron {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 33.333%;
    height: 48px;
    background-color: #000000;
    display: flex;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.6);
    border-radius: 10px 10px 0 0;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* Hidden state */
.enchantrix-chyron--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(100%);
    pointer-events: none;
}

/* ---- Scrolling track ---- */
.enchantrix-chyron__track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 85%, transparent 100%);
}

.enchantrix-chyron__link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    animation: enchantrix-scroll 14s linear infinite;
    will-change: transform;
    height: 100%;
}

.enchantrix-chyron__link:hover .enchantrix-chyron__text,
.enchantrix-chyron__link:focus .enchantrix-chyron__text {
    color: #5bbfff;
    text-decoration: underline;
}

.enchantrix-chyron__text {
    color: #1e90ff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    padding: 0;
}

.enchantrix-chyron__spacer {
    display: inline-block;
    width: 120px;
}

/* ---- Close button ---- */
.enchantrix-chyron__close {
    flex-shrink: 0;
    background-color: #111111;
    color: #cccccc;
    border: none;
    border-left: 1px solid #333333;
    padding: 0 18px;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    letter-spacing: 0.3px;
    border-radius: 0 10px 0 0;
}

.enchantrix-chyron__close:hover,
.enchantrix-chyron__close:focus {
    background-color: #222222;
    color: #ffffff;
    outline: none;
}

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

/* ---- Tablet ---- */
@media (max-width: 1024px) {
    .enchantrix-chyron {
        width: 50%;
    }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .enchantrix-chyron {
        width: 85%;
        height: 44px;
    }

    .enchantrix-chyron__text {
        font-size: 15px;
    }

    .enchantrix-chyron__close {
        padding: 0 14px;
        font-size: 13px;
    }

    .enchantrix-chyron__spacer {
        width: 80px;
    }
}
