/**
 * Estilos do Módulo de Eventos
 * Sistema de Gestão Farol922
 * 
 * Este arquivo contém todos os estilos personalizados para:
 * - Eventos Pinados (Stories Circulares)
 * - Listagem de Eventos
 * - Componentes visuais do módulo
 */

/* ============================================
   EVENTOS PINADOS - ESTILO STORIES
   ============================================ */

/* Container principal dos stories */
.eventos-stories-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 15px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: #ffc107 #f8f9fa;
}

/* Scrollbar personalizada (Webkit - Chrome, Safari, Edge) */
.eventos-stories-wrapper::-webkit-scrollbar {
    height: 8px;
}

.eventos-stories-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.eventos-stories-wrapper::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 10px;
}

/* Item individual do story */
.story-item {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-item:hover {
    transform: translateY(-5px);
}

/* Círculo externo com gradiente Instagram */
.story-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
}

/* Círculo interno com borda branca */
.story-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Imagem do evento dentro do círculo */
.story-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Título do evento abaixo do círculo */
.story-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Localização do evento (cidade) */
.story-location {
    font-size: 0.65rem;
    color: #666;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Badge de pin (ícone amarelo no canto) */
.story-pin-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #ffc107;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.story-pin-badge i {
    color: white;
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets e celulares */
@media (max-width: 768px) {
    .story-circle {
        width: 90px;
        height: 90px;
    }
    
    .story-title,
    .story-location {
        max-width: 90px;
    }
    
    .eventos-stories-wrapper {
        justify-content: flex-start;
    }
}

/* Celulares pequenos */
@media (max-width: 576px) {
    .story-circle {
        width: 80px;
        height: 80px;
    }
    
    .story-title {
        font-size: 0.7rem;
    }
    
    .story-location {
        font-size: 0.6rem;
    }
    
    .story-title,
    .story-location {
        max-width: 80px;
    }
    
    .eventos-stories-wrapper {
        gap: 15px;
        padding: 15px 10px;
    }
    
    .story-pin-badge {
        width: 24px;
        height: 24px;
    }
    
    .story-pin-badge i {
        font-size: 0.7rem;
    }
}

/* Desktop grande (mais de 4 stories) */
@media (min-width: 1400px) {
    .eventos-stories-wrapper {
        gap: 25px;
    }
    
    .story-circle {
        width: 130px;
        height: 130px;
    }
    
    .story-title,
    .story-location {
        max-width: 130px;
    }
}

/* ============================================
   BADGE 400 ANOS - FAIXA DIAGONAL
   ============================================ */

.ribbon-400anos {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
    width: 130px;
    height: 130px;
    text-align: right;
    pointer-events: none;
}

.ribbon-400anos span {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 28px;
    transform: rotate(-45deg);
    width: 160px;
    display: block;
    background: linear-gradient(135deg, #C79827 0%, #F4B942 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 25px;
    left: -35px;
    letter-spacing: 0.5px;
}

.ribbon-400anos span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid #8B6914;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #8B6914;
}

.ribbon-400anos span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid #8B6914;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #8B6914;
}

/* Prevenir overflow no container pai */
.listing-top-item {
    overflow: visible !important;
}

/* Animação sutil no hover do card */
.listingitem-container:hover .ribbon-400anos span {
    box-shadow: 0 4px 15px rgba(199, 152, 39, 0.5);
}

/* ============================================
   BOTÃO 400 ANOS - TOP HEADER
   ============================================ */

/* Sobrescrever estilos do tema para o botão 400 anos */
.nav-menu.nav-menu-social > li.list-buttons.light a.btn-400anos {
    background: linear-gradient(135deg, #C79827 0%, #F4B942 50%, #FFD700 100%) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.nav-menu.nav-menu-social > li.list-buttons.light a.btn-400anos:hover {
    background: linear-gradient(135deg, #B88720 0%, #E5A839 50%, #F4C430 100%) !important;
    box-shadow: none !important;
}

.btn-400anos {
    background: linear-gradient(135deg, #C79827 0%, #F4B942 50%, #FFD700 100%) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.btn-400anos:hover {
    background: linear-gradient(135deg, #B88720 0%, #E5A839 50%, #F4C430 100%) !important;
    box-shadow: none !important;
}

.btn-400anos span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
}

/* Botão 400 anos mobile */
.btn-400anos-mobile {
    background: linear-gradient(135deg, #C79827 0%, #F4B942 50%, #FFD700 100%);
    color: #fff !important;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: none;
    margin-left: auto;
}

.btn-400anos-mobile span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Esconder botão mobile em telas grandes */
@media (min-width: 992px) {
    .mobile_nav {
        display: none !important;
    }
}

/* ============================================
   BADGE 400 ANOS - PÁGINA DE DETALHES
   ============================================ */

.ribbon-400anos-inline {
    display: inline-block;
    background: linear-gradient(135deg, #C79827 0%, #F4B942 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

.ribbon-400anos-inline span {
    display: inline-block;
}

/* Ribbon no lado direito */
.ribbon-400anos-right {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 100;
    overflow: hidden;
    width: 180px;
    height: 180px;
    text-align: left;
    pointer-events: none;
}

.ribbon-400anos-right span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 38px;
    transform: rotate(45deg);
    width: 220px;
    display: block;
    background: linear-gradient(135deg, #C79827 0%, #F4B942 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 35px;
    right: -50px;
    letter-spacing: 0.5px;
}

.ribbon-400anos-right span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid #8B6914;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #8B6914;
}

.ribbon-400anos-right span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid #8B6914;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #8B6914;
}
