/* FONTES LOCAIS CUSTOMIZADAS */

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('./fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MPLUSRounded1c';
    src: url('./fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('./fonts/Quicksand/Quicksand-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('./fonts/Quicksand/Quicksand-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* APLICAÇÃO DAS FONTES */
*:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not([class*="fa-"]):not(.bi):not([class*="bi-"]) {
    font-family: "Quicksand", system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .font-title {
    font-family: "MPLUSRounded1c", "M PLUS Rounded 1c", system-ui, sans-serif !important;
    font-weight: 700 !important;
}

body, p, div, span, a, li, td, th, label, input, textarea, select {
    font-family: "Quicksand", system-ui, sans-serif !important;
}

/* PROTEGER ÍCONES FONTAWESOME */
.fa, .fas, .far, .fal, .fab, .fad, [class*="fa-"] {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome" !important;
}

.bi, [class*="bi-"] {
    font-family: "bootstrap-icons" !important;
}

/* BANNER FINO COM TEXTO PASSANDO */
.scrolling-banner {
    background: linear-gradient(135deg, #841536, #b54b76, #e580b3);
    height: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(132, 21, 54, 0.3);
}

.scrolling-banner-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: white;
}

.scrolling-banner-link:hover {
    text-decoration: none;
    color: white;
}

.scrolling-text {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll-center-infinite 30s linear infinite;
    font-size: 13px;
    font-weight: 700;
    font-family: "MPLUSRounded1c", "M PLUS Rounded 1c", sans-serif !important;
}

.text-item {
    margin-right: 25px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    text-transform: uppercase;
}

.text-item.highlight {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 1.1em;
    letter-spacing: 0.5px;
    color: #fff;
}

.separator {
    margin-right: 25px;
    opacity: 0.8;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ANIMAÇÃO DE SCROLL INFINITO COMEÇANDO DO CENTRO */
@keyframes scroll-center-infinite {
    0% {
        transform: translateX(50vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* EFEITO DE BRILHO SUTIL */
.scrolling-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100px;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .scrolling-banner {
        height: 30px;
    }
    
    .scrolling-text {
        font-size: 11px;
        animation: scroll-center-infinite-mobile 18s linear infinite;
        font-weight: 700;
    }
    
    .text-item {
        margin-right: 20px;
        font-weight: 700;
    }
    
    .text-item.highlight {
        font-size: 1.05em;
        font-weight: 800;
    }
    
    .separator {
        margin-right: 20px;
        font-size: 16px;
    }
}

/* ANIMAÇÃO MOBILE COMEÇANDO DO CENTRO */
@keyframes scroll-center-infinite-mobile {
    0% {
        transform: translateX(50vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* FAIXA SEJA FRANQUEADO - LARGURA COMPLETA */
.franchise-ribbon-section {
    position: relative;
}

.franchise-ribbon-link {
    pointer-events: all;
    text-decoration: none;
    color: white;
    display: block;
}

.franchise-ribbon-link:hover {
    text-decoration: none;
    color: white;
}

.franchise-ribbon {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #841536, #b54b76, #e580b3, #841536);
    background-size: 400% 400%;
    animation: gradient-flow 6s ease infinite;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(132, 21, 54, 0.4),
        0 2px 8px rgba(132, 21, 54, 0.2);
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0 0 15px 15px;
}

.franchise-ribbon:hover {
    transform: scale(1.02);
    box-shadow: 
        0 6px 20px rgba(132, 21, 54, 0.5),
        0 3px 10px rgba(132, 21, 54, 0.3);
}

.franchise-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: ribbon-shine 3s infinite;
}

.franchise-ribbon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.ribbon-icon {
    font-size: 18px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.ribbon-text {
    font-family: "MPLUSRounded1c", "M PLUS Rounded 1c", sans-serif !important;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin: 0 8px;
}

.ribbon-separator {
    margin: 0 8px;
    opacity: 0.8;
    font-size: 16px;
    font-weight: bold;
}

.ribbon-cta {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin: 0 8px;
}

/* ANIMAÇÕES */
@keyframes gradient-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes ribbon-shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* RESPONSIVO MOBILE */
@media (max-width: 767px) {
    .franchise-ribbon {
        height: 40px;
    }
    
    .franchise-ribbon:hover {
        transform: scale(1.01);
    }
    
    .ribbon-text {
        font-size: 12px;
        margin: 0;
    }
}