/*
 * Connect Banners CSS - Sistema de Banners Dinâmicos
 * © 2025 Nando Cardoso® - Connect Designers®
 * REGISTRO INPI: Processo 923067680 | 929564537
 * Propriedade intelectual protegida - Reprodução proibida
 */

/* Connect Banners - Header Moderno Cinza */
.connect-banners-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background: linear-gradient(135deg, #667085 0%, #4B5563 100%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 35px 30px;
    margin: -25px -25px 30px -25px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.connect-banners-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.connect-banners-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 70%);
    transform: translate(50%, -50%);
}

.connect-banners-header-content {
    position: relative;
    z-index: 2;
}

.connect-banners-header h1 {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.connect-banners-header h1 i {
    font-size: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

.connect-banners-header p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

.connect-banners-stats {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.connect-banners-stat {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 140px;
    transition: all 0.2s ease;
}

.connect-banners-stat:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.connect-banners-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    display: block;
    margin-bottom: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-banners-stat-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.connect-banners-actions {
    position: absolute;
    top: 35px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.connect-banners-actions .btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

.connect-banners-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2), 0 4px 6px -2px rgba(59, 130, 246, 0.1);
}

.connect-banners-actions .btn i {
    margin-right: 6px;
}

/* Responsividade Geral */
@media (max-width: 768px) {
    .connect-banners-header {
        padding: 30px 20px;
        margin: -20px -20px 20px -20px;
    }
    
    .connect-banners-header h1 {
        font-size: 24px;
    }
    
    .connect-banners-actions {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 20px;
    }
    
    .connect-banners-stats {
        gap: 15px;
    }
    
    .connect-banners-stat {
        flex: 1;
        min-width: 100px;
        padding: 12px 15px;
    }
}

/* Responsividade para Banners */
@media (max-width: 768px) {
    /* Ajustar altura do banner em mobile */
    .image-slideshow {
        max-height: 200px !important;
        object-fit: cover !important;
    }
    
    /* Ajustar controles do carousel */
    #myCarousel .carousel-control {
        width: 40px;
        font-size: 20px;
    }
    
    /* Ajustar indicadores */
    #myCarousel .carousel-indicators {
        bottom: 10px;
    }
    
    #myCarousel .carousel-indicators li {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
}

/* Tablet - tamanhos médios */
@media (min-width: 769px) and (max-width: 1024px) {
    .image-slideshow {
        max-height: 280px !important;
    }
    
    #myCarousel .carousel-control {
        width: 45px;
        font-size: 25px;
    }
}

/* Desktop - tamanhos grandes */
@media (min-width: 1025px) {
    .image-slideshow {
        max-height: 350px !important;
    }
}

.dropzone-banner {
    min-height: 0px !important;
}

.image-slideshow {
    max-height: 350px;
    object-fit: contain;
}

.alert-dismissible-2 .close {
    right: 0px !important;
}

.caption_text {
  font-size: 15px;
  padding: 22px 26px;
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.banner_numbertext {
  color: #000000; /* Set text color */
  text-align: center; /* Center text horizontally */
  position: absolute; /* Relative positioning */
  margin: 10px 0px 0px 10px;
}

.banner_circle {
  width: 50px; /* Set width */
  height: 50px; /* Set height */
  background-color: white; /* Set background color */
  border-radius: 50%; /* Make it round */
  line-height: 50px; /* Center text vertically */
}

/* Botão de Ação do Banner Moderno */
.banner-action-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
    text-align: center;
    min-width: 150px;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: pulse 2s infinite;
}

.banner-action-button:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-decoration: none;
}

.banner-action-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

/* Animação de pulso suave para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
}

/* Responsivo para o botão de ação */
@media (max-width: 768px) {
    .banner-action-button {
        bottom: 15px;
        padding: 10px 24px;
        font-size: 14px;
        min-width: 120px;
        border-radius: 20px;
    }
}

/* Container do carousel para posição relativa */
.carousel .item {
    position: relative;
}

.carousel .item .panel {
    position: relative;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Transição suave e profissional do carousel */
#myCarousel .carousel-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
}

