/**
 * Estilos para páginas de eventos
 */

/* Hero Section com Background Image */
.evento-hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    /* Fallback background quando não houver imagem */
    background: linear-gradient(135deg, #0d375c 0%, #1e293b 50%, #374151 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 55, 92, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.evento-hero .container {
    position: relative;
    z-index: 2;
}

.evento-hero .page-title {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.evento-hero .breadcrumbs {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.evento-hero .evento-meta-destaque {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-top: 1rem;
}

.evento-hero .evento-meta-destaque span {
    color: #fff;
    font-weight: 600;
    margin: 0 1rem;
    display: inline-block;
}

.evento-hero .evento-meta-destaque i {
    margin-right: 0.5rem;
    color: #ffd700;
}

/* Responsividade para Hero */
@media (max-width: 768px) {
    .evento-hero {
        min-height: 300px;
    }
    
    .evento-hero .page-title {
        font-size: 2.2rem;
    }
    
    .evento-hero .evento-meta-destaque {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .evento-hero .evento-meta-destaque span {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Estilos gerais para eventos */
.eventos-section {
    padding: 80px 0;
}

.evento-btns .btn {
	background: #0d375c !important;
	border: 0px !important;
	color: #fff;
}
.page-title {
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #ff5722;
}

.evento-meta-destaque {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.evento-meta-destaque span {
    margin: 0 15px;
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.evento-meta-destaque i {
    margin-right: 8px;
    color: #ff5722;
}

/* Filtro de eventos */
.eventos-filter {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.categoria-eventos-filter {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    flex-wrap: wrap;
}

.categoria-eventos-filter li {
    margin-right: 10px;
    margin-bottom: 10px;
}

.categoria-eventos-filter li a {
    display: block;
    padding: 8px 15px;
    background-color: #eee;
    border-radius: 30px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categoria-eventos-filter li.active a,
.categoria-eventos-filter li a:hover {
    background-color: #ff5722;
    color: #fff;
}

/* Grade de eventos */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-bottom: 40px;
}

.evento-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Estilos para evento em destaque */
.evento-destaque {
    position: relative;
    transform: scale(1.02);
}

.evento-destaque .evento-inner {
    background-color: #fffaf7;
}

.evento-destaque-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.evento-data-badge {
	position: absolute;
	top: -13px;
	left: 15px;
	background-color: #fff;
	color: #333;
	width: 4.5rem;
	height: 5rem;
	/* border-radius: 50%; */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 1024;
	/* border: 2px solid #ff5722; */
}

.evento-data-badge .mes {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #ff5722;
    line-height: 1;
}

.evento-data-badge .dia {
	font-size: 35px;
	font-weight: 700;
	line-height: 1;
}

.evento-inner {
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.evento-img {
    height: 200px;
    overflow: hidden;
}

.evento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-item:hover .evento-img img {
    transform: scale(1.05);
}

.evento-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.evento-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #777;
    font-size: 14px;
}

.evento-meta span {
    display: flex;
    align-items: center;
}

.evento-meta i {
    margin-right: 5px;
    color: #ff5722;
}

.evento-titulo {
    margin-bottom: 15px;
    font-size: 20px;
}

.evento-titulo a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.evento-titulo a:hover {
    color: #ff5722;
}

.evento-info {
    margin-bottom: 15px;
    color: #666;
}

.evento-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.evento-info i {
    margin-right: 8px;
    color: #ff5722;
    width: 16px;
    text-align: center;
}

.evento-resumo {
    margin-bottom: 20px;
    color: #666;
    flex-grow: 1;
}

/* Sidebar de eventos */
.sidebar-eventos {
    position: sticky;
    top: 30px;
}

.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.widget-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5722;
    font-size: 18px;
}

.eventos-sidebar-list {
    list-style: none;
    padding: 0;
}

.eventos-sidebar-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.eventos-sidebar-list li:last-child {
    border-bottom: none;
}

.evento-data-mini {
    min-width: 80px;
    color: #ff5722;
    font-weight: 600;
}

.evento-titulo-mini a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.evento-titulo-mini a:hover {
    color: #ff5722;
}

.cat-list {
    list-style: none;
    padding: 0;
}

.cat-list li {
    margin-bottom: 10px;
}

.cat-list li a {
    color: #555;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cat-list li a:hover {
    color: #ff5722;
}

.count {
    color: #999;
}

.contato-sidebar p {
    margin-bottom: 20px;
}

/* Paginação */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.page-numbers li {
    margin: 0 5px;
}

.page-numbers li a,
.page-numbers li span {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers li a:hover,
.page-numbers li span.current {
    background-color: #ff5722;
    color: #fff;
}

/* Página de evento única (single) */
#evento-single .evento-imagem {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

#evento-single .evento-imagem img {
    width: 100%;
    height: auto;
}

.evento-conteudo {
    margin-bottom: 40px;
}

.evento-conteudo h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.evento-categorias {
    margin: 30px 0;
}

.evento-cat-list {
    display: flex;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.evento-cat-list li {
    margin-right: 10px;
    margin-bottom: 10px;
}

.evento-cat-list li a {
    display: block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.evento-cat-list li a:hover {
    background-color: #ff5722;
    color: #fff;
}

.evento-compartilhar {
    margin: 30px 0;
}

.social-share {
    display: flex;
    list-style: none;
    padding: 0;
}

.social-share li {
    margin-right: 10px;
}

.social-share li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share li a:hover {
    background-color: #ff5722;
    color: #fff;
}

.evento-navegacao {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 48%;
}

.nav-link-evento {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-link-evento:hover {
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #ff5722;
}

.nav-previous .nav-link-evento {
    flex-direction: row;
}

.nav-next .nav-link-evento {
    flex-direction: row-reverse;
}

.nav-evento-imagem {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.nav-evento-imagem .nav-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff5722, #ff8a65);
    color: white;
    font-size: 1.5rem;
}

.nav-evento-content {
    flex: 1;
    padding: 0 15px;
}

.nav-previous .nav-evento-content {
    text-align: left;
}

.nav-next .nav-evento-content {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
    color: #333;
}

.nav-date {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-next .nav-date {
    justify-content: flex-end;
}

.nav-evento-content > i {
    font-size: 12px;
    color: #ff5722;
    margin: 0 5px;
}

/* Box de informações do evento */
.evento-info-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.evento-data-destaque {
    text-align: center;
    margin-bottom: 20px;
}

.data-box {
    display: inline-block;
    padding: 15px 25px;
    background-color: #ff5722;
    color: #fff;
    border-radius: 5px;
    text-align: center;
}

.data-box .mes {
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

.data-box .dia {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.evento-detalhes-lista {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.evento-detalhes-lista li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.evento-detalhes-lista li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.evento-detalhes-lista li i {
    margin-right: 15px;
    font-size: 18px;
    color: #ff5722;
    width: 20px;
    text-align: center;
}

.evento-detalhes-lista li div {
    flex: 1;
}

.evento-detalhes-lista .label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 3px;
}

.evento-detalhes-lista .value {
    font-weight: 600;
    color: #333;
}

.evento-btns {
    margin-top: 25px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

/* Organizador */
.organizador-info {
    text-align: center;
}

.logo-organizador {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.organizador-info h4 {
    margin-bottom: 10px;
}

.organizador-contatos {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.organizador-contatos li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.organizador-contatos li i {
    margin-right: 10px;
    color: #ff5722;
    width: 16px;
    text-align: center;
}

/* Eventos relacionados */
.eventos-relacionados-list {
    list-style: none;
    padding: 0;
}

.eventos-relacionados-list li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.eventos-relacionados-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rel-img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.rel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rel-info {
    flex: 1;
}

.rel-data {
    display: block;
    font-size: 13px;
    color: #ff5722;
    margin-bottom: 5px;
}

.rel-info h4 {
    font-size: 15px;
    margin: 0;
}

.rel-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rel-info h4 a:hover {
    color: #ff5722;
}

/* Modal de inscrição */
.modal-content {
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background-color: #ff5722;
    color: #fff;
    border-bottom: none;
}

.modal-header .close {
    color: #fff;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.evento-form .form-group {
    margin-bottom: 20px;
}

.evento-form label {
    font-weight: 600;
    color: #555;
}

/* Estilo para eventos na página inicial */
.eventos-home {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.eventos-destaque {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.eventos-destaque .section-title {
    margin-bottom: 50px;
}

.sem-eventos {
    text-align: center;
    padding: 50px 0;
    width: 100%;
    grid-column: span 3;
}

.sem-eventos p {
    margin-bottom: 20px;
    color: #666;
}

/* Responsividade */
@media (max-width: 991px) {
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    .nav-evento-imagem {
        width: 70px;
        height: 70px;
    }
    
    .nav-title {
        font-size: 13px;
    }
    
    .nav-evento-content {
        padding: 0 12px;
    }
}
    .eventos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .eventos-home {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-eventos {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .eventos-section {
        padding: 50px 0;
    }
    
    .eventos-home {
        grid-template-columns: 1fr;
    }
    
    .sem-eventos {
        grid-column: span 1;
    }
    
    .page-header {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-previous, 
    .nav-next {
        max-width: 100%;
    }
    
    .nav-evento-imagem {
        width: 60px;
        height: 60px;
    }
    
    .nav-title {
        font-size: 12px;
    }
    
    .nav-evento-content {
        padding: 0 10px;
    }
    
    .nav-next .nav-evento-content {
        text-align: left;
    }
    
    .nav-next .nav-date {
        justify-content: flex-start;
    }
    
    .categoria-eventos-filter {
        flex-direction: column;
    }
    
    .categoria-eventos-filter li {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .categoria-eventos-filter li a {
        width: 100%;
        text-align: center;
    }
}
