/* Estilos próprios do rebuild PHP — complementam (não substituem) o CSS
   original do tema Tutor Starter / WooCommerce / Tutor LMS, que continua
   sendo carregado a partir de wp-content/. Aqui só ficam o layout de
   header/footer/grid e pequenos ajustes que na versão WordPress vinham do
   Elementor (removido neste rebuild). */

:root {
    --mc-dark: #0b0f19;
    --mc-dark-2: #141b2d;
    --mc-primary: #7c3aed;
    --mc-primary-dark: #6425d0;
    --mc-text-muted: #9aa3b2;
    --mc-border: #e5e7eb;
}

* { box-sizing: border-box; }

body.max-cursos {
    font-family: 'Sora', Arial, sans-serif;
    margin: 0;
    background: #f6f7fb;
    color: #1b1f2a;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
    background: var(--mc-dark);
    color: #fff;
}
.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.site-header__logo img { height: 44px; width: auto; }
.site-header__search {
    flex: 1 1 260px;
    display: flex;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    overflow: hidden;
}
.site-header__search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 10px 14px;
    font-family: inherit;
    outline: none;
}
.site-header__search input::placeholder { color: var(--mc-text-muted); }
.site-header__search button {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
}
.site-header__nav .elementor-nav-menu {
    display: flex;
    gap: 20px;
}
.site-header__nav .elementor-item {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.elementor-menu-cart__toggle_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--mc-primary);
    border-radius: 8px;
    padding: 10px 14px;
    position: relative;
}
.elementor-button-icon-qty {
    background: #fff;
    color: var(--mc-primary-dark);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Destaque do carrinho ao adicionar um curso (header + menu inferior mobile) */
@keyframes cart-pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .6); }
    50% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
}
@keyframes cart-pulse-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}
.elementor-menu-cart__toggle_button.cart-pulse,
.max-footer-nav .cart.cart-pulse {
    animation: cart-pulse-ring .55s ease-out 3;
}
.cart-pulse .elementor-button-icon-qty,
.cart-pulse .cart-count {
    animation: cart-pulse-pop .55s ease-in-out 3;
}
.site-header__aluno-btn {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    white-space: nowrap;
}
.site-header__aluno-btn:hover { border-color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .site-header__aluno-btn { display: none; } }

/* Hero */
.hero {
    background: #060024 url('../wp-content/uploads/2025/05/bg-ultra-wide.webp') right center / cover no-repeat;
    color: #fff;
    padding: 90px 40px;
    min-height: 620px;
    display: flex;
    align-items: center;
}
.hero__inner { max-width: 540px; text-align: left; }
.hero h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 800;
}
.hero h2 {
    color: var(--mc-text-muted);
    font-size: 17px;
    font-weight: 400;
    max-width: 500px;
    margin: 0 0 28px;
}
.hero p {
    color: var(--mc-text-muted);
    max-width: 620px;
    margin: 0 0 24px;
}
@media (max-width: 1366px) {
    .hero {
        background-image: url('../wp-content/uploads/2025/05/tablet-bg.webp');
        background-position: top center;
        min-height: 420px;
        padding: 150px 40px 50px;
        align-items: flex-start;
    }
}
@media (max-width: 640px) {
    .hero {
        background-image: url('../wp-content/uploads/2025/05/mobile-bg.webp');
        background-position: top center;
        min-height: 360px;
        padding: 48px 20px;
        text-align: center;
        justify-content: center;
    }
    .hero__inner { max-width: 100%; text-align: center; margin: 0 auto; }
    .hero h2 { margin: 0 auto 28px; }
}

/* Badges abaixo do hero */
.hero-badges { background: var(--mc-dark); padding: 48px 20px; }
.hero__badges {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hero__badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    color: #fff;
}
.hero__badge-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(124, 58, 237, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a991f3;
    font-size: 17px;
}
.hero__badge h3 { font-size: 15px; margin: 0 0 4px; }
.hero__badge p { font-size: 13px; color: var(--mc-text-muted); margin: 0; max-width: none; }
@media (max-width: 900px) {
    .hero__badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .hero h1 { font-size: 30px; }
    .hero__badges { grid-template-columns: 1fr; }
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mc-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}
.btn:hover { background: var(--mc-primary-dark); }
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
}

/* Section headings */
.section { padding: 48px 20px; }
.section__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

