/* ====================================================
   EXPLORAR LIÇÕES PAGE — PREMIUM STYLES
   ==================================================== */

:root {
    --ebd-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ebd-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ebd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --ebd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --ebd-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ebd360-explorar-page {
    background: #F8FAFC;
    min-height: 100vh;
    font-family: var(--ebd-font-sans);
    color: var(--ebd-primary);
    -webkit-font-smoothing: antialiased;
}

/* ─── HERO COMPACT ─────────────────────────────────── */
.ebd360-explorar-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 56px 0;
    color: #fff;
    overflow: hidden;
}
.ebd360-explorar-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.06), transparent 50%), linear-gradient(180deg, #1a2634 0%, #0f172a 100%);
    z-index: 1;
}
.ebd360-explorar-hero__container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.ebd360-explorar-breadcrumbs {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.ebd360-explorar-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
.ebd360-explorar-breadcrumbs a:hover {
    color: var(--ebd-accent);
}
.ebd360-explorar-hero__title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}
.ebd360-explorar-hero__subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    max-width: 640px;
    line-height: 1.7;
}

/* ─── FILTERS & SEARCH BAR ────────────────────────── */
.ebd360-explorar-filters-bar {
    background: #fff;
    border-bottom: none;
    padding: 18px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.ebd360-explorar-filters-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ebd360-explorar-search-row {
    display: flex;
    gap: 14px;
    align-items: center;
}
.ebd360-explorar-search-input-wrap {
    position: relative;
    flex: 1;
}
.ebd360-explorar-search-input-wrap .dashicons-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ebd360-explorar-search-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ebd-primary);
    background: #F8FAFC;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}
.ebd360-explorar-search-input-wrap input:focus {
    outline: none;
    border-color: var(--ebd-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}
.ebd360-explorar-search-input-wrap input::placeholder {
    color: #94a3b8;
}

/* Grid / Timeline Toggle Buttons */
.ebd360-view-toggle {
    display: flex;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #F8FAFC;
    height: 44px;
    padding: 3px;
    box-sizing: border-box;
}
.ebd360-view-toggle-btn {
    background: none;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 7px;
    transition: all 0.2s ease;
}
.ebd360-view-toggle-btn.active {
    background: var(--ebd-primary);
    color: #fff;
    box-shadow: var(--ebd-shadow-sm);
}
.ebd360-view-toggle-btn:not(.active):hover {
    color: var(--ebd-primary);
    background: #f1f5f9;
}
.ebd360-view-toggle-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

/* ─── CUSTOM DROPDOWNS ────────────────────────────── */
.ebd360-explorar-selects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.ebd360-custom-select {
    position: relative;
    flex: 1;
    min-width: 160px;
    user-select: none;
}
.ebd360-custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ebd360-custom-select.active .ebd360-custom-select-trigger,
.ebd360-custom-select-trigger:hover {
    border-color: var(--ebd-accent);
    color: var(--ebd-primary);
}
.ebd360-custom-select-trigger .dashicons-arrow-down-alt2 {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}
.ebd360-custom-select.active .ebd360-custom-select-trigger .dashicons-arrow-down-alt2 {
    transform: rotate(180deg);
    color: var(--ebd-accent);
}
.ebd360-custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    z-index: 999;
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ebd360-custom-select.active .ebd360-custom-select-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ebd360-custom-option {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ebd360-custom-option:hover {
    background: #F8FAFC;
    color: var(--ebd-primary);
}
.ebd360-custom-option.selected {
    background: rgba(197, 160, 89, 0.08);
    color: #A08040;
    font-weight: 700;
}
.ebd360-custom-option.selected::after {
    content: "\f147";
    font-family: dashicons;
    font-size: 14px;
}

/* Hide native selects */
.ebd360-explorar-select-wrap select {
    display: none;
}

/* ─── ESTATÍSTICAS RÁPIDAS ────────────────────────── */
.ebd360-explorar-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.ebd360-explorar-stat-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--ebd-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ebd360-explorar-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--ebd-shadow-md);
}
.ebd360-explorar-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ebd360-explorar-stat-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.ebd360-explorar-stat-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ebd360-explorar-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--ebd-primary);
    line-height: 1.1;
}
.ebd360-explorar-stat-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── MAIN LAYOUT (GRID PRINCIPAL) ────────────────── */
.ebd360-explorar-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 56px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}
.ebd360-explorar-main {
    min-width: 0;
}
.ebd360-explorar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ─── CARD TRIMESTRE ATUAL (EDITORIAL HIGHLIGHT) ─── */
.ebd360-quarter-featured-card {
    background: linear-gradient(145deg, #0B1522 0%, #17273C 100%);
    border-radius: 18px;
    padding: 32px;
    color: #fff;
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.ebd360-quarter-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 85% 85%, rgba(197, 160, 89, 0.25) 0%, transparent 80%);
    z-index: 1;
}
.ebd360-quarter-featured-thumb {
    width: 130px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.15);
    transition: transform 0.4s ease;
}
.ebd360-quarter-featured-card:hover .ebd360-quarter-featured-thumb {
    transform: scale(1.03);
}
.ebd360-quarter-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ebd360-quarter-featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    justify-content: center;
}
.ebd360-quarter-tag {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #C5A059, #E8C47A);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(197,160,89,0.3);
}
.ebd360-quarter-featured-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.ebd360-quarter-featured-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 18px 0;
    line-height: 1.6;
}
.ebd360-quarter-featured-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 20px;
}
.ebd360-quarter-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ebd360-quarter-featured-meta .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}
.ebd360-quarter-featured-btn {
    background: linear-gradient(135deg, #C5A059, #E8C47A);
    border: none;
    color: #fff !important;
    align-self: flex-start;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(197,160,89,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ebd360-quarter-featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197,160,89,0.4);
    background: linear-gradient(135deg, #D4AF67, #F2D28E);
}

/* ─── GRID DE LIÇÕES ──────────────────────────────── */
.ebd360-explorar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

/* Card Refinements override */
.ebd-card--licao {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--ebd-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
}
.ebd-card--licao:hover {
    transform: translateY(-6px);
    box-shadow: var(--ebd-shadow-xl);
}
.ebd-card--licao .ebd-card__thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f8fafc;
}
.ebd-card--licao .ebd-card__thumb img {
    transition: transform 0.5s ease;
}
.ebd-card--licao:hover .ebd-card__thumb img {
    transform: scale(1.06);
}
.ebd-card--licao .ebd-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ebd-card--licao .ebd-h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ebd-primary);
    line-height: 1.4;
    margin: 0 0 10px 0;
}
.ebd-card--licao .ebd-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}
.ebd-card--licao .ebd-btn--outline {
    border-color: #e2e8f0;
    color: #475569;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 14px;
    transition: all 0.25s ease;
}
.ebd-card--licao:hover .ebd-btn--outline {
    background: var(--ebd-primary);
    color: #fff;
    border-color: var(--ebd-primary);
}

