:root {
    --verde-brasil: #009c3b;
    --amarelo-brasil: #ffdf00;
    --azul-brasil: #002776;
    --branco: #ffffff;
    --cinza-claro: #f5f5f5;
    --cinza-escuro: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--cinza-claro);
    color: var(--cinza-escuro);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Simplificado com Borda Amarela */
.site-header {
    background: var(--branco);
    border-bottom: 3px solid var(--amarelo-brasil);
}

.header-banner {
    background: linear-gradient(135deg, rgba(0,156,59,0.95), rgba(0,39,118,0.95));
    padding: 50px 0;
    text-align: center;
    color: var(--branco);
}

.banner-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .header-banner {
        padding: 30px 0;
    }
}

.copa-logo {
    background: linear-gradient(135deg, var(--verde-brasil), var(--amarelo-brasil));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.header-banner {
    background: linear-gradient(rgba(0,60,30,0.9), rgba(0,39,118,0.9)), url('/assets/common/img/banner-copa.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    color: var(--branco);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.brasil-flag {
    font-size: 2rem;
    margin: 0 15px;
}

.banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Main Navigation */
.main-nav {
    background: var(--azul-brasil);
    padding: 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.nav-links li a {
    display: inline-block;
    padding: 15px 25px;
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: var(--amarelo-brasil);
    color: var(--azul-brasil);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 50px 0;
}

/* Filters Section */
.filters-section {
    background: var(--branco);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--verde-brasil);
}

.search-box input {
    padding-left: 45px;
    height: 50px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
}

.bairros-filter label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Cards de Ruas */
.rua-card {
    background: var(--branco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.rua-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.rua-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--branco);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--azul-brasil);
}

.bairro {
    color: var(--verde-brasil);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.extensao {
    color: var(--azul-brasil);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.descricao {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.votos i {
    color: #e74c3c;
    margin-right: 5px;
}

.rating i {
    color: var(--amarelo-brasil);
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-detalhes,
.btn-votar {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.btn-detalhes {
    background: var(--azul-brasil);
    color: var(--branco);
}

.btn-detalhes:hover {
    background: var(--verde-brasil);
    color: var(--branco);
}

.btn-votar {
    background: var(--amarelo-brasil);
    color: var(--azul-brasil);
}

.btn-votar:hover {
    background: #f0d000;
    transform: scale(1.05);
}

/* Página de Detalhes */
.detalhes-rua {
    background: var(--branco);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Botão Voltar */
.voltar-container {
    margin-bottom: 25px;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cinza-claro);
    color: var(--azul-brasil);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-voltar:hover {
    background: var(--amarelo-brasil);
    color: var(--azul-brasil);
    transform: translateX(-3px);
}

/* Cabeçalho da Rua */
.detalhes-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--verde-brasil);
}

.detalhes-header h1 {
    color: var(--azul-brasil);
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-rua {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bairro-badge, .extensao-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
}

.bairro-badge {
    background: rgba(0,156,59,0.1);
    color: var(--verde-brasil);
}

.extensao-badge {
    background: rgba(0,39,118,0.1);
    color: var(--azul-brasil);
}

/* Seção de Vídeo */
.video-section {
    margin-bottom: 40px;
}

.video-section h2 {
    color: var(--azul-brasil);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Galeria */
.galeria-section {
    margin-bottom: 40px;
}

.galeria-section h2 {
    color: var(--azul-brasil);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.galeria-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    color: var(--branco);
    font-size: 2.5rem;
}

/* Modal de Foto */
.modal-foto {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-foto-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.close-foto {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--branco);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-foto:hover {
    color: var(--amarelo-brasil);
    transform: scale(1.1);
}

.modal-legenda {
    margin-top: 20px;
    color: var(--branco);
    text-align: center;
    font-size: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 25px;
}

/* Sem mídia */
.sem-midia {
    text-align: center;
    padding: 60px 20px;
    background: var(--cinza-claro);
    border-radius: 15px;
    color: #999;
}

.sem-midia i {
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Botão Votar na Página de Detalhes */
.votar-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.btn-votar-grande {
    background: linear-gradient(135deg, var(--verde-brasil), #00b845);
    color: var(--branco);
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,156,59,0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-votar-grande i {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.btn-votar-grande:hover {
    background: linear-gradient(135deg, #00b845, var(--verde-brasil));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,156,59,0.4);
}

.btn-votar-grande:hover i {
    transform: scale(1.1);
}

.btn-votar-grande:active {
    transform: scale(0.98);
}

/* Versão alternativa com borda amarela */
.btn-votar-grande-outline {
    background: transparent;
    color: var(--verde-brasil);
    border: 3px solid var(--verde-brasil);
    padding: 14px 46px;
}

.btn-votar-grande-outline:hover {
    background: var(--verde-brasil);
    color: var(--branco);
}

/* Texto de ajuda abaixo do botão */
.texto-ajuda {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

.texto-ajuda i {
    margin-right: 5px;
    color: var(--amarelo-brasil);
}


/* Responsivo */
@media (max-width: 768px) {
    .detalhes-rua {
        padding: 20px;
    }

    .detalhes-header h1 {
        font-size: 1.5rem;
    }

    .info-rua {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .btn-voltar {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .modal-foto-content {
        max-width: 95%;
        max-height: 70%;
    }
}

/* Footer Simplificado */
.site-footer {
    background: var(--azul-brasil);
    color: var(--branco);
    padding: 20px 0;
    border-top: 3px solid var(--amarelo-brasil);
    flex-shrink: 0;
}

.footer-content {
    padding: 0;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-title {
        font-size: 1.5rem;
    }

    .brasil-flag {
        font-size: 1.2rem;
        margin: 0 5px;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links li a {
        display: block;
        text-align: center;
    }

    .card-actions {
        flex-direction: column;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .btn-votar-grande {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .site-footer {
        text-align: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rua-card {
    animation: fadeIn 0.5s ease-out;
}