#myCarousel .carousel-inner > .item {
    position: relative;
    display: none;
    -webkit-transition: 0.6s ease-in-out opacity;
    transition: 0.6s ease-in-out opacity;
}

#myCarousel .carousel-inner > .active,
#myCarousel .carousel-inner > .next,
#myCarousel .carousel-inner > .prev {
    display: block;
}

#myCarousel .carousel-inner > .active {
    opacity: 1;
}

#myCarousel .carousel-inner > .next,
#myCarousel .carousel-inner > .prev {
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
}

#myCarousel .carousel-inner > .next.left,
#myCarousel .carousel-inner > .prev.right {
    opacity: 1;
}

#myCarousel .carousel-inner > .active.left,
#myCarousel .carousel-inner > .active.right {
    opacity: 0;
}

/* Remover movimentos verticais */
#myCarousel .carousel-inner > .item.left,
#myCarousel .carousel-inner > .item.right,
#myCarousel .carousel-inner > .item.active {
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
}

/* Garantir que o painel não tenha espaços extras */
#myCarousel .carousel-inner > .item > .panel {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

#myCarousel .carousel-control {
    background: none !important;
    background-image: none !important;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#myCarousel .carousel-control:hover {
    opacity: 1;
}

/* Ajustar controles para ficarem sobre a imagem */
#myCarousel .carousel-control {
    width: 50px;
    font-size: 30px;
    /* color removed - uses inline style from settings */
    text-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(255,255,255,0.5);
}

#myCarousel .carousel-control.left {
    background: linear-gradient(to right, rgba(255,255,255,0.3), transparent);
}

#myCarousel .carousel-control.right {
    background: linear-gradient(to left, rgba(255,255,255,0.3), transparent);
}

/* Indicadores mais elegantes */
#myCarousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#myCarousel .carousel-indicators li.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Botão de ação nos Avisos Rápidos - FORÇA posição na seção 3 */
.ticker-action-button,
a.ticker-action-button,
.ticker-item .ticker-action-button,
.ticker-content-wrapper .ticker-action-button {
    position: absolute !important;
    left: 77.5% !important;  /* Centro da seção 3 */
    right: auto !important;  /* Remove qualquer right anterior */
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 100 !important;
    white-space: nowrap;
}

.ticker-action-button:hover {
    transform: translate(-50%, -50%) scale(1.05) !important; /* Mantém centralização exata no hover */
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    text-decoration: none !important;
}

/* Ajustar espaçamento do texto para dar espaço ao botão */
.ticker-content-wrapper .ticker-item {
    padding-right: 200px;
}

