/* ================================================
   Página "Explorar" - Design do Santuário
   ================================================ */

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

/* Header da página */
.explore-header {
    text-align: center;
    margin-bottom: 120px;
}

.explore-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.explore-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #AAAAAA;
    text-align: center;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Seção de busca */
.search-section {
    margin-bottom: 48px;
}

.explore-search {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding: 16px 20px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.explore-search:focus {
    border-color: #feaf50;
}

.explore-search::placeholder {
    color: #888;
}

/* Filtros de intenção */
.intent-section {
    margin-bottom: 80px;
}

.intent-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.intent-card {
    background: #2a2a2a;
    border: 2px solid #404040;
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.intent-card:hover,
.intent-card:focus {
    border-color: #feaf50;
}

.intent-card.active {
    border-color: #feaf50;
    border-width: 3px;
    color: #feaf50;
}

/* --- Estilos para o Card de Foco (NOVO) --- */

.journeys-section {
    margin: 80px 0;
}

.focus-card {
    background-color: #1E1E1E;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 48px;
    width: 100%;
}

.focus-card-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.focus-card-header .section-title {
    font-size: 2.2rem;
}

.curator-divider {
    border: 0;
    border-top: 1px solid #404040;
    width: 100px;
    margin: 0 auto 48px auto;
}

.focus-card-body {
    /* O container do carrossel já tem seus estilos */
    padding: 8px 0;
}

.bottom-controls {
    margin-top: 24px;
    justify-content: center;
}

/* Responsividade */
@media (max-width: 768px) {
    .focus-card {
        padding: 32px 24px;
    }

    .focus-card-header .section-title {
        font-size: 1.8rem;
    }
}

/* --- Estilos para o Card de Convite (NOVO) --- */

.journey-invite-card {
    position: relative;
    width: 494px;
    min-width: 494px;
    max-width: 494px;
    height: 280px;
    background-color: #1E1E1E;
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.journey-invite-card:hover {
    box-shadow: 0 12px 32px rgba(254, 175, 80, 0.2), 0 8px 16px rgba(0, 0, 0, 0.4);
    background-color: #222222;
}

/* Efeito de Borda em Gradiente */
.journey-invite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(254, 175, 80, 0.3), rgba(254, 175, 80, 0));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-invite-card:hover::before {
    background: linear-gradient(135deg, rgba(254, 175, 80, 0.6), rgba(254, 175, 80, 0.1));
    padding: 3px;
}

.journey-invite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.journey-invite-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #feaf50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.journey-invite-label i {
    font-size: 0.9rem;
}

.journey-invite-meta {
    font-size: 0.9rem;
    color: #AAAAAA;
}

.journey-invite-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-invite-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.journey-invite-card:hover .journey-invite-title {
    color: #feaf50;
    transform: scale(1.02);
}

.journey-invite-footer {
    position: absolute;
    bottom: 24px;
    right: 24px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.journey-invite-card:hover .journey-invite-footer {
    opacity: 1;
    transform: translateX(4px);
}

.journey-invite-footer i {
    font-size: 1.5rem;
    color: #feaf50;
    transition: all 0.3s ease;
}

.journey-invite-card:hover .journey-invite-footer i {
    transform: rotate(-45deg);
}

/* Responsividade para Card de Convite */
@media (max-width: 768px) {
    .journey-invite-card {
        width: 198px;
        min-width: 198px;
        max-width: 198px;
        height: 240px;
        padding: 16px;
    }

    .journey-invite-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .journey-invite-label {
        font-size: 0.65rem;
    }

    .journey-invite-label i {
        font-size: 0.7rem;
    }

    .journey-invite-meta {
        font-size: 0.7rem;
    }

    .journey-invite-footer i {
        font-size: 1.2rem;
    }
}

/* Seções gerais */
.wing-section,
.books-section {
    margin-bottom: 150px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-info h2.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    color: #AAAAAA;
    line-height: 1.5;
}

/* Controles do carrossel */
.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-prev,
.carousel-next {
    background: transparent;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #888;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev i,
.carousel-next i {
    font-size: 16px;
}

.carousel-prev:hover,
.carousel-next:hover {
    border-color: #feaf50;
    color: #feaf50;
}

/* Container do carrossel */
.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #404040 #1a1a1a;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.journeys-carousel,
.products-carousel,
.books-carousel {
    display: flex;
    gap: 24px;
}

/* Cards de jornada */
.card-jornada {
    min-width: 320px;
    background: #1a1a1a;
    border: 1px solid #303030;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.card-jornada:hover {
    border-color: rgba(254, 175, 80, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: inherit;
    text-decoration: none;
}

.jornada-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.jornada-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #feaf50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jornada-meta {
    font-size: 0.9rem;
    color: #AAAAAA;
}

.jornada-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.jornada-description {
    font-size: 1rem;
    color: #B0B0B0;
    line-height: 1.6;
    margin: 0;
}

/* Cards de produto */
.product-card {
    min-width: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    color: inherit;
    text-decoration: none;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: #2a2a2a;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1a1a;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: #fff;
    transition: opacity 0.3s ease;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-instructor {
    font-size: 0.9rem;
    color: #AAAAAA;
    margin: 0;
}

/* Badge de acesso */
.access-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.access-badge i {
    font-size: 12px;
}

.access-badge-individual {
    background: rgba(34, 197, 94, 0.95);
    color: #000;
}

.access-badge-fullpass {
    background: rgba(254, 175, 80, 0.95);
    color: #000;
}

/* Barra de acoes do produto (estilo Netflix) */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background: #feaf50;
    color: #000;
    border: 2px solid #feaf50;
}

.action-btn.primary:hover {
    background: #ffbe6b;
    border-color: #ffbe6b;
    color: #000;
    text-decoration: none;
}

.action-btn.secondary {
    background: transparent;
    color: #feaf50;
    border: 2px solid #feaf50;
}

.action-btn.secondary:hover {
    background: rgba(254, 175, 80, 0.1);
    color: #feaf50;
    text-decoration: none;
}

.action-btn i {
    font-size: 14px;
}

/* Convite final */
.final-invite {
    text-align: center;
    margin-top: 48px;
}

.invite-text {
    font-size: 1.1rem;
    color: #AAAAAA;
    margin-bottom: 20px;
}

.invite-button {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #feaf50;
    border-radius: 8px;
    color: #feaf50;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.invite-button:hover {
    background: rgba(254, 175, 80, 0.1);
    color: #feaf50;
    text-decoration: none;
}

/* Secao de Favoritos */
.favorites-section {
    margin-bottom: 150px;
}

.favorites-card .video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.favorites-card .video-progress-bar {
    height: 100%;
    background: #feaf50;
    transition: width 0.3s ease;
}

/* Estados de filtro - Regra mais especifica */
.explore-container .wing-section.hidden,
.explore-container .journeys-section.hidden,
.explore-container .books-section.hidden,
.explore-container section.hidden,
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .explore-container {
        padding: 20px 15px;
    }

    .explore-title {
        font-size: 1.8rem;
    }

    .explore-subtitle {
        font-size: 1rem;
    }

    .intent-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
    }

    .carousel-controls {
        align-self: flex-end;
    }

    .card-jornada {
        min-width: 280px;
        padding: 24px;
    }

    .product-card {
        min-width: 240px;
    }

    .journeys-carousel,
    .products-carousel,
    .books-carousel {
        gap: 16px;
    }

    /* Barra de acoes escondida por padrao no mobile, aparece ao clicar */
    .product-actions {
        opacity: 0;
        transform: translateY(100%);
    }

    .product-actions.mobile-active {
        opacity: 1;
        transform: translateY(0);
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    /* Cursor pointer na imagem para indicar que e clicavel */
    .product-image-container {
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .intent-card {
        padding: 20px;
        font-size: 1rem;
    }

    .card-jornada {
        min-width: 260px;
        padding: 20px;
    }

    .jornada-title {
        font-size: 1.3rem;
    }

    .product-card {
        min-width: 220px;
    }

    .product-image-container {
        height: 140px;
    }
}

/* --- Estilos para a Biblioteca de Jornadas (NOVO) --- */

/* Mensagem de nenhum resultado */
.no-results-message {
    text-align: center;
    padding: 80px 20px;
    margin: 40px 0;
    background: #1a1a1a;
    border: 1px solid #303030;
    border-radius: 12px;
}

.no-results-message i {
    font-size: 4rem;
    color: #404040;
    margin-bottom: 24px;
    display: block;
}

.no-results-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.no-results-message p {
    font-size: 1rem;
    color: #AAAAAA;
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

.library-filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    align-items: end; /* Alinha os itens na base */
    margin-bottom: 32px;
}

.search-filter-group {
    grid-column: 1 / -1; /* Faz a busca ocupar a linha inteira */
}

.filter-search {
    width: 100%;
    padding: 10px 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.filter-search:focus {
    border-color: #feaf50;
    outline: none;
}

.filter-search::placeholder {
    color: #888;
}

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

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #AAAAAA;
}

.filter-select {
    padding: 10px 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: #feaf50;
    outline: none;
}

.library-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Estado de filtragem (para JS) */
.library-grid-container .product-card.hidden {
    display: none;
}

/* Responsivo para biblioteca */
@media (max-width: 768px) {
    .library-filters-container {
        flex-direction: column;
        gap: 16px;
    }

    .filter-select {
        min-width: 100%;
    }

    .library-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .library-grid-container {
        grid-template-columns: 1fr;
    }
}

/* --- Estilos para Paginacao Serena (Load More) --- */

.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #303030;
}

.load-more-btn {
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #404040;
    border-radius: 8px;
    color: #AAAAAA;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.load-more-btn:hover {
    border-color: #feaf50;
    color: #feaf50;
    background: rgba(254, 175, 80, 0.05);
}

.load-more-btn:active {
    transform: scale(0.98);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #303030;
    color: #666;
}

.load-more-btn:disabled:hover {
    border-color: #303030;
    color: #666;
    background: transparent;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.products-count-info {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin: 0;
}

.products-count-info span {
    font-weight: 600;
    color: #AAAAAA;
}

/* Animacao de fade-in para produtos carregados dinamicamente */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsivo para load more */
@media (max-width: 768px) {
    .load-more-container {
        margin-top: 32px;
        padding-top: 24px;
    }

    .load-more-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 24px;
    }

    .products-count-info {
        font-size: 0.85rem;
    }
}

/* ================================================
   Estilos para o Mundo das Ideias (NOVO)
   ================================================ */

.section-divider {
    border: 0;
    border-top: 1px solid #404040;
    margin: 80px 0;
}

.subsection {
    margin-bottom: 48px;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
}

.ideas-carousel {
    display: flex;
    gap: 24px;
}

/* Card Editorial - Nova abordagem com imagem como fundo texturizado */
.idea-card.editorial {
    min-width: 350px; /* Cards um pouco mais largos */
    height: 240px; /* Altura aumentada para acomodar texto */
    border-radius: 12px;
    overflow: hidden;
    position: relative; /* Contexto para posicionamento absoluto */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    padding: 24px 28px; /* Padding reduzido para mais espaço */
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.idea-card.editorial:hover {
    border-color: #feaf50;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* Card com acesso - borda iluminada */
.idea-card.editorial.has-access {
    border: 2px solid #feaf50;
    box-shadow: 0 0 20px rgba(254, 175, 80, 0.3);
}

.idea-card.editorial.has-access:hover {
    border-color: #feaf50;
    box-shadow: 0 0 30px rgba(254, 175, 80, 0.5), 0 12px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.idea-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.idea-card-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.4); /* A mágica: desfoca e escurece */
    transition: filter 0.3s ease;
}

.idea-card.editorial:hover .idea-card-background img {
    filter: blur(8px) brightness(0.5); /* Leve iluminação no hover */
}

.idea-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Overlay adicional para contraste */
    z-index: 2;
}

.idea-card-content {
    position: relative; /* Para ficar acima do fundo e overlay */
    z-index: 3;
    text-align: center;
    max-height: 160px; /* Limita altura do conteúdo */
    overflow: hidden; /* Esconde overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.idea-card-title {
    font-family: Georgia, 'Times New Roman', serif; /* Fonte editorial */
    font-size: 1.35rem; /* Reduzido de 1.6rem */
    font-weight: 600;
    line-height: 1.3; /* Reduzido de 1.4 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); /* Legibilidade */
    margin-bottom: 10px;
    color: #fff;

    /* Truncação com ellipsis */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a 3 linhas */
    -webkit-box-orient: vertical;
}

.idea-card-source {
    font-size: 0.8rem; /* Reduzido de 0.9rem */
    color: #CCCCCC;
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.idea-card-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    opacity: 0; /* Escondido por padrão */
    transition: opacity 0.3s ease;
}

.idea-card.editorial:hover .idea-card-footer {
    opacity: 1; /* Aparece no hover */
}

.idea-card-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: #feaf50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Estado de filtragem para JS */
.ideas-carousel .idea-card.hidden {
    display: none;
}

/* ================================================
   Estilos para Exploração por Temas
   ================================================ */

.theme-explorer {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #404040;
}

.theme-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.theme-chip {
    display: inline-block;
    padding: 10px 20px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 20px;
    color: #AAAAAA;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.theme-chip:hover {
    background: #333;
    border-color: #feaf50;
    color: #feaf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 175, 80, 0.2);
    text-decoration: none;
}

.theme-chip:active {
    transform: translateY(0);
}

/* ================================================
   Página de Resultados por Tema
   ================================================ */

.results-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.empty-state-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 1.1rem;
    background: #1a1a1a;
    border: 1px solid #303030;
    border-radius: 12px;
}

/* Responsivo para exploração de temas */
@media (max-width: 768px) {
    .theme-grid {
        gap: 10px;
    }

    .theme-chip {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .results-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .theme-chip {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* ================================================
   Seção "Explore por Temas" na Homepage
   ================================================ */

.explore-by-themes-section {
    margin-bottom: 4rem; /* Espaçamento maior abaixo da seção */
}

.explore-by-themes-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Estilo especial para o chip "Ver todos os temas" */
.all-themes-chip {
    border-style: dashed;
    color: #AAAAAA;
}

.all-themes-chip:hover {
    border-style: dashed;
    border-color: #feaf50;
    color: #feaf50;
}

/* Responsivo para homepage */
@media (max-width: 768px) {
    .explore-by-themes-section h2 {
        font-size: 1.5rem;
    }
}

/* ================================================
   Botão "Sortear Novas" (Reshuffle Ideas)
   ================================================ */

.reshuffle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #feaf50;
    border-radius: 8px;
    color: #feaf50;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 16px;
}

.reshuffle-btn:hover {
    background: rgba(254, 175, 80, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 175, 80, 0.2);
}

.reshuffle-btn:active {
    transform: translateY(0);
}

.reshuffle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.reshuffle-btn i {
    font-size: 1rem;
}

/* Responsivo para botão reshuffle */
@media (max-width: 768px) {
    /* Fazer subsection-header empilhar verticalmente */
    .subsection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Botão reshuffle: apenas ícone, sem texto, mesmo tamanho dos botões de navegação */
    .reshuffle-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        margin-right: 8px;
        border-radius: 6px;
        justify-content: center;
        font-size: 0; /* Esconde o texto mas mantém o ícone */
    }

    .reshuffle-btn i {
        font-size: 16px;
        margin: 0;
    }

    /* Garantir que os controles do carrossel fiquem alinhados */
    .subsection-header .carousel-controls {
        align-self: flex-end;
    }

    /* Reduzir tamanho dos cards de ideias em 40% (60% do tamanho original) */
    .idea-card.editorial {
        min-width: 210px;
        height: 144px;
        border-radius: 7px;
        padding: 14px 17px;
    }

    .idea-card-content {
        max-height: 96px; /* 60% de 160px */
    }

    .idea-card-title {
        font-size: 0.81rem; /* 60% de 1.35rem */
        margin-bottom: 6px; /* 60% de 10px */
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }

    .idea-card-source {
        font-size: 0.48rem; /* 60% de 0.8rem */
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    .idea-card-footer {
        bottom: 14px; /* 60% de 24px */
    }

    .idea-card-action {
        font-size: 0.54rem; /* 60% de 0.9rem */
        gap: 5px; /* 60% de 8px */
    }

    /* Ajustar gap do carrossel de ideias */
    .ideas-carousel {
        gap: 14px; /* 60% de 24px */
    }
}

/* ================================================
   Estilos para o Círculo de Instrutores (NOVO)
   ================================================ */

.instructors-carousel {
    display: flex;
    gap: 32px;
}

.instructor-card {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #AAAAAA;
    transition: all 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-4px);
    color: #feaf50;
    text-decoration: none;
}

.instructor-photo-container {
    width: 140px;
    height: 140px;
    border-radius: 50%; /* Formato circular */
    border: 3px solid #333;
    overflow: hidden; /* Esconde o overflow da imagem ampliada */
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.instructor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25); /* Zoom interno de 25% */
    transition: transform 0.3s ease;
}

.instructor-card:hover .instructor-photo-container {
    border-color: #feaf50;
}

.instructor-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 3px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 3rem;
    transition: border-color 0.3s ease;
}

.instructor-card:hover .instructor-photo-placeholder {
    border-color: #feaf50;
}

.instructor-name {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Responsivo para carrossel de instrutores */
@media (max-width: 768px) {
    .instructors-carousel {
        gap: 24px;
    }

    .instructor-card {
        min-width: 120px;
        gap: 12px;
    }

    .instructor-photo-container,
    .instructor-photo-placeholder {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }

    .instructor-photo {
        transform: scale(1.25); /* Manter zoom interno no mobile */
    }

    .instructor-photo-placeholder i {
        font-size: 2rem;
    }

    .instructor-name {
        font-size: 0.9rem;
    }
}