/* CompactCSS source: /apps/compiler/style.css */
/*
B"H
Awtsmoos Stylesheet
*/

:root {
    /* Palette */
    --bg-void: #050507;
    --bg-card: #0e0e11;
    --bg-card-header: rgba(20, 20, 25, 0.6);
    --bg-input: #020203;
    
    --border-dim: #1f1f23;
    --border-highlight: #3f3f46;
    
    --text-main: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dim: #52525b;
    
    --accent-primary: #06b6d4; /* Cyan 500 */
    --accent-glow: #22d3ee;    /* Cyan 400 */
    --accent-dim: #0e7490;
    
    --blue-deep: #2563eb;
    --blue-vivid: #3b82f6;

    --success: #4ade80;
    --error: #ef4444;

    /* Spacing */
    --radius-lg: 12px;
    --radius-md: 8px;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-void);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    
    /* Subtle ambient background */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

/* --- Holy Headers (B"H) --- */
.bh-corner-left {
    position: fixed;
    top: 1rem;
    left: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-glow);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    z-index: 9999;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
}

.bh-corner-right {
    position: fixed;
    top: 0.8rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-glow);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    z-index: 9999;
    pointer-events: none;
    font-family: 'Times New Roman', serif; /* Serif for authentic Hebrew look */
    opacity: 0.8;
}

/* --- Card Component --- */

.compiler-card {
    width: 100%;
    max-width: 42rem; /* approx 672px */
    background-color: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.compiler-card::before {
    /* Top border glow hint */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
    opacity: 0.5;
}

/* --- Header --- */

.card-header {
    background-color: var(--bg-card-header);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.app-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Content Area --- */

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.input-field {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--accent-glow);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.input-field::placeholder {
    color: var(--text-dim);
}

.input-field:focus {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ASM Editor */
.asm-editor {
    width: 100%;
    min-height: 300px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    white-space: pre;
    overflow-x: auto;
}

.asm-editor:focus {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-input);
    padding: 0.75rem;
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-highlight);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s;
}

.radio-label input:checked + .radio-custom {
    border-color: var(--accent-glow);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-glow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.radio-label input:checked ~ span {
    color: var(--text-main);
}

/* Info Panel */
.info-panel {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.75rem;
}

.info-title {
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-list {
    list-style-type: disc;
    list-style-position: inside;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 0.25rem;
}

.highlight {
    color: var(--accent-dim);
}

/* Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-dim), var(--blue-deep));
    color: white;
    font-family: inherit;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--blue-vivid));
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent-glow);
    outline-offset: 2px;
}

/* Status Messages */
.status-msg {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    min-height: 1.5rem; /* prevent layout shift */
}

.hidden {
    display: none;
}

.status-loading {
    color: var(--accent-glow);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-success {
    color: var(--success);
}

.status-error {
    color: var(--error);
}

/* Footer */
.card-footer {
    background-color: var(--bg-void);
    padding: 1rem;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Selection */
::selection {
    background-color: rgba(6, 182, 212, 0.3);
    color: white;
}