/* ═══════════════════════════════════════════════════════════════
   EduPress Pro — Public Styles
   Modern, clean design with accent color support
   ═══════════════════════════════════════════════════════════════ */

:root {
    --epp-accent: #6366f1;
    --epp-radius: 12px;
    --epp-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --epp-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.1);
    --epp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --epp-text: #1e293b;
    --epp-text-light: #64748b;
    --epp-bg: #ffffff;
    --epp-bg-soft: #f8fafc;
    --epp-border: #e2e8f0;
}

/* ─────────────────────────────────────────────
   GRID & CAROUSEL CONTAINER
   ───────────────────────────────────────────── */
.epp-container {
    font-family: var(--epp-font);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Grid */
.epp-grid {
    display: grid;
    gap: 24px;
}
.epp-grid.epp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.epp-grid.epp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.epp-grid.epp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
    .epp-grid.epp-cols-3,
    .epp-grid.epp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .epp-grid { grid-template-columns: 1fr !important; }
}

/* Carousel */
.epp-carousel-wrap {
    position: relative;
    padding: 0 48px;
}
.epp-carousel {
    display: flex;
    gap: 24px;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.epp-carousel .epp-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
}
.epp-carousel-wrap[data-columns="2"] .epp-carousel .epp-card {
    flex: 0 0 calc(50% - 12px);
}
.epp-carousel-wrap[data-columns="4"] .epp-carousel .epp-card {
    flex: 0 0 calc(25% - 18px);
}
@media (max-width: 960px) {
    .epp-carousel .epp-card { flex: 0 0 calc(50% - 12px) !important; }
}
@media (max-width: 600px) {
    .epp-carousel-wrap { padding: 0 36px; }
    .epp-carousel .epp-card { flex: 0 0 100% !important; }
}

/* Carousel Buttons */
.epp-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--epp-border);
    background: var(--epp-bg);
    color: var(--epp-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--epp-shadow);
    transition: all 0.2s;
}
.epp-carousel-btn:hover {
    background: var(--epp-accent);
    color: #fff;
    border-color: var(--epp-accent);
}
.epp-carousel-prev { left: 0; }
.epp-carousel-next { right: 0; }

.epp-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.epp-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--epp-border);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.epp-carousel-dot.active {
    background: var(--epp-accent);
    transform: scale(1.3);
}

/* Empty state */
.epp-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--epp-text-light);
    font-family: var(--epp-font);
}

/* ─────────────────────────────────────────────
   CARD
   ───────────────────────────────────────────── */
.epp-card {
    display: flex;
    flex-direction: column;
    background: var(--epp-bg);
    border-radius: var(--epp-radius);
    overflow: hidden;
    box-shadow: var(--epp-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--epp-border);
}
.epp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--epp-shadow-hover);
}
.epp-card--ended {
    opacity: 0.7;
}
.epp-card--ended:hover {
    transform: none;
    opacity: 0.85;
}

/* Card Image */
.epp-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--epp-bg-soft);
}
.epp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.epp-card:hover .epp-card__image img {
    transform: scale(1.05);
}

/* Badges */
.epp-card__badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}
.epp-card__badge--featured {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}
.epp-card__badge--category {
    top: 10px;
    right: 10px;
    background: var(--epp-accent);
    color: #fff;
}
.epp-card__badge--status {
    bottom: 10px;
    left: 10px;
}
.epp-card__badge--upcoming {
    background: rgba(255,255,255,0.95);
    color: #1e40af;
}
.epp-card__badge--active {
    background: rgba(22,163,74,0.9);
    color: #fff;
}

/* Card Body */
.epp-card__body {
    flex: 1;
    padding: 16px 18px 12px;
}
.epp-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--epp-text);
}
.epp-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.epp-card__title a:hover {
    color: var(--epp-accent);
}
.epp-card__subtitle {
    font-size: 13px;
    color: var(--epp-text-light);
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta items */
.epp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.epp-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--epp-text-light);
}
.epp-card__meta-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.epp-card__instructor,
.epp-card__cert {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--epp-text-light);
    margin-bottom: 6px;
}
.epp-card__instructor svg,
.epp-card__cert svg {
    opacity: 0.5;
    flex-shrink: 0;
}

