/* ===== Variáveis CSS ===== */
:root {
    --teal: #4294cc;
    --laranja: #ed7e3d;
    --rosa: #e63d1e;
    --teal: #00A896;
    --roxo: #7B3FF2;
    --amarelo: #eb6c3c;
    --cinza-claro: #F5F5F5;
    --cinza-escuro: #333;
    --branco: #FFFFFF;
    --sombra: 0 2px 8px rgba(0, 0, 0, 0.1);
    --sombra-forte: 0 4px 16px rgba(0, 0, 0, 0.15);
    --verde-limao: #eb6c3c;
}

/* ===== Reset e Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--cinza-escuro);
    background-image: url("img/padraoojf26-bg-.png");
    line-height: 1.6;
    padding-bottom: 80px; /* Espaço para a navegação mobile */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

/* ===== Header e Carrossel (Mantido) ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    color: var(--cinza-escuro);
    padding: 14px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.header-brand,
.header-sponsor {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-brand {
    flex: 0 0 auto;
}

.header-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.header-nav .nav-menu {
    justify-content: center;
}

.header-brand .header-logo,
.header-sponsor .header-logo {
    max-height: 55px;
    width: auto;
    display: block;
}

.header-sponsor .secondary-logo {
    max-height: 48px;
    opacity: 0.95;
}

.header-content h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.header-content .subtitle {
    font-size: 1rem;
    opacity: 0.85;
}

.header-nav .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.header-nav a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cinza-escuro);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    font-size: 0.9rem;
}

.nav-link-edital {
    background: var(--roxo);
    color: var(--branco);
    border-color: var(--roxo);
}

.header-nav a:hover,
.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.nav-link-edital:hover {
    background: #9043ff;
    border-color: #9043ff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 170px;
    background: var(--branco);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    color: var(--cinza-escuro);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
}

.dropdown-menu li a:hover {
    background: var(--cinza-claro);
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-brand,
    .header-sponsor {
        justify-content: flex-start;
        width: auto;
    }

    .header-nav {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        min-width: 0;
        order: 2;
    }

    .header-nav .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .header-nav a,
    .nav-dropdown-toggle {
        width: auto;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 8px;
        background: transparent;
    }

    .dropdown-menu li a {
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
    }
}

.carousel-section {
    background: var(--branco);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--sombra);
}

.partners-banner {
    margin: 0 auto 20px;
    padding: 0 20px;
}

.partners-banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--roxo) 100%);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--branco);
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--branco);
}


/* ===== Filtro de Modalidade Fora do Modal (Mobile Scroll) ===== */
.modality-filters-section {
    padding: 10px 0;
    margin-bottom: 20px;
}

/* Container de scroll para Mobile */
.modality-filters-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* background-color: var(--branco); */
    /* border-radius: 8px;
    box-shadow: var(--sombra); */
}

.modality-filters-list {
    display: flex;
    gap: 10px;
    min-width: min-content;
    padding: 5px 20px;
}

/* Botões de modalidade compactos */
.modality-filter-btn {
    width: 70px; /* Um pouco menor */
    height: 70px; /* Um pouco menor */
    border-radius: 8px; /* Quadrado com bordas arredondadas */
    border: 2px solid var(--cinza-claro);
    background: var(--cinza-claro);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px; /* Espaçamento menor */
    font-size: 0.7rem; /* Fonte menor */
    font-weight: 600;
    text-align: center;
    padding: 5px;
    transition: all 0.2s;
    flex-shrink: 0;
    color: var(--cinza-escuro);
}

.modality-filter-btn:hover {
    transform: scale(1.05);
    background: var(--cinza-claro);
    box-shadow: 0 0 0 2px var(--teal);
}

.modality-filter-btn.active {
    border-color: var(--teal);
    box-shadow:  0 0 0 3px #00A8964D;
    background: var(--branco);
}

.modality-filter-icon {
    font-size: 1.4rem; /* Um pouco menor */
}


/* ===== NOVO: Ações de Filtro (Trigger e Clear) E Toggle View ===== */

.filter-action-bar {
    display: flex;
    justify-content: space-between; /* Altera para space-between */
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Botão de acionamento do modal */
.filter-trigger-btn {
    background: var(--teal);
    color: var(--branco);
    border: none;
    padding: 8px 15px; 
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--sombra);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.filter-trigger-btn .filter-icon {
    font-size: 1rem;
}

.filter-trigger-btn:hover {
    background: var(--roxo);
    opacity: 0.9;
}

/* Link/Botão para limpar filtros */
.clear-filters-link {
    background: none;
    border: none;
    color: var(--rosa);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px;
    transition: opacity 0.2s;
    margin-left: auto; /* Empurra para o lado direito em desktop */
}

.clear-filters-link:hover {
    opacity: 0.8;
}

/* Novo grupo de botões de toggle */
.view-toggle-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--teal);
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px; /* Espaçamento com o Limpar Filtros */
}

