/*
Theme Name: QueroServiço Academy Theme
Theme URI: https://cursos.queroservico.com.br
Author: M.Matias (WhatsApp: +55 11 98801-5741)
Author URI: https://cursos.queroservico.com.br
Description: Tema minimalista premium em dark mode para o QueroServiço Academy LMS, padronizado com a linguagem visual de alta tecnologia do ecossistema QueroServiço (Plus Jakarta Sans, micro-interações, cards translúcidos e acentos cyan/azul).
Version: 2.0.0
License: Proprietária / Comercial Exclusiva (M.Matias wpp:11988015741)
Text Domain: qs-academy-theme
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES — Paleta Tecnológica QueroServiço
   ═══════════════════════════════════════════ */
:root {
    --bg-page: #07090e;
    --bg-surface: #0e131d;
    --bg-surface-elevated: #141b29;
    --bg-card: rgba(14, 19, 29, 0.75);
    --bg-card-hover: rgba(20, 27, 41, 0.95);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.14);
    --border-active: rgba(59, 130, 246, 0.4);
    
    --brand-primary: #2563eb;
    --brand-accent: #3b82f6;
    --brand-cyan: #06b6d4;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --brand-purple: #8b5cf6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);
}

/* ═══════════════════════════════════════════
   RESET & FUNDAMENTOS
   ═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════
   HEADER & NAVEGAÇÃO
   ═══════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 68px;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.brand-logo-wrapper {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e131d;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.brand-logo:hover .brand-logo-wrapper {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

.brand-logo-gif {
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
    border-radius: 9px;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
}

.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    align-self: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-nav-ghost {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.btn-nav-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════
   HERO SECTION MINIMALISTA DE ALTO IMPACTO
   ═══════════════════════════════════════════ */
.hero-wrapper {
    position: relative;
    padding: 90px 24px 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.hero-glow-blob {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.1), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.hero-heading {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-heading .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 36px;
}

.hero-stats-bar {
    display: flex;
    justify-content: center;
    gap: 36px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono);
}

.hero-stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════
   CATÁLOGO DE CURSOS & CARDS
   ═══════════════════════════════════════════ */
.catalog-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 70px 24px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.catalog-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #fff;
}

.catalog-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.courses-grid-unified {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .courses-grid-unified {
        grid-template-columns: 1fr;
    }
}

.course-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.course-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.course-thumb-box {
    position: relative;
    height: 210px;
    background: #0d121c;
    overflow: hidden;
}

.course-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card-modern:hover .course-thumb-box img {
    transform: scale(1.04);
}

.course-thumb-placeholder-modern {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d121c 0%, #161e2e 100%);
    color: #475569;
    gap: 8px;
}

.course-badge-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(14, 19, 29, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.5px;
}

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

.course-card-title-link {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.course-card-modern:hover .course-card-title-link {
    color: #60a5fa;
}

.course-card-excerpt-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.course-card-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
}

.course-card-cert-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-emerald);
    font-weight: 600;
    font-size: 12px;
}

.btn-card-action {
    color: #60a5fa;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, color 0.2s;
}

.course-card-modern:hover .btn-card-action {
    color: #93c5fd;
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════
   DETALHE DO CURSO, AULAS & AMBIENTE DE ESTUDO
   ═══════════════════════════════════════════ */
.course-hero-inner {
    background: linear-gradient(180deg, #0e131d 0%, #07090e 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 45px 24px;
}

.course-hero-inner-container {
    max-width: 1320px;
    margin: 0 auto;
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 14px;
}

.breadcrumb-back:hover {
    color: #fff;
}

.course-hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 14px;
}

.course-layout-unified {
    max-width: 1320px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

@media (max-width: 1024px) {
    .course-layout-unified {
        grid-template-columns: 1fr;
    }
}

.course-main-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(8px);
}

.course-sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(8px);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar-heading {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-nav-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.playlist-nav-link:hover,
.playlist-nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: #fff;
}

.playlist-index-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
}

.playlist-nav-link.active .playlist-index-num {
    background: var(--brand-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════
   AULA INDIVIDUAL (LESSON) & CONTROLES
   ═══════════════════════════════════════════ */
.lesson-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.lesson-meta-chips {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chip-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.chip-tag strong {
    color: #fff;
}

.btn-toggle-complete {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-complete:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-toggle-complete.is-completed {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

/* ═══════════════════════════════════════════
   FOOTER MINIMALISTA QUEROSERVIÇO
   ═══════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 50px 24px 35px;
    background: #05070a;
    margin-top: 90px;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand-side {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    object-fit: cover;
}

.footer-info-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-info-text strong {
    color: #fff;
}

.footer-licence-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.footer-nav-side {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-nav-side a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.footer-nav-side a:hover {
    color: #fff;
}