/* Responsivo para Avisos Rápidos */
@media (max-width: 768px) {
    /* Ajustar layout do ticker em mobile */
    .acme-news-ticker {
        font-size: 12px;
    }
    
    .acme-news-ticker-label {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .acme-news-ticker-label i {
        display: none; /* Ocultar ícone em mobile para economizar espaço */
    }
    
    .ticker-content-wrapper {
        height: 25px !important;
    }
    
    .ticker-item {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    /* Ajustar botão de ação */
    .ticker-action-button {
        font-size: 10px !important;
        padding: 2px 8px !important;
        right: 85px !important;
        border-radius: 8px !important;
    }
    
    .ticker-content-wrapper .ticker-item {
        padding-right: 150px;
    }
    
    /* Controles do ticker menores */
    .ticker-prev, .ticker-pause, .ticker-next {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

/* Tablet - Avisos Rápidos */
@media (min-width: 769px) and (max-width: 1024px) {
    .acme-news-ticker {
        font-size: 13px;
    }
    
    .acme-news-ticker-label {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .ticker-action-button {
        font-size: 11px !important;
        padding: 3px 10px !important;
        right: 120px !important;
    }
}

/* Sempre mostrar avisos rápidos mesmo em mobile */
.news-ticker-wrapper {
    display: block !important;
}

/* Classes auxiliares para controle de visibilidade */
@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

/* Centralização vertical simples para avisos rápidos */
.acme-news-ticker {
    display: flex !important;
    align-items: center !important; /* Centraliza tudo verticalmente no meio */
    position: relative !important;
    background: #fff !important;
    height: 50px !important; /* Altura fixa para garantir consistência */
}


/* Centralização vertical profissional dos elementos */

/* Título/Label centralizado verticalmente - usando transform como o botão */
#ticker-label,
.acme-news-ticker-label,
.ticker-section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    position: relative !important;
    transform: translateY(-10%) !important;
}

/* Texto/Descrição centralizado verticalmente - usando transform como o botão */
.ticker-item,
.ticker-content-wrapper .ticker-item {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    position: relative !important;
    transform: translateY(-10%) !important;
}

/* Controles play/pause centralizados verticalmente - usando transform como o botão */
.acme-news-ticker-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    position: relative !important;
    transform: translateY(-10%) !important;
}

.acme-news-ticker-controls button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Seção 1 - Label (15%) - título e ícone centralizados */
.acme-news-ticker-label {
    width: 15% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.acme-news-ticker-label span {
    position: relative !important;
}

.acme-news-ticker-label i {
    margin-right: 6px;
    position: relative !important;
}

/* Seção 2 - Box de conteúdo (55%) - alinhado à direita */
.acme-news-ticker-box {
    width: 55% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 50px !important;
    padding: 0 15px 0 15px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    flex-shrink: 0 !important;
}

/* Lista dentro do box - FORÇA centralização vertical */
.acme-news-ticker-box ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

.acme-news-ticker-box ul li {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Força o texto a ficar no centro - com ajuste fino */
.acme-news-ticker-box ul li a,
.acme-news-ticker-box ul li span {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    position: relative !important;
}

/* Seção 3 - Espaço vazio (15%) */
.acme-news-ticker-box::after {
    content: '' !important;
    width: 15% !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Seção 4 - Controles (15%) já posicionados absolutamente à direita */
.acme-news-ticker-controls {
    width: 15% !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ajustes para mobile - Layout vertical com 3 seções SEPARADAS */
@media (max-width: 767px) {
    /* Container vira wrapper de seções */
    .news-ticker-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    /* Container principal - esconde layout horizontal */
    .acme-news-ticker {
        display: none !important;
    }
    
    /* SEÇÃO 1 - Título (news_title) */
    .mobile-ticker-title {
        display: block !important;
        width: 100% !important;
        height: 45px !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
        padding: 0 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }
    
    /* SEÇÃO 2 - Descrição (news_details) */
    .mobile-ticker-content {
        display: block !important;
        width: 100% !important;
        height: 45px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 10px !important;
        padding: 0 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 13px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }
    
    /* SEÇÃO 3 - Botão + Controles */
    .mobile-ticker-actions {
        display: flex !important;
        width: 100% !important;
        height: 45px !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    }
    
    /* Botão de ação - 50% esquerda */
    .mobile-ticker-button {
        display: flex !important;
        width: 50% !important;
        height: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        border-right: 1px solid #e5e7eb !important;
        padding: 0 10px !important;
    }
    
    /* Controles - 50% direita */
    .mobile-ticker-controls {
        display: flex !important;
        width: 50% !important;
        height: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    
    /* Esconder elementos desktop */
    .acme-news-ticker-label,
    .acme-news-ticker-box,
    .acme-news-ticker-controls,
    .ticker-action-button {
        display: none !important;
    }
}

/* Ajustes para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .acme-news-ticker {
        height: 45px !important;
    }
    
    .acme-news-ticker-label {
        font-size: 12px !important;
        padding: 0 10px !important;
    }
    
    .acme-news-ticker-box {
        font-size: 12px !important;
    }
    
    .ticker-action-button {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    /* Ocultar botão de ação em telas muito pequenas */
    .ticker-action-button {
        display: none !important;
    }
    
    /* Ajustar proporções */
    .acme-news-ticker-label {
        width: 30% !important;
    }
    
    .acme-news-ticker-box {
        width: 45% !important;
    }
    
    .acme-news-ticker-controls {
        width: 25% !important;
    }
}