/* Cupos bar */
.epp-card__cupos {
    margin-top: 8px;
}
.epp-card__cupos-bar {
    height: 4px;
    background: var(--epp-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.epp-card__cupos-fill {
    height: 100%;
    background: var(--epp-accent);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.epp-card__cupos-text {
    font-size: 11px;
    color: var(--epp-text-light);
}

/* Card Footer */
.epp-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--epp-border);
    gap: 12px;
}

.epp-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.epp-card__price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--epp-text);
}
.epp-card__price-old {
    font-size: 13px;
    color: var(--epp-text-light);
    text-decoration: line-through;
}
.epp-card__price-free {
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
}
.epp-card__price-consult {
    font-size: 14px;
    color: var(--epp-text-light);
    font-style: italic;
}

.epp-card__cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--epp-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.epp-card__cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.epp-card__cta--disabled {
    background: var(--epp-border);
    color: var(--epp-text-light) !important;
    cursor: default;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   SINGLE EVENT PAGE
   ───────────────────────────────────────────── */
.epp-single {
    font-family: var(--epp-font);
    color: var(--epp-text);
    line-height: 1.6;
}

/* Hero */
.epp-single__hero {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    position: relative;
}
.epp-single__hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}
.epp-single__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    color: #fff;
}
.epp-single__tag {
    display: inline-block;
    background: var(--epp-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.epp-single__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
    color: #fff;
}
.epp-single__subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin: 0 0 16px;
}
.epp-single__hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
}
.epp-single__hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Layout */
.epp-single__layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    padding: 40px 20px;
}
@media (max-width: 900px) {
    .epp-single__layout {
        grid-template-columns: 1fr;
    }
}

/* Main */
.epp-single__section {
    margin-bottom: 36px;
}
.epp-single__section h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--epp-accent);
    color: var(--epp-text);
}
.epp-single__content {
    font-size: 15px;
    line-height: 1.7;
}
.epp-single__content p {
    margin-bottom: 14px;
}

/* Video */
.epp-single__video {
    border-radius: var(--epp-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
}
.epp-single__video iframe {
    width: 100%;
    height: 100%;
}

/* Temario */
.epp-single__modulo {
    border: 1px solid var(--epp-border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.epp-single__modulo:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.epp-single__modulo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    background: var(--epp-bg-soft);
    transition: background 0.2s;
}
.epp-single__modulo-header:hover {
    background: #f1f5f9;
}
.epp-single__modulo-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--epp-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.epp-single__modulo-header h3 {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--epp-text);
}
.epp-single__modulo-dur {
    font-size: 12px;
    color: var(--epp-text-light);
    background: var(--epp-bg);
    padding: 2px 10px;
    border-radius: 20px;
}
.epp-single__modulo-arrow {
    transition: transform 0.3s;
    color: var(--epp-text-light);
    flex-shrink: 0;
}
.epp-single__modulo.open .epp-single__modulo-arrow {
    transform: rotate(180deg);
}
.epp-single__modulo-body {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.epp-single__modulo.open .epp-single__modulo-body {
    padding: 14px 18px;
    max-height: 500px;
}
.epp-single__modulo-body p {
    margin: 0;
    font-size: 14px;
    color: var(--epp-text-light);
    line-height: 1.6;
}

/* Instructor */
.epp-single__instructor {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--epp-bg-soft);
    border-radius: var(--epp-radius);
}
.epp-single__instructor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--epp-accent);
}
.epp-single__instructor h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
}
.epp-single__instructor p {
    font-size: 14px;
    color: var(--epp-text-light);
    margin: 0 0 8px;
}
.epp-single__instructor-link {
    font-size: 13px;
    color: var(--epp-accent);
    text-decoration: none;
    font-weight: 600;
}
.epp-single__instructor-link:hover {
    text-decoration: underline;
}

