/* ==========================================================================
   NAVALHA — Anti-Design & Punk Zine CSS
   Zero cantos arredondados, alto contraste tonal, tipografia monoespaçada
   ========================================================================== */

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

body {
    background-color: #0d0d0d;
    color: #f5f2eb;
    font-family: 'Courier New', Courier, monospace, monospace;
    line-height: 1.4;
    overflow-x: hidden;
}

.navalha-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.navalha-header {
    background-color: #141416;
    border-bottom: 3px solid #ff0033;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 26px;
}

.logo-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    background: #ff0033;
    padding: 2px 10px;
    text-shadow: 2px 2px 0px #000;
}

.logo-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: #e2f835;
    color: #000;
    padding: 3px 6px;
}

.header-manifesto {
    font-size: 11px;
    letter-spacing: 1px;
    color: #888888;
    text-transform: uppercase;
}

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

.nav-link-doc {
    background-color: #000;
    color: #e2f835;
    border: 2px solid #e2f835;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 2px 2px 0px #ff0033;
    font-family: inherit;
}

.nav-link-doc:hover {
    background-color: #e2f835;
    color: #000;
    box-shadow: 2px 2px 0px #ffffff;
}

/* Faixa de destaque gritante da documentação */
.docs-attention-bar {
    background: #e2f835;
    border-bottom: 3px solid #000;
    box-shadow: 0 4px 0 #ff0033;
    z-index: 50;
}

.docs-attention-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    text-decoration: none;
    color: #000;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.docs-attention-link:hover {
    background: #ff007f;
    color: #fff;
}

.docs-attention-link:hover .attention-badge {
    background: #fff;
    color: #000;
}

.docs-attention-link:hover .attention-cta {
    background: #e2f835;
    color: #000;
    box-shadow: 3px 3px 0 #000;
}

.attention-badge {
    background: #000;
    color: #e2f835;
    padding: 4px 8px;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.attention-text {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
}

.attention-cta {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border: 2px solid #000;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 3px 3px 0 #ff0033;
}

/* Card chamativo de documentação no painel esquerdo */
.doc-callout-card {
    background: #18181c;
    border: 2px solid #e2f835;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 4px 4px 0 #ff0033;
}

.doc-callout-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2f835;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.doc-callout-desc {
    color: #bbbbbb;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.btn-callout-doc {
    display: block;
    text-align: center;
    background: #e2f835;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 8px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #fff;
    transition: transform 0.1s ease;
}

.btn-callout-doc:hover {
    background: #ff007f;
    color: #fff;
    box-shadow: 2px 2px 0 #000;
    transform: translate(-1px, -1px);
}

.footer-doc-link-box {
    margin-left: 16px;
}

.footer-doc-link {
    color: #e2f835;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px dashed #e2f835;
}

.footer-doc-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* Workspace */
.navalha-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: calc(100vh - 120px);
}

@media (max-width: 900px) {
    .navalha-workspace {
        flex-direction: column;
    }
}

/* Panel Controls (Left) */
.panel-controls {
    width: 440px;
    background-color: #121214;
    border-right: 3px solid #222226;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .panel-controls {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #222226;
    }
}

.control-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-tag {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #00f0ff;
    text-transform: uppercase;
}

.file-input-punk {
    background-color: #1c1917;
    border: 2px dashed #444;
    padding: 10px;
    color: #eee;
    cursor: pointer;
    font-size: 12px;
}

.file-input-punk:hover {
    border-color: #ff0033;
}

.help-text {
    font-size: 10px;
    color: #777;
}

.text-input-punk {
    background-color: #000;
    border: 2px solid #555;
    color: #fff;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-input-punk:focus {
    outline: none;
    border-color: #e2f835;
    background-color: #111;
}

/* Preset Buttons */
.preset-selector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.btn-preset {
    background-color: #1e1e24;
    color: #ccc;
    border: 2px solid #333;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: none;
}

.btn-preset:hover {
    background-color: #2a2a35;
    color: #fff;
    border-color: #ff0033;
}

.btn-preset.active {
    background-color: #ff0033;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 4px 4px 0px #000;
}

/* Accordion */
.accordion-box {
    border-top: 2px solid #222;
    padding-top: 12px;
}

.btn-accordion {
    width: 100%;
    background-color: #18181c;
    border: 2px solid #333;
    color: #bbb;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
}

.btn-accordion:hover {
    color: #00f0ff;
    border-color: #00f0ff;
}

.advanced-panel {
    background-color: #0f0f12;
    border: 2px solid #333;
    border-top: none;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-group, .select-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slider-group label, .select-group label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #aaa;
}

.slider-group input[type="range"] {
    accent-color: #ff0033;
    cursor: pointer;
}

.select-group select {
    background-color: #000;
    color: #fff;
    border: 2px solid #444;
    padding: 6px;
    font-family: inherit;
    font-size: 12px;
}

/* Export Buttons */
.export-box {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 2px solid #222;
}

.btn-gilete {
    background-color: #e2f835;
    color: #000000;
    border: 3px solid #ffffff;
    padding: 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 4px 4px 0px #ff0033;
}

.btn-gilete:hover {
    background-color: #ff0033;
    color: #ffffff;
    box-shadow: 4px 4px 0px #e2f835;
}

.btn-gilete-secondary {
    background-color: #111;
    color: #00f0ff;
    border: 2px solid #00f0ff;
    padding: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
}

.btn-gilete-secondary:hover {
    background-color: #00f0ff;
    color: #000;
}

/* Panel Preview (Right) */
.panel-preview {
    flex: 1;
    background-color: #070708;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: auto;
}

.canvas-wrapper {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 8px 8px 0px #1a1a1a;
    border: 3px solid #333;
    max-height: 80vh;
    display: flex;
}

.poster-display {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
}

/* Footer / CLI Mirror */
.navalha-footer {
    background-color: #050505;
    border-top: 3px solid #333;
    padding: 10px 20px;
}

.cli-mirror-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #000000;
    border: 1px solid #222;
    padding: 8px 14px;
    overflow-x: auto;
}

.cli-prompt {
    color: #e2f835;
    font-weight: 900;
    font-size: 16px;
}

.cli-code {
    flex: 1;
    color: #00f0ff;
    font-size: 13px;
    white-space: nowrap;
    font-family: monospace;
}

.btn-copy-cli {
    background-color: #ff0033;
    color: #fff;
    border: 1px solid #fff;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-copy-cli:hover {
    background-color: #fff;
    color: #000;
}