.view-btn {
    background: var(--branco);
    color: var(--teal);
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.view-btn.active {
    background: var(--teal);
    color: var(--branco);
}

.view-btn:not(.active):hover {
    background: var(--cinza-claro);
}


/* ===== Modal de Filtros (Mantido) ===== */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6); 
    padding-top: 50px;
}

.modal-content {
    background-color: var(--branco);
    margin: 5% auto; 
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--sombra-forte);
    width: 90%;
    max-width: 450px; 
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cinza-claro);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem; 
    color: var(--teal);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: var(--cinza-escuro);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--rosa);
}

.modal-body {
    max-height: 60vh; 
    overflow-y: auto;
    padding-right: 5px;
}

.modal-footer {
    padding-top: 15px;
    border-top: 1px solid var(--cinza-claro);
    margin-top: 15px;
    text-align: right;
}

.apply-filters-btn {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%);
    color: var(--branco);
    border: none;
    padding: 10px 20px; 
    border-radius: 8px;
    font-size: 0.95rem; 
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 100%; 
}

.apply-filters-btn:hover {
    opacity: 0.9;
}

/* Filtros Gênero/Idade no Modal (Mantido) */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.filter-label {
    font-weight: 600;
    color: var(--teal); 
    font-size: 0.85rem; 
}

.gender-filters,
.age-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
}

.filter-btn {
    flex: 1 1 auto; 
    min-width: 60px;
    padding: 8px 12px; 
    border: 1px solid var(--teal);
    background: var(--branco);
    color: var(--teal);
    border-radius: 4px; 
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem; 
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--teal);
    color: var(--branco);
    box-shadow: var(--sombra);
}


/* ===== Cards e Layout Responsivo (Grid View - Mantido) ===== */
.cards-section {
    background: var(--branco);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--sombra);
}

.cards-section h2 {
    color: var(--teal);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.cards-container {
    /* Padrão: 2 cards por linha no mobile */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0px 0;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--branco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: all 0.3s;
    border: 1px solid var(--cinza-claro);
    animation: fadeInUp 0.5s ease-out;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-forte);
}

.card-image {
    width: 100%;
    /* height: 200px;
    object-fit: cover; */
}

.fallback-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--branco);
    text-align: center;
    padding: 10px;
}

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

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cinza-escuro);
    margin-bottom: 10px;
}

.card-gender {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--branco);
}

.card-gender.masculino {
    background: var(--teal);
}

.card-gender.feminino {
    background: var(--rosa);
}

.card-gender.misto {
    background: var(--teal);
}

.card-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-category {
    background: var(--verde-limao);
    color: var(--cinza-escuro);
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 12px
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%);
    color: var(--branco);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: auto;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-forte);
}

/* ===== NOVO: List View Horizontal (Resumido) ===== */
.cards-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaço entre os itens da lista */
    padding: 20px 0;
    grid-template-columns: none; /* Desativa o grid */
}

.cards-container.list-view .card {
    display: flex; /* Transforma o card em horizontal */
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--sombra);
    transition: all 0.2s;
    border-left: 5px solid var(--cinza-claro); /* Borda lateral para destaque */
}

.cards-container.list-view .card:hover {
    transform: none; /* Remove o translateY do hover do grid */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--teal); /* Destaque azul no hover */
}

/* Esconde a imagem (que não existe mais neste layout) */
.cards-container.list-view .card-image {
    display: none; 
}

.cards-container.list-view .card-content {
    display: flex;
    flex-direction: row; /* Layout horizontal de conteúdo */
    align-items: center;
    flex-grow: 1;
    gap: 15px; 
    padding: 0;
}

.cards-container.list-view .card-title {
    font-size: 1.1rem;
    flex-shrink: 0;
    min-width: 150px;
    margin-bottom: 0;
    font-weight: 700;
}

.cards-container.list-view .card-info {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
    white-space: nowrap;
    display: none; /* Padrão: esconde a info extra no mobile */
}

.cards-container.list-view .card-category,
.cards-container.list-view .card-gender {
    font-size: 0.8rem;
    padding: 4px 8px;
    margin-bottom: 0;
    white-space: nowrap;
    align-self: flex-start;
}

/* Botão de Inscrição no List View */
.cards-container.list-view .card-btn {
    width: auto;
    padding: 8px 15px;
    font-size: 0.85rem;
    flex-shrink: 0; 
    margin-left: 20px; 
}

/* ===== Seções Secundárias (Mantidas) ===== */

/* Estilos de Seções */
.main-content {
    min-height: calc(100vh - 200px);
}

