/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --bg-dark: #0a0e27;
    --bg-darker: #050811;
    --bg-card: #141b2d;
    --bg-card-hover: #1a2332;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #06b6d4;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    font-size: 16px;
}

/* Container Full Width */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Layout Wrapper para Tutoriais */
.tutorial-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Navigation para Tutoriais */
.tutorial-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.tutorial-sidebar::-webkit-scrollbar {
    width: 6px;
}

.tutorial-sidebar::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.tutorial-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tutorial-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-logo:hover {
    color: var(--primary-color);
}

.sidebar-nav {
    padding: 0 1rem;
}

.sidebar-nav-section {
    margin-bottom: 2rem;
}

.sidebar-nav-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.sidebar-nav-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav-link .icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Main Content Area */
.tutorial-main {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    width: calc(100% - 280px);
}

.tutorial-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 4rem;
    background: transparent;
}

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    text-align: center;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 3rem;
    filter: none;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 300;
}

/* Navigation */
.nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 4rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: var(--bg-card-hover);
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4rem;
}

.section {
    margin-bottom: 5rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    border: none;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-lg);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Tutorial Grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.tutorial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tutorial-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tutorial-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tip-card {
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.tip-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: var(--success-color);
}

.tip-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: var(--warning-color);
}

.tip-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    border-color: var(--info-color);
}

.tip-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tip-card ul {
    list-style: none;
    padding-left: 0;
}

.tip-card li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tip-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.tip-card li strong {
    color: var(--text-primary);
}

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ol,
.faq-answer ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.75rem;
}

.note {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.note strong {
    color: var(--text-primary);
}

/* Tutorial Content */
.tutorial-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
}

.tutorial-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.8;
}

.tutorial-step {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.tutorial-step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.tutorial-step h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border: none;
    font-weight: 700;
}

.tutorial-step h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tutorial-step h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tutorial-step p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.tutorial-step ol,
.tutorial-step ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tutorial-step li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.tutorial-step li strong {
    color: var(--text-primary);
}

.tutorial-step img,
.tutorial-content img,
.tutorial-image {
    max-width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: block;
    transition: all 0.3s;
}

.tutorial-step img:hover,
.tutorial-content img:hover,
.tutorial-image:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
}

code {
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
    font-size: 0.9em;
}

.code-block {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: var(--success-color);
    box-shadow: var(--shadow-md);
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.warning-box strong {
    color: var(--warning-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.success-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.success-box strong {
    color: var(--success-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    border-left: 4px solid var(--info-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.info-box strong {
    color: var(--info-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Quick Links */
.quick-links {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.quick-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.quick-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.quick-links-list li {
    margin: 0;
}

.quick-links-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.quick-links-list a:hover {
    background: var(--bg-card-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    color: var(--text-secondary);
    background: var(--bg-card);
}

.footer-note {
    font-size: 0.95rem;
    margin-top: 0.75rem;
    color: var(--text-muted);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.back-button:hover {
    background: var(--bg-card-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .tutorial-sidebar {
        width: 240px;
    }
    
    .tutorial-main {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
    
    .tutorial-content {
        padding: 2rem 3rem;
    }
    
    .main-content {
        padding: 2rem 3rem;
    }
    
    .header-content,
    .nav-content {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .tutorial-wrapper {
        flex-direction: column;
    }
    
    .tutorial-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 0;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .sidebar-nav-section {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .tutorial-main {
        margin-left: 0;
        width: 100%;
    }
    
    .tutorial-content {
        padding: 2rem 1.5rem;
    }
    
    .main-content {
        padding: 2rem 1.5rem;
    }
    
    .header-content,
    .nav-content {
        padding: 0 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .tutorial-header h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .feature-grid,
    .tutorial-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tutorial-content {
        padding: 1.5rem 1rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .header-content,
    .nav-content {
        padding: 0 1rem;
    }
    
    .tutorial-header h1 {
        font-size: 1.75rem;
    }
    
    .tutorial-step {
        padding: 1.5rem;
    }
    
    .tutorial-step h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .nav,
    .header,
    .footer,
    .tutorial-sidebar,
    .back-button {
        display: none;
    }
    
    .tutorial-main {
        margin-left: 0;
        width: 100%;
    }
    
    body {
        background: white;
        color: black;
    }
}