/* Certificado */
.epp-single__cert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: var(--epp-radius);
}
.epp-single__cert-icon {
    color: #ca8a04;
    flex-shrink: 0;
}
.epp-single__cert h3 {
    margin: 0 0 4px;
    font-size: 16px;
}
.epp-single__cert p {
    margin: 0;
    font-size: 14px;
    color: var(--epp-text-light);
}
.epp-single__cert-preview {
    margin-top: 16px;
    border-radius: var(--epp-radius);
    overflow: hidden;
    box-shadow: var(--epp-shadow);
}
.epp-single__cert-preview img {
    width: 100%;
    display: block;
}

/* ─── Sidebar ─── */
.epp-single__sidebar-card {
    position: sticky;
    top: 100px;
    background: var(--epp-bg);
    border: 1px solid var(--epp-border);
    border-radius: var(--epp-radius);
    padding: 24px;
    box-shadow: var(--epp-shadow);
}

.epp-single__price-box {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--epp-border);
}
.epp-single__price-old {
    font-size: 16px;
    color: var(--epp-text-light);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}
.epp-single__price-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--epp-text);
}
.epp-single__price-free {
    color: #16a34a;
}

.epp-single__early {
    margin-top: 10px;
    padding: 10px;
    background: #fef2f2;
    border-radius: 8px;
    font-size: 13px;
}
.epp-single__early-label {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.epp-single__early-price {
    font-size: 20px;
    font-weight: 800;
    color: #dc2626;
    display: block;
}
.epp-single__early-until {
    font-size: 12px;
    color: var(--epp-text-light);
}

.epp-single__group-price {
    margin-top: 8px;
    font-size: 13px;
    color: var(--epp-text-light);
}

.epp-single__cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--epp-accent);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.2s;
    margin-bottom: 16px;
    cursor: pointer;
    border: none;
}
.epp-single__cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.epp-single__cta-btn--disabled {
    background: var(--epp-border);
    color: var(--epp-text-light) !important;
    cursor: default;
    pointer-events: none;
}

.epp-single__cupos-info {
    text-align: center;
    font-size: 13px;
    margin-bottom: 16px;
    color: var(--epp-text-light);
}
.epp-single__cupos-full {
    color: #dc2626;
    font-weight: 700;
}

.epp-single__info-list {
    border-top: 1px solid var(--epp-border);
    padding-top: 16px;
}
.epp-single__info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}
.epp-single__info-item:last-child {
    border-bottom: none;
}
.epp-single__info-label {
    color: var(--epp-text-light);
    font-weight: 500;
}

.epp-single__includes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--epp-border);
}
.epp-single__includes h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}
.epp-single__includes p {
    font-size: 13px;
    color: var(--epp-text-light);
    margin: 0;
    line-height: 1.6;
}

/* ─── Load More Button ─── */
.epp-load-more-wrap {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
}
.epp-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--epp-bg);
    color: var(--epp-text);
    font-family: var(--epp-font);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--epp-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}
.epp-load-more:hover {
    border-color: var(--epp-text);
    box-shadow: var(--epp-shadow);
    transform: translateY(-1px);
}
.epp-load-more.epp-loading {
    pointer-events: none;
    opacity: 0.7;
}
.epp-load-more__spinner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.epp-load-more__count {
    margin-top: 12px;
    font-size: 13px;
    color: var(--epp-text-light);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .epp-single__hero-overlay { padding: 24px 16px; min-height: 280px; }
    .epp-single__title { font-size: 24px; }
    .epp-single__hero-meta { gap: 12px; font-size: 13px; }
    .epp-single__layout { padding: 24px 16px; gap: 24px; }
    .epp-single__instructor { flex-direction: column; align-items: center; text-align: center; }
}
