/* Terminal Page Specific Styles */

:root {
    --accent: oklch(80.169% 0.16282 83.454);
}

.icon-terminal {
    color: var(--accent);
}

.terminal-page {
    min-height: calc(100vh - 4rem);
    padding: 3rem 0;
}

.terminal-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
}

/* Content Sections */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section Titles */
.section-title-primary {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Text Styles */
.section-text {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.note-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Code Boxes */
.code-box {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-top: 0.75rem;
    position: relative; /* ADICIONE */
}

.code-box code {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.875rem;
    color: var(--accent);
    word-break: break-all;
    white-space: pre-wrap;
    padding-right: 3rem; /* ADICIONE - espaço para o botão */
}

.code-box pre {
    margin: 0;
    overflow-x: auto;
}

.code-box pre code {
    display: block;
    white-space: pre;
}

/* Botão de copiar código */
.btn-copy-code {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background-color: var(--secondary);
    color: var(--foreground);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-copy-code:hover {
    background-color: var(--muted);
    opacity: 1;
}

.btn-copy-code.copied {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.inline-code {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.875rem;
    color: var(--accent);
    background-color: var(--muted);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* Lists */
.ordered-list {
    list-style: decimal;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 0;
}

.ordered-list li {
    color: var(--foreground);
    padding-left: 0.5rem;
}

.list-title {
    font-weight: 500;
    color: var(--foreground);
}

.simple-list {
    list-style: decimal;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.bullet-list {
    list-style: disc;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.bullet-list strong {
    color: var(--foreground);
}

/* External Links */
.external-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    transition: text-decoration 0.2s;
}

.external-link:hover {
    text-decoration: underline;
}

/* Extras Grid */
.extras-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.extra-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.extra-title {
    color: var(--foreground);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .terminal-container {
        padding: 0 1rem;
    }
    
    .page-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .code-box {
        padding: 0.75rem;
    }
    
    .code-box code {
        font-size: 0.75rem;
    }
}