.section {
    display: none;
    padding: 40px 0; 
    animation: fadeIn 0.3s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    color: var(--teal);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.section h3 {
    color: var(--teal);
    font-size: 1.5rem;
    /* margin-top: 25px; */
    margin-bottom: 15px;
}

/* Seção Sobre */
.about-content {
    background: var(--branco);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--sombra);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1rem;
}

.modality-list {
    list-style: none;
    margin: 20px 0;
}

.modality-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--cinza-claro);
    color: #555;
}

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

/* Seção Cronograma */
.schedule-content {
    background: var(--branco);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--sombra);
}

.schedule-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.schedule-table th {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%);
    color: var(--branco);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--cinza-claro);
}

.schedule-table tr:hover {
    background: var(--cinza-claro);
}

.schedule-table .header-row {
    background: var(--amarelo);
    font-weight: 600;
    color: var(--cinza-escuro);
}

.schedule-note {
    color: #FF6B6B;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
}

/* Seção Tabela */
.table-content {
    background: var(--branco);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--sombra);
}

.table-note {
    text-align: center;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.placeholder-table {
    background: var(--cinza-claro);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed var(--laranja);
}

.placeholder-table p {
    font-weight: 600;
    color: var(--cinza-escuro);
    margin-bottom: 15px;
}

.placeholder-table ul {
    list-style: none;
    color: #666;
}

.placeholder-table li {
    padding: 8px 0;
}

/* Seção FAQ */
.faq-content {
    background: var(--branco);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--sombra);
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--cinza-claro);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--teal);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

.faq-item a {
    color: var(--roxo);
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* ===== Navegação Mobile Inferior (Mantida) ===== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--branco);
    border-top: 2px solid var(--cinza-claro);
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* height: 80px; */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #999;
    transition: all 0.3s;
    flex: 1;
    height: 100%;
}

.nav-btn:hover {
    color: var(--laranja);
}

.nav-btn.active {
    color: var(--teal);
    background: rgba(0, 102, 204, 0.1);
    border-top: 3px solid var(--teal);
}

.nav-icon {
    font-size: 1rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Footer (Mantido) ===== */
.footer {
    background: var(--cinza-escuro);
    color: var(--branco);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ===== Responsividade (Media Queries) ===== */

/* Tablet (600px a 991px) - 3 cards por linha */
@media (min-width: 600px) {
    .cards-container:not(.list-view) {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Desktop: Filtro de Modalidade em 2 Fileiras */
@media (min-width: 768px) {
    .modality-filters-wrapper {
        overflow-x: hidden; 
        box-shadow: none; 
        background-color: transparent;
        padding: 0;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .modality-filters-list {
        display: flex;
        flex-wrap: wrap; 
        justify-content: space-between;
        padding: 0px; 
        max-height: 180px; 
        overflow: hidden; 
        padding: 4px 0;
    }

    .modality-filter-btn {
        margin-right: 10px; 
        margin-bottom: 10px; 
        width: 80px; 
        height: 80px;
    }

    .filter-action-bar {
        justify-content: space-between; 
    }

    .apply-filters-btn {
        width: auto; 
    }

    /* List View em Desktop (992px+) - Mostra todas as informações */
    .cards-container.list-view .card-info {
        display: flex; 
    }

    .cards-container.list-view .card-content {
        gap: 20px;
    }

    .cards-container.list-view .card-title {
        min-width: 200px;
    }
}

/* Desktop (992px+) - 4 cards por linha */
@media (min-width: 992px) {
    .cards-container:not(.list-view) {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Tablet View (600px a 767px) - Ajustes para o List View */
@media (min-width: 600px) and (max-width: 767px) {
    .cards-container.list-view .card-info:nth-child(3) {
        /* Mostra a Localização */
        display: flex; 
    }
    .cards-container.list-view .card-title {
        min-width: 120px;
        font-size: 1rem;
    }
}

/* Mobile View (max 599px) - Simplifica o card horizontal */
@media (max-width: 599px) {
    .cards-container.list-view .card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Wrap para gênero e categoria para ficar em linha */
    .cards-container.list-view .card-content-main {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .cards-container.list-view .card {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    .cards-container.list-view .card-btn {
        margin-top: 10px;
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .cards-container.list-view .card-gender,
    .cards-container.list-view .card-category {
        font-size: 0.75rem;
    }

    .cards-container:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Reposiciona o view-toggle para o topo em mobile */
    .filter-action-bar {
        flex-wrap: wrap;
    }

    .view-toggle-group {
        order: -1; 
        width: 100%;
        justify-content: space-around;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .view-btn {
        flex-grow: 1;
    }

    .filter-trigger-btn,
    .clear-filters-link {
        flex-grow: 1;
        justify-content: center;
        margin-left: 0;
    }
}

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