/* Course grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.tutor-course-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tutor-course-thumbnail img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.tutor-card-body { padding: 16px; }
.tutor-course-name a { font-size: 16px; font-weight: 600; color: #1b1f2a; }
.tutor-card-footer { padding: 0 16px 16px; }
.list-item-price del { color: var(--mc-text-muted); font-size: 13px; margin-right: 6px; }
.list-item-price ins { text-decoration: none; font-weight: 700; font-size: 17px; }

/* Cabeçalho do carrossel de destaques */
.cabecalho-carrossel {
    max-width: 1200px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.badge-new {
    background: rgba(124, 58, 237, .12);
    color: var(--mc-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.ver-todos { font-size: 14px; font-weight: 600; color: var(--mc-primary); }

/* Como Funciona */
.section--dark {
    background: var(--mc-dark);
    color: #fff;
}
.tag-como-funciona, .tag-feedbacks {
    text-align: center;
    color: var(--mc-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 8px;
}
.section--dark .section__title { color: #fff; }
.como-funciona-grid {
    max-width: 1100px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.como-funciona-item img { width: 96px; height: 96px; margin: 0 auto 16px; object-fit: contain; }
.como-funciona-item h3 { font-size: 17px; margin: 0 0 8px; }
.como-funciona-item p { font-size: 14px; color: var(--mc-text-muted); line-height: 1.6; }
.como-funciona-item .step-number { color: var(--mc-primary); font-weight: 700; margin-right: 4px; }
@media (max-width: 800px) {
    .como-funciona-grid { grid-template-columns: 1fr; }
}

/* Depoimentos */
.depoimentos-scroll {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 4px 20px 12px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.depoimento-card {
    scroll-snap-align: start;
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.depoimento-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.depoimento-card__header img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.depoimento-card__header strong { display: block; font-size: 14px; }
.depoimento-card__stars { color: #f5a623; font-size: 12px; }
.depoimento-card p { font-size: 14px; line-height: 1.6; color: #4a5262; margin: 0; }

/* FAQ */
.faq-accordion { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--mc-primary); transition: transform .2s; }
.faq-item[open] summary i { transform: rotate(90deg); }
.faq-item p { margin: 12px 0 0; color: var(--mc-text-muted); font-size: 14px; line-height: 1.6; }

/* Filtro / busca da página de cursos */
.filtros {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filtros select, .filtros input[type="search"] {
    padding: 10px 12px;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    font-family: inherit;
}
.paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}
.paginacao a, .paginacao span {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--mc-border);
    background: #fff;
}
.paginacao .ativo { background: var(--mc-primary); color: #fff; border-color: var(--mc-primary); }

/* Página de curso individual */
.curso-page { max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; }
.curso-page .tutor-row { display: flex; gap: 32px; flex-wrap: wrap; }
.curso-page main { flex: 2 1 560px; min-width: 0; }
.curso-page aside { flex: 1 1 300px; }
.curso-page__imagem img { border-radius: 12px; width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 24px; }
.tutor-course-details-content { line-height: 1.7; }
.tutor-course-details-content h5 { margin-top: 24px; }
.tutor-course-details-widget { margin-top: 24px; }
.tutor-course-details-widget-list li { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.tutor-course-details-widget-list li::before { content: '✓'; color: var(--mc-primary); font-weight: 700; }

/* Currículo */
.mcp-course-content { margin: 30px 0; border: 1px solid var(--mc-border); border-radius: 10px; overflow: hidden; }
.mcp-course-content .mh { display: flex; align-items: center; gap: 12px; padding: 16px; background: #f6f7fb; }
.mcp-course-content .mb { display: flex; gap: 16px; padding: 12px 16px; font-size: 13px; color: var(--mc-text-muted); flex-wrap: wrap; }
.mcp-course-content .ml { padding: 0 16px 16px; }
.mcp-course-content .mm { border-top: 1px solid var(--mc-border); }
.mcp-course-content .mmb { width: 100%; text-align: left; background: none; border: 0; padding: 14px 0; cursor: pointer; display: flex; align-items: center; gap: 12px; font-family: inherit; }
.mcp-course-content .mna { margin: 0; font-weight: 600; }
.mcp-course-content .mme { font-size: 12px; color: var(--mc-text-muted); }
.mcp-course-content .mbd { display: none; padding-bottom: 12px; }
.mcp-course-content .mbd.open { display: block; }
.mcp-course-content .mle { display: flex; justify-content: space-between; padding: 8px 0 8px 32px; font-size: 14px; border-top: 1px dashed var(--mc-border); }

/* Sidebar de compra */
.tutor-sidebar-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); position: sticky; top: 20px; }
.tutor-course-sidebar-card-pricing .price-atual { font-size: 28px; font-weight: 800; }
.tutor-course-sidebar-card-pricing del { color: var(--mc-text-muted); margin-left: 8px; }

/* Footer */
.site-footer { background: var(--mc-dark); color: #fff; margin-top: 48px; }
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
.site-footer h2.elementor-heading-title { font-size: 15px; margin: 0 0 16px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { color: var(--mc-text-muted); font-size: 14px; }
.site-footer__copy { font-size: 13px; line-height: 1.5; color: var(--mc-text-muted); margin: 20px 0 0; }
.elementor-social-icons-wrapper { display: flex; gap: 12px; }
.elementor-social-icon { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.max-footer-nav { display: none; }

/* Carrinho */
.carrinho-page { max-width: 1100px; margin: 0 auto; padding: 40px 20px 64px; }
.cart-page-heading { font-size: 24px; margin-bottom: 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 16px;
}
.cart-item__image { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item__title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item__title:hover { color: var(--mc-primary); }
.cart-item__price { font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.cart-item__remove {
    flex-shrink: 0;
    font-size: 13px;
    color: #d33;
    border: 1px solid #d33;
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.cart-item__remove:hover { background: #d33; color: #fff; }

.cart-summary {
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
}
.cart-summary h2 { font-size: 18px; margin: 0 0 16px; }
.cart-summary__row { display: flex; justify-content: space-between; padding: 10px 0; }
.cart-summary__row--total { border-top: 1px solid var(--mc-border); margin-top: 4px; font-size: 18px; font-weight: 800; }
.cart-summary .checkout-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 20px; background: #25D366; }
.cart-summary .checkout-button:hover { background: #1ea952; }

@media (max-width: 760px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { flex-wrap: wrap; }
    .cart-item__title { flex: 1 1 100%; order: 1; -webkit-line-clamp: unset; }
    .cart-item__image { order: 0; }
    .cart-item__price { order: 2; }
    .cart-item__remove { order: 3; margin-left: auto; }
}

@media (max-width: 900px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-header__nav { display: none; }
    .curso-page .tutor-row { flex-direction: column; }
    body.max-cursos { padding-bottom: 56px; }
    .max-footer-nav {
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--mc-dark);
        padding: 8px 0;
        z-index: 50;
    }
    .max-footer-nav a { color: #fff; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
    .max-footer-nav .cart-count {
        position: absolute; top: -4px; right: 6px;
        background: var(--mc-primary); color: #fff; border-radius: 999px;
        font-size: 10px; min-width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
    }
}

/* Área do Aluno (login) */
.aluno-body { background: #f4f5f7; }
.aluno-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.aluno-login__card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(20, 20, 40, .08);
    padding: 40px 36px;
    text-align: center;
}
.aluno-login__card h1 { font-size: 24px; font-weight: 800; color: #14162b; margin: 0 0 12px; }
.aluno-login__subtitle { color: var(--mc-text-muted); font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.aluno-login__aviso {
    text-align: left;
    background: #fdf3e2;
    border-left: 4px solid #f39c12;
    color: #8a5a10;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}
.aluno-login__form { text-align: left; display: flex; flex-direction: column; }
.aluno-login__form label { font-size: 13px; font-weight: 700; color: #14162b; margin-bottom: 6px; }
.aluno-login__form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 18px;
}
.aluno-login__form input:focus { outline: none; border-color: var(--mc-primary); }
.aluno-login__btn {
    width: 100%;
    background: #1950d1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.aluno-login__btn:hover { background: #123ea3; }
.aluno-login__footer { font-size: 12px; color: var(--mc-text-muted); margin: 20px 0 8px; }
.aluno-login__voltar { font-size: 13px; color: var(--mc-primary); }
.aluno-login__voltar:hover { text-decoration: underline; }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    z-index: 999;
    transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 640px) {
    .whatsapp-float { right: 16px; bottom: 72px; width: 52px; height: 52px; font-size: 24px; }
}
