/*
Theme Name: CoverNews TDR
Theme URI: https://trilhosdorio.org
Description: Tema-filho do CoverNews para o projeto Trilhos do Rio
Author: Daddo Moreira
Author URI: https://trilhosdorio.org
Template: covernews
Version: 1.0.0
Text Domain: covernews-tdr
*/


/* =====================================================
   BARRA HORIZONTAL DE ATALHOS – Trilhos do Rio
   ===================================================== */

.atalhos-wrapper {
    width: 100%;
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #e6e6e6;
}

.atalhos-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 0 25px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.atalhos-container::-webkit-scrollbar {
    display: none;
}

.atalho-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}


/* =========================
   IMAGEM DOS ATALHOS
   ========================= */

.atalhos-wrapper .atalho-item img {
    display: block;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #dddddd;
    padding: 4px;
    margin: 0 auto;
}


/* Desktop */

@media (min-width: 992px) {
	
	.atalhos-container {
        justify-content: center;
    }

    .atalhos-wrapper .atalho-item img {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
        max-width: 90px;
        max-height: 90px;
    }

}


/* Mobile */

@media (max-width: 768px) {

    .atalhos-wrapper .atalho-item img {
        width: 75px;
        height: 75px;
        min-width: 75px;
        min-height: 75px;
        max-width: 75px;
        max-height: 75px;
    }

    .atalho-item {
        font-size: 12px;
    }

}


/* Hover (apenas desktop) */

@media (min-width: 992px) {

    .atalho-item:hover img {
        transform: scale(1.08);
        transition: 0.3s ease;
        border-color: #b30000;
    }

}

.atalho-item span {
    display: block;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;

    border-radius: 4px;
    background-color: #cc0000;
    color: #ffffff;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    position: relative;
    display: inline-block;
}

.live-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
    animation: pulseDot 1.6s infinite ease-out;
}

@keyframes pulseDot {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

.atalho-texto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Corrige alinhamento do texto com badge LIVE */

.atalho-item .atalho-texto {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    text-align: center;
}

.atalho-item .badge-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;

    border-radius: 4px;
    background-color: #cc0000;
    color: #ffffff;
}

.atalho-item .live-dot {
    display: inline-block !important;
}