/* ============================================
   MINI CURSO - TRÁFEGO PAGO PARA PSICÓLOGOS
   Estilos Compartilhados
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #0d0d0f 100%);
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.7;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #1e293b;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-back {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-back:hover {
    color: #818cf8;
}

.nav-module {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

/* Module Header */
.module-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.module-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 20px;
}

.module-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: #f1f5f9;
    line-height: 1.2;
}

.module-header h1 span {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.module-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 24px;
}

.module-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.meta-icon {
    font-size: 1.1rem;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
}

.table-of-contents h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 16px;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-left-color: #38bdf8;
}

/* Main Content */
.content {
    max-width: 800px;
}

.content-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.content-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    color: #f1f5f9;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #38bdf8;
    display: inline-block;
}

.content-section p {
    color: #cbd5e1;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.content-section strong {
    color: #38bdf8;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.05) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    color: #38bdf8;
    margin-bottom: 8px;
}

.info-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-content h4 {
    font-size: 1rem;
    color: #fbbf24;
    margin-bottom: 8px;
}

.warning-content p {
    font-size: 0.9rem;
    color: #d4d4d8;
    margin-bottom: 0;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.success-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.success-content h4 {
    font-size: 1rem;
    color: #10b981;
    margin-bottom: 8px;
}

.success-content p {
    font-size: 0.9rem;
    color: #d4d4d8;
    margin-bottom: 0;
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.platform-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.platform-card.google {
    border-color: rgba(234, 67, 53, 0.3);
}

.platform-card.google:hover {
    border-color: #ea4335;
}

.platform-card.meta {
    border-color: rgba(59, 89, 152, 0.3);
}

.platform-card.meta:hover {
    border-color: #818cf8;
}

.platform-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.platform-card.google .platform-logo {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc05 33%, #34a853 66%, #4285f4 100%);
}

.platform-card.meta .platform-logo {
    background: linear-gradient(135deg, #0668E1 0%, #833AB4 50%, #E1306C 100%);
}

.platform-card h4 {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.platform-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* Types List */
.types-list {
    margin: 24px 0;
}

.type-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.type-item:hover {
    border-color: #38bdf8;
}

.type-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.type-content h4 {
    font-size: 1rem;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.type-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.type-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
}

/* Recommendation Box */
.recommendation-box {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(192, 132, 252, 0.05) 100%);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.recommendation-box h4 {
    font-size: 1rem;
    color: #818cf8;
    margin-bottom: 12px;
}

.recommendation-box p {
    font-size: 0.95rem;
    color: #d4d4d8;
    margin-bottom: 0;
}

/* CFP Points */
.cfp-points {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.cfp-point {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
}

.cfp-point h4 {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.cfp-point p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.cfp-point ul {
    list-style: none;
    padding-left: 0;
}

.cfp-point ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.cfp-point ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #38bdf8;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left: 4px solid #38bdf8;
    border-radius: 0 16px 16px 0;
    padding: 24px 28px;
    margin: 32px 0;
}

.quote-box blockquote {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: #e2e8f0;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
}

.quote-box cite {
    font-size: 0.85rem;
    color: #64748b;
    font-style: normal;
}

/* Comparison Table */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.table-column {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 24px;
}

.table-column.pode {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.table-column.nao-pode {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.table-column h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.table-column.pode h4 {
    color: #10b981;
}

.table-column.nao-pode h4 {
    color: #ef4444;
}

.table-column ul {
    list-style: none;
}

.table-column ul li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
}

.table-column ul li:last-child {
    border-bottom: none;
}

/* Example Boxes */
.example-box {
    border-radius: 16px;
    margin: 24px 0;
    overflow: hidden;
}

.example-box.wrong {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.example-box.correct {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #1e293b;
}

.example-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.example-box.wrong .example-tag {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.example-box.correct .example-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.example-title {
    font-size: 0.8rem;
    color: #64748b;
}

.example-content {
    padding: 20px;
    background: #0f172a;
}

.example-ad {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin: 0;
}

.example-problems,
.example-correct-points {
    padding: 16px 20px;
    background: #1e293b;
}

.example-problems h5,
.example-correct-points h5 {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.example-problems ul,
.example-correct-points ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-problems ul li,
.example-correct-points ul li {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.example-problems ul li {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.example-correct-points ul li {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.tip-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.tip-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 12px;
}

.tip-card h4 {
    font-size: 0.95rem;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

/* Resource Box */
.resource-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.05) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
}

.resource-box h4 {
    font-size: 1rem;
    color: #38bdf8;
    margin-bottom: 16px;
}

.resource-box ul {
    list-style: none;
}

.resource-box ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.resource-box a {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-box a:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* Module Footer */
.module-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #1e293b;
}

.progress-info {
    margin-bottom: 24px;
}

.progress-info span {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-btn {
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    color: white;
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.nav-btn.secondary {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
}

.nav-btn.secondary:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Step by Step */
.step {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    position: relative;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.step-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: #f1f5f9;
}

.step-content {
    padding-left: 64px;
}

.step-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.step-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #38bdf8;
}

/* Screenshot placeholder */
.screenshot {
    background: #0f172a;
    border: 2px dashed #334155;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 16px 0;
}

.screenshot p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* Code blocks */
.code-block {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-block .keyword {
    color: #c084fc;
}

.code-block .string {
    color: #34d399;
}

.code-block .comment {
    color: #64748b;
}

/* Lists */
.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.content-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.content-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: bold;
}

.content-section ol {
    padding-left: 20px;
    margin: 16px 0;
}

.content-section ol li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #cbd5e1;
    padding-left: 8px;
}

/* Checklist */
.checklist {
    list-style: none !important;
    padding-left: 0 !important;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px !important;
    background: #1e293b;
    border-radius: 10px;
    margin-bottom: 8px !important;
}

.checklist li::before {
    content: '☐' !important;
    position: static !important;
    flex-shrink: 0;
    color: #38bdf8 !important;
    font-size: 1.1rem;
}

.checklist li.checked::before {
    content: '☑' !important;
    color: #10b981 !important;
}

/* Keywords table */
.keywords-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
}

.keywords-table th,
.keywords-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.keywords-table th {
    background: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.keywords-table td {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.keywords-table tr:last-child td {
    border-bottom: none;
}

.keywords-table tr:hover td {
    background: rgba(56, 189, 248, 0.05);
}

/* Budget cards */
.budget-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.budget-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.budget-card.highlight {
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, #0f172a 100%);
}

.budget-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 8px;
}

.budget-label {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.budget-desc {
    font-size: 0.8rem;
    color: #64748b;
}

/* Metrics cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.metric-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 20px;
}

.metric-abbr {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 8px;
}

.metric-name {
    font-size: 0.95rem;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.metric-desc {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        position: static;
        order: -1;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
    }
    
    .step-content {
        padding-left: 0;
        margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 80px 16px 40px;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-btn {
        text-align: center;
    }
    
    .info-box,
    .warning-box,
    .success-box {
        flex-direction: column;
    }
}

