/* main.css - Estilos base da documentacao */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #8B5CF6;
    --white: #F1F5F9;
    --gray-bg: #F5F5F5;
    --text: #0F172A;
    --text-bold: #18181B;
    --border: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

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

/* Skip link para acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header/Capa */
.cover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 200px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    padding: 1rem;
}

.cover a {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cover a:hover {
    transform: scale(1.05);
}

.cover h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cover .subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.version-info {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Content Sections */
section {
    padding: 60px 20px;
}

section:nth-child(even) {
    background: var(--gray-bg);
}

h2 {
    color: var(--text-bold);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

h3 {
    color: var(--text-bold);
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px 0;
}

h4 {
    color: var(--text-bold);
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Lists */
ul, ol {
    margin: 15px 0 15px 30px;
}

li {
    margin: 8px 0;
    line-height: 1.8;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text-bold);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer a {
    color: var(--primary-light);
}

/* Print styles */
@media print {
    nav {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }

    .cover {
        page-break-after: always;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    #backToTop {
        display: none !important;
    }

    .product-switcher,
    .product-selector-cover {
        display: none !important;
    }
}
