/**
 * ============================================================
 * BITFORCE BRAND STRIP STYLES
 * Premium Brand Marquee
 * ============================================================
 *
 * @package     Bitforce_Theme
 * @subpackage  Styles
 * @since       3.0.0
 * @version     3.1.0
 * @author      Bitforce Team
 *
 * ============================================================
 *
 * TABLE OF CONTENTS
 * 1.  Brand Strip Container
 * 2.  Brand Title
 * 3.  Brand Slider
 * 4.  Brand Track
 * 5.  Brand Items
 * 6.  Hover Effects
 * 7.  Animation
 * 8.  Reduced Motion
 * 9.  Responsive Breakpoints
 *
 * ============================================================
 */

/* ============================================================
   1. BRAND STRIP CONTAINER
   ============================================================ */

.brand-strip {
    padding: 40px 20px;
    background: transparent;
}

/* ============================================================
   2. BRAND TITLE
   ============================================================ */

.brand-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* ============================================================
   3. BRAND SLIDER - Marquee Container
   ============================================================ */

.brand-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

/* ============================================================
   4. BRAND TRACK - Animated Marquee
   ============================================================ */

.brand-track {
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    animation: brandSlide 38s linear infinite;
}

.brand-slider:hover .brand-track {
    animation-play-state: paused;
}

/* ============================================================
   5. BRAND ITEMS
   ============================================================ */

.brand-track span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.07),
        rgba(255, 255, 255, 0.03)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* ✅ Safari compatibility */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
    transition: 0.35s ease;
    cursor: default;
}

.brand-track span:hover {
    transform: translateY(-6px);
    border-color: #1EA2FF;
    box-shadow: 0 18px 45px rgba(30, 162, 255, 0.22);
    background: linear-gradient(
        180deg,
        rgba(30, 162, 255, 0.18),
        rgba(30, 162, 255, 0.06)
    );
    color: #ffffff;
}

/* ============================================================
   6. ANIMATION - Infinite Scroll
   ============================================================ */

@keyframes brandSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
   7. REDUCED MOTION - Accessibility
   ============================================================ */

/**
 * Respects user's system preferences for reduced motion.
 * Disables all animations and transitions for users who
 * experience vestibular disorders or motion sensitivity.
 */
@media (prefers-reduced-motion: reduce) {
    
    /* ✅ Disable marquee animation */
    .brand-track {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-fill-mode: forwards !important;
    }

    /* ✅ Prevent animation from resuming on hover */
    .brand-slider:hover .brand-track {
        animation-play-state: running !important;
    }

    /* ✅ Disable hover animations */
    .brand-track span {
        transition-duration: 0.01ms !important;
    }

    .brand-track span:hover {
        transform: none !important;
    }
}

/* ============================================================
   8. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablets */
@media (max-width: 768px) {
    .brand-strip {
        padding: 30px 15px;
    }

    .brand-track {
        gap: 16px;
    }

    .brand-track span {
        padding: 10px 18px;
        font-size: 13px;
    }

    .brand-title {
        font-size: 12px;
        margin-bottom: 25px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .brand-strip {
        padding: 20px 10px;
    }

    .brand-track {
        gap: 12px;
    }

    .brand-track span {
        padding: 8px 14px;
        font-size: 11px;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 11px;
        margin-bottom: 20px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .brand-track {
        gap: 10px;
    }

    .brand-track span {
        padding: 6px 12px;
        font-size: 10px;
    }
}