/* ===== NEO-BRUTALISM SYSTEM ===== */
:root {
    --bg: #F4F2EC;
    --fg: #000000;
    --surface: #FFFFFF;
    --primary: #FF6B6B; /* High energy coral */
    --accent: #E2F1AF;  /* Soft brutalist lime */
    --link-gh: #24292e;
    
    /* Strict Neo-Brutalist Shadows */
    --border-width: 3px;
    --shadow-sm: 4px 4px 0px #000000;
    --shadow-md: 7px 7px 0px #000000;
    --shadow-btn-hover: 2px 2px 0px #000000;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    padding: 2rem 1rem;
    line-height: 1.5;
}

/* ===== LAYOUT CONTAINER ===== */
.main-container {
    max-width: 78rem; /* 768px - Responsive wrapper */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ===== HEADER ===== */
.site-header {
    max-width: 48rem;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: var(--border-width) solid var(--fg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-svg {
    width: 2.5rem;
    height: 2.5rem;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

/* GitHub Pill */
.btn-gh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--surface);
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: var(--border-width) solid var(--fg);
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s patterns, box-shadow 0.1s;
}

.btn-gh:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-btn-hover);
}

/* ===== UPLOAD ZONE (Dashed Brutalism) ===== */
.upload-area {
    background: var(--surface);
    border: var(--border-width) dashed var(--fg);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
    outline: none;
}

.upload-area:focus-visible,
.upload-area.drag-over {
    background-color: var(--accent);
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0px #000000;
}

.upload-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background: var(--primary);
    border: var(--border-width) solid var(--fg);
    border-radius: 0.75rem;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.upload-sub {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.upload-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

/* ===== LIVE PREVIEW (Micro Tab Simulation) ===== */
.preview-section {
    background: var(--surface);
    border: var(--border-width) solid var(--fg);
    border-radius: 1rem;
    padding: 2rem;
    box-width: 100%;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Minimalist Browser Tab Card Mockup */
.browser-tab-preview {
    display: flex;
    align-items: center;
    background: #EAEAEA;
    border: 2px solid var(--fg);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    max-width: 18rem;
    margin-bottom: 2rem;
}

.tab-mock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.35rem 0.75rem;
    border: 2px solid var(--fg);
    border-bottom: none;
    border-radius: 0.4rem 0.4rem 0 0;
    margin-bottom: -0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.preview-canvas-micro {
    width: 16px;
    height: 16px;
    display: block;
    image-rendering: pixelated;
}

/* Hidden container holding alternative canvas asset sizes */
.hidden-canvases {
    display: none;
}

/* Action Buttons */
.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-generate {
    background-color: var(--primary);
    color: var(--fg);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.85rem 1.75rem;
    border: var(--border-width) solid var(--fg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-generate:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-btn-hover);
}

.action-note {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== CODE SNIPPET CONTAINER REDESIGN ===== */
.snippet-area {
    margin-top: 1.5rem;
    border-top: 2px solid var(--fg);
    padding-top: 1.5rem;
}

.snippet-container {
    border: var(--border-width) solid var(--fg);
    border-radius: 0.5rem;
    background: #272822; /* Monokai code background */
    overflow: hidden;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

/* Horizontal top layout bar for actions */
.snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border-bottom: var(--border-width) solid var(--fg);
    padding: 0.5rem 1rem;
}

.snippet-title-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg);
}

.snippet-box {
    display: flex;
    margin: 0;
    background: transparent;
}

.snippet-box code {
    flex: 1;
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #F8F8F2;
    white-space: pre-wrap;
    overflow-x: auto;
    line-height: 1.4;
}
/* Tactile top-anchored copy button */
.btn-copy {
    background: var(--accent);
    color: var(--fg);
    border: 2px solid var(--fg);
    border-radius: 0.35rem;
    padding: 0.35rem 1rem;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 2px 2px 0px #000000;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-copy:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}


/* ===== INFO GRID GRID SECTIONS ===== */
.info-section {
    background: var(--surface);
    border: var(--border-width) solid var(--fg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
}

.why-item {
    border: 2px solid var(--fg);
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--bg);
}

.why-item strong {
    display: block;
    font-size: 1.1rem;
    margin: 0.5rem 0 0.25rem 0;
}

/* Dynamic Grids / Lists Setup */
.file-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0.75rem;
    background: var(--bg);
    border: 2px solid var(--fg);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.step-num {
    background: var(--primary);
    border: 2px solid var(--fg);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Compatibility Grid (No Emojis) */
.browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.browser-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 2px solid var(--fg);
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

/* FAQ Details UI Accents */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 2px solid var(--fg);
    border-radius: 0.5rem;
    background: var(--surface);
}

.faq-item summary {
    padding: 1rem;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}

.faq-item p {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: var(--border-width) solid var(--fg);
    margin-top: 2rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-icon {
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid var(--fg);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--fg);
    transition: transform 0.1s, box-shadow 0.1s;
}

.social-icon:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-btn-hover);
}

/* ===== TOAST DIALOG STATE ===== */
.toast-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: var(--accent);
    border: var(--border-width) solid var(--fg);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 1000;
    
    /* Strict hidden state configurations */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.toast-bar.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}