/* VARIÁVEIS E CONFIGURAÇÕES GERAIS - MANTENDO ESTILO CSS1 */
:root {
    --cor-primaria: #000035;
    --cor-secundaria: #a0c5f7;
    --cor-texto: #333;
    --cor-branco: #ffffff;
    --gradiente-animado: linear-gradient(90deg, #FF6B6B, #FFD166, #06D6A0, #118AB2);
    
    /* Responsive spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* RESET RESPONSIVO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* MANTENDO FONTES DO CSS1 */
body {
    font-family: 'Comic Neue', cursive !important; /* Forçando a fonte do css1 */
    color: var(--cor-texto);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* CONTAINER PRINCIPAL */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* TÍTULOS MANTENDO FONTE CSS1 */
.section-title {
    text-align: center;
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
    color: #000035;
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradiente-animado); /* Usando gradiente do css1 */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* CLASSES DE TEXTO DO CSS1 */
.textos {
    font-family: 'Comic Neue', cursive !important;
    margin: 0;
    padding: 0;
    color: var(--cor-texto);
    line-height: 1.6;
}

.textos-var2 {
    font-family: 'Comic Neue', cursive !important;
    margin: 0;
    padding: 0;
    color: black;
    line-height: 1.6;
}

.textos-var3 {
    font-family: 'Comic Neue', cursive !important;
    margin: 0;
    padding: 0;
    color: rgb(255, 255, 255);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
    margin: 0;
    padding: 0;
    color: var(--cor-texto);
    line-height: 1.6;
}

/* ATIVIDADES RESPONSIVAS */
.activity-section {
    margin-bottom: 3rem;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 15px;
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
}

.activity-description {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #000035;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    width: 100%;
}

/* CARDS DE ATIVIDADE RESPONSIVOS */
.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
    cursor: pointer;
    width: 100%;
    display: block;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.activity-card.active {
    border: 2px solid var(--cor-primaria); /* Usando variável do css1 */
    background: #f8f9ff;
}

.activity-header {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    align-items: flex-start;
}

.activity-img-responsive {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid black;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    color: var(--cor-primaria); /* Usando variável do css1 */
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
}

.activity-text {
    color: var(--cor-texto); /* Usando variável do css1 */
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
}

/* BOTÕES RESPONSIVOS */
.activity-btn {
    background: var(--cor-primaria) !important; /* Usando variável do css1 */
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    cursor: pointer;
    width: auto;
    min-width: 140px;
    text-align: center;
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
}

.activity-btn:hover {
    background: var(--cor-secundaria) !important; /* Usando variável do css1 */
    transform: translateY(-2px);
    color: white !important;
}

.games-carousel {
    background: linear-gradient(135deg, #000035 0%, #1a1a4a 50%, #2d2d7a 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 35, 0.3);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.games-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #4a4a8a, #6b6bb8, #4a4a8a);
}

.games-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 700;
}

.games-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 5px;
    background: linear-gradient(90deg, #4a4a8a, #6b6bb8, #4a4a8a);
    bottom: -15px;
    left: 20%;
    border-radius: 3px;
    transform: skewX(-15deg);
}

.carousel-container {
    position: relative;
    padding: 0 50px;
}

.game-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 35, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    margin: 0 20px;
    border: none;
    transform: scale(0.95);
    opacity: 0.9;
    border: 3px solid #4a4a8a;
}

.carousel-item.active .game-card {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 45px rgba(0, 0, 35, 0.5);
}

.game-img {
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-bottom: 4px solid #000035;
}

.game-card:hover .game-img {
    transform: scale(1.03);
    opacity: 0.9;
}

.game-body {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #000035 0%, #1a1a4a 100%);
    border-radius: 0 0 15px 15px;
    position: relative;
}

.game-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6b6bb8, transparent);
}

.game-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #6b6bb8;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.play-btn {
    background: linear-gradient(135deg, #000000 0%, #010101 100%);
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(107, 107, 184, 0.4);
    color: white;
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(93, 93, 94, 0.6);
    background: linear-gradient(135deg, #989898 0%, #b4b4b5 100%);
    color: white;
}

.play-btn:active {
    transform: translateY(1px);
}

/* BOTÕES PREV E NEXT - BACKGROUND SEMPRE VISÍVEL */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
    border-radius: 5%;
    top: 50%;
    margin-top: 150px;
    transform: translateY(-50%);
    opacity: 1 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 35, 0.3);
    border: 2px solid white;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: -10px;
}

.carousel-control-next {
    right: -10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: linear-gradient(135deg, #8d8d8d 0%, #6b6b6b 100%) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 79, 80, 0.5);
}

/* Ícones dos botões */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100%;
    width: 25px;
    height: 25px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    background-image: none !important;
    position: relative;
}

/* Criando setas personalizadas */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: solid rgb(0, 0, 0);
    border-width: 0 3px 3px 0;
    display: inline-block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
}

.carousel-control-next-icon::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.carousel-control-prev:hover .carousel-control-prev-icon::before,
.carousel-control-next:hover .carousel-control-next-icon::before {
    transform: translate(-50%, -50%) rotate(135deg) scale(1.2);
}

.carousel-control-next:hover .carousel-control-next-icon::before {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.2);
}

/* Removendo estilos padrão do Bootstrap que podem causar transparência */
.carousel-control-prev:focus,
.carousel-control-next:focus {
    opacity: 1 !important;
    background: linear-gradient(135deg, #8d8d8d 0%, #6b6b6b 100%) !important;
}

.carousel-control-prev:not(:focus):not(:hover),
.carousel-control-next:not(:focus):not(:hover) {
    opacity: 1 !important;
    background: linear-gradient(135deg, #000000 0%, #000000 100%) !important;
}

/* Indicadores */
.carousel-indicators {
    bottom: 20px; 
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin: 0 8px;
    padding: 0;

}

.carousel-indicators button.active {
    background-color: #ffffff;
    transform: scale(1);
}

.carousel-indicators button:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.9);
}


/* DETALHES EXPANDÍVEIS */
.activity-details {
    display: none;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #000035;
    margin-top: 1rem;
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
}

.activity-details.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* BADGES */
.badges-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.age-badge,
.duration-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    font-family: 'Comic Neue', cursive !important; /* Fonte do css1 */
}

.age-badge {
    background: #ff6b6b;
}

.duration-badge {
    background: #4ecdc4;
}



/* ============================================
   MEDIA QUERIES PARA DISPOSITIVOS MÓVEIS
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 16px !important; /* Mantendo tamanho de fonte do css1 */
    }
    
    /* HEADER MOBILE - Mantendo estilo css1 adaptado */
    .div-cabecalho {
        padding: 15px !important; /* Padding do css1 */
        gap: 15px; /* Reduzindo gap para mobile */
        justify-content: center;
        flex-direction: column; /* Empilhando logo e menu */
    }
    
    .logo {
        max-width: 150px;
        height: auto;
        margin-bottom: 10px;
    }
    
    .logo-icon img {
        width: 100px !important; /* Mantendo tamanho do css1 */
        margin-right: 0; /* Remover margem em mobile */
    }
    
    .nav-links {
        gap: 15px !important; /* Reduzindo gap para mobile */
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a {
        padding: 8px 16px !important; /* Padding do css1 adaptado */
        font-size: 1rem !important; /* Mantendo tamanho do css1 */
    }
    
    /* TÍTULOS MOBILE - Mantendo fonte css1 */
    .section-title {
        font-size: 1.8rem !important; /* Ajuste leve para mobile */
        margin: 2rem 0 1.5rem;
    }
    
    /* ATIVIDADES MOBILE */
    .activity-section {
        padding: var(--spacing-md);
        margin-bottom: 2rem;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .activity-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .activity-img-responsive {
        width: 120px;
        height: 120px;
        margin: 0;
    }
    
    .activity-content {
        width: 100%;
    }
    
    /* CARROSSEL MOBILE */
    .games-carousel {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .carousel-container {
        padding: 0 2rem;
    }
    
    .game-card {
        margin: 0 5px;
    }
    
    .game-img {
        height: 180px;
    }
    
    .game-body {
        padding: 1.5rem;
    }
    
    /* CONTROLES DO CARROSSEL MOBILE */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
    
    /* BOTÕES MOBILE - Mantendo fonte css1 */
    .activity-btn,
    .play-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem !important; /* Mantendo tamanho do css1 */
        min-width: 130px;
        font-family: 'Comic Neue', cursive !important;
    }
    
    /* FOOTER MOBILE - Mantendo estilo css1 */
    .div-final {
        flex-direction: column;
        text-align: center;
        gap: 20px !important; /* Mantendo gap do css1 */
        padding: 30px 15px !important; /* Padding do css1 adaptado */
    }
    
    .div-final .nav-links {
        order: 2;
    }
    
    .div-final .logo-icon {
        order: 1;
    }
    
    .div-final .logo-icon img {
        width: 80px !important; /* Mantendo tamanho do css1 */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px !important; /* Mantendo tamanho de fonte do css1 */
    }
    
    /* AINDA MAIS COMPACTO PARA CELULARES PEQUENOS */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-links {
        gap: 10px !important; /* Gap menor para telas pequenas */
    }
    
    .nav-links a {
        padding: 6px 12px !important;
        font-size: 0.9rem !important; /* Pequena redução para telas muito pequenas */
    }
    
    .activity-section {
        padding: 1rem;
    }
    
    .activity-img-responsive {
        width: 100px;
        height: 100px;
    }
    
    .game-img {
        height: 150px;
    }
    
    .carousel-container {
        padding: 0 1.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .badges-container {
        justify-content: center;
    }
}

/* MELHORIAS PARA TABLETS */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .activity-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .activity-header {
        flex-direction: row;
    }
    
    .nav-links {
        gap: 20px !important; /* Gap intermediário para tablet */
    }
    
    .nav-links a {
        font-size: 1rem !important; /* Mantendo tamanho do css1 */
        padding: 8px 16px !important; /* Padding do css1 */
    }
}

/* PREVENÇÃO DE HOVER EM TOUCH */
@media (hover: none) {
    .activity-card:hover {
        transform: none;
    }
    
    .nav-links a:hover {
        transform: none; /* Remover transform em touch */
    }
    
    .nav-links a:hover::after {
        animation: none; /* Remover animação em touch */
    }
    
    .activity-btn:hover,
    .play-btn:hover {
        transform: none;
    }
}

/* UTILITÁRIOS PARA AJUSTES FINOS */
.text-break {
    word-break: break-word;
    overflow-wrap: break-word;
}

.no-scroll {
    overflow: hidden;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* CORREÇÃO PARA CARROSSEL BOOTSTRAP */
.carousel-item {
    transition: transform 0.6s ease;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
}

/* Garantir que todas as fontes sejam Comic Neue */
* {
    font-family: 'Comic Neue', cursive !important;
}