/* ─── SIDEBAR REFINEMENTS ────────────────────────── */
.ebd360-explorar-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--ebd-shadow-sm);
    margin-bottom: 0;
}
.ebd360-explorar-sidebar-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ebd-primary);
    margin: 0 0 16px 0;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 10px;
    letter-spacing: 0.2px;
}
.ebd360-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ebd360-sidebar-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}
.ebd360-sidebar-list-item a:hover {
    background: #F8FAFC;
    color: var(--ebd-primary);
}
.ebd360-sidebar-count {
    background: #F1F5F9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* latest list items */
.ebd360-sidebar-latest-item {
    transition: transform 0.25s ease;
}
.ebd360-sidebar-latest-item:hover {
    transform: translateX(4px);
}
.ebd360-sidebar-latest-item img {
    transition: transform 0.35s ease;
}
.ebd360-sidebar-latest-item:hover img {
    transform: scale(1.06);
}

/* ranking items */
.ebd360-ranking-list {
    gap: 14px;
}
.ebd360-ranking-item {
    padding: 4px 0;
    transition: transform 0.2s ease;
}
.ebd360-ranking-item:hover {
    transform: translateX(4px);
}
.ebd360-ranking-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}
.ebd360-ranking-item:hover .ebd360-ranking-title {
    color: var(--ebd-primary);
}

/* ─── TIMELINE (LINHA DO TEMPO) ────────────────────── */
.ebd360-timeline-container {
    position: relative;
    padding-left: 28px;
}
.ebd360-timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e2e8f0;
}
.ebd360-timeline-group {
    position: relative;
    margin-bottom: 36px;
}
.ebd360-timeline-group-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--ebd-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}
.ebd360-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ebd360-timeline-item {
    position: relative;
    padding-left: 12px;
}
.ebd360-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 26px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ebd-accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
    z-index: 2;
}
.ebd360-timeline-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    color: #C5A059;
    background: rgba(197, 160, 89, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.ebd360-timeline-content {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: var(--ebd-shadow-sm);
    transition: all 0.25s ease;
    border-left: 3px solid var(--ebd-accent);
}
.ebd360-timeline-content:hover {
    box-shadow: var(--ebd-shadow-md);
    transform: translateX(2px);
}
.ebd360-timeline-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}
.ebd360-timeline-content h4 a {
    color: var(--ebd-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.ebd360-timeline-content h4 a:hover {
    color: var(--ebd-accent);
}
.ebd360-timeline-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px 0;
    line-height: 1.6;
}
.ebd360-timeline-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* Fix sidebar lists browser default bullet points */
.ebd360-sidebar-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ebd360-sidebar-list-item {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ebd360-sidebar-list-item::before {
    display: none !important;
}


/* ─── PAGINATION ──────────────────────────────────── */
.ebd360-explorar-pagination {
    gap: 8px;
    margin-top: 24px;
}
.ebd360-explorar-pagination .page-btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
}
.ebd360-explorar-pagination .page-btn.active {
    box-shadow: 0 4px 12px rgba(197,160,89,0.3);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .ebd360-explorar-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ebd360-explorar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .ebd360-explorar-grid {
        grid-template-columns: 1fr;
    }
    .ebd360-explorar-stats-row {
        grid-template-columns: 1fr;
    }
}
