/* ===========================
   BLOCO 1 - Navbar
   =========================== */
.navbar {
    background: linear-gradient(90deg, #004d00, #FFD700, #B22222) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar .nav-link:hover {
    color: #FFD700 !important;
    text-decoration: underline;
}

/* ===========================
   BLOCO 2 - Botões
   =========================== */
.btn-primary {
    background: linear-gradient(180deg, #006400, #004d00);
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.btn-danger {
    background: linear-gradient(180deg, #B22222, #8B0000);
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.btn-outline-primary {
    color: #FFD700;
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: #FFD700;
    color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===========================
   BLOCO 3 - Alerts
   =========================== */
.alert-success {
    background: linear-gradient(90deg, #004d00, #006400);
    color: #fff;
    border: none;
}
.alert-warning {
    background: linear-gradient(90deg, #FFD700, #DAA520);
    color: #000;
    border: none;
}
.alert-danger {
    background: linear-gradient(90deg, #B22222, #8B0000);
    color: #fff;
    border: none;
}


/* ===========================
   BLOCO 4 - Cards (corrigido)
   =========================== */
.card {
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    height: auto;                /* altura flexível */
    margin-bottom: 1.5rem;       /* espaço entre cards e rodapé */
}
.card:hover { transform: translateY(-3px); }

.card-header {
    background: linear-gradient(90deg, #004d00, #006400);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    font-size: 1rem;
}

.card-body {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-footer {
    background: #f8f9fa;
    color: #333;
    font-weight: 500;
    padding: 0.6rem;
    font-size: 0.85rem;
    text-align: center;
}

.card img, .card video {
    max-height: 240px;           /* mídia maior e proporcional */
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}


/* ===========================
   BLOCO 5 - Links e Tipografia
   =========================== */
a {
    color: #006400;
    font-weight: 500;
    transition: color 0.3s ease;
}
a:hover { color: #FFD700; }
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 600;
}

/* ===========================
   BLOCO 6 - Avatar
   =========================== */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    transition: box-shadow 0.3s ease;
}
.avatar-sm:hover { box-shadow: 0 0 8px #FFD700; }

/* ===========================
   BLOCO 7 - Mascote Flutuante
   =========================== */
.mascote-flutuante {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 100px;
    z-index: 999;
    text-align: center;
    animation: flutuarMascote 3s ease-in-out infinite;
    cursor: pointer;
}
.mascote-flutuante img {
    width: 100%;
    max-width: 100px;
}

/* Balão de fala */
.balao-fala {
    position: absolute;
    bottom: 120px;
    right: 0;
    background-color: #ffe066;
    color: #333;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.5s;
}

/* Container dos balões em semicírculo */
.baloes-opcoes {
    position: absolute;
    bottom: 0;
    left: -90px;
    width: 100px;
    height: 100px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.baloes-opcoes.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Balões individuais */
.balao {
    position: absolute;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 0 4px rgba(255,255,255,0.6);
    transition: transform 0.2s, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards, pulse 2s ease-in-out infinite, glow 3s ease-in-out infinite;
}
.balao:hover { transform: scale(1.05); }

/* Posições em semicírculo ajustadas */
.balao-verde { background-color: #28a745; top: 10px; left: 20px; animation-delay: 0.8s, 2s, 2s; }
.balao-amarelo { background-color: #ffc107; color: #333; top: 40px; left: 0; animation-delay: 1.2s, 2.5s, 2.5s; }
.balao-azul { background-color: #007bff; bottom: 10px; left: 20px; animation-delay: 1.6s, 3s, 3s; }

/* Hover com brilho colorido */
.balao-verde:hover { box-shadow: 0 0 10px #28a745; }
.balao-amarelo:hover { box-shadow: 0 0 10px #ffc107; }
.balao-azul:hover { box-shadow: 0 0 10px #007bff; }

/* ===========================
   BLOCO 8 - Animações
   =========================== */
@keyframes flutuarMascote { 
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
@keyframes fadeInUp { 
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}
@keyframes glow { 
    0% { box-shadow: 0 0 4px rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 8px rgba(255,255,255,0.8); }
    100% { box-shadow: 0 0 4px rgba(255,255,255,0.4); }
}



/* ===========================
   BLOCO 9 - Responsividade
   =========================== */
@media (max-width: 768px) {
    .card {
        height: auto;            /* mantém flexível no mobile */
        margin-bottom: 2rem;     /* mais espaço no celular */
    }
    .card img, .card video {
        max-height: 180px;       /* mídia ajustada para telas menores */
    }
}
