/* Base visual de HIVE v0.1, adaptada para SYNTHEK v2. */
@import url('./tokens.css');
@import url('./reset.css');
@import url('./buttons.css');

body {
    background: radial-gradient(circle at 18% 12%, rgba(0,214,255,.12), transparent 32rem), var(--color-void);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { color: var(--color-muted); }
::selection { background: rgba(0,214,255,.35); color: white; }
.sy-container { width: min(100% - 2rem, var(--content-max)); margin-inline: auto; }
.sy-header {
    position: sticky; top: 0; z-index: 30; min-height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 1rem; padding: 1rem clamp(1rem,3vw,2.5rem);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(90deg,rgba(0,214,255,.08),transparent 50%),rgba(2,7,11,.94);
    backdrop-filter: blur(14px);
}
.sy-brand { color: var(--color-text); font-size: 1.35rem; font-weight: 800; text-decoration: none; letter-spacing: .08em; }
.sy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.sy-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 1rem; }
.sy-panel {
    min-width: 0; padding: clamp(1rem,3vw,1.75rem); border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg,rgba(216,227,236,.05),rgba(216,227,236,.01)),rgba(7,17,25,.78);
    box-shadow: var(--shadow-panel);
}
.sy-panel--active { border-color: var(--color-border-strong); }
.sy-kicker { color: var(--color-cyan); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sy-field { display: grid; align-content: start; gap: .4rem; }
.sy-field label, .sy-field legend { color: var(--color-silver); font-weight: 600; }
.sy-field input:not([type=checkbox]):not([type=radio]), .sy-field select, .sy-field textarea {
    width: 100%; min-width: 0; min-height: 44px; padding: .65rem .8rem;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    background: var(--color-ink); color: var(--color-text);
}
.sy-field textarea { min-height: 130px; resize: vertical; }
.sy-field input::placeholder, .sy-field textarea::placeholder { color: var(--color-muted); }
.sy-field [aria-invalid=true] { border-color: #ff8e9b; }
.sy-field small { color: var(--color-muted); }
.sy-error { color: #ffadb6; }
.sy-notice { padding: 1rem; border-left: 3px solid var(--color-cyan); background: var(--color-panel); }
.sy-table-wrap { overflow-x: auto; }
.sy-table { width: 100%; border-collapse: collapse; text-align: left; }
.sy-table th, .sy-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--color-border); }
.sy-table th { color: var(--color-muted); font-size: .85rem; }
.sy-table tbody tr:hover { background: rgba(0,214,255,.04); }
.sy-badge { display: inline-block; padding: .2rem .65rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-silver); }
.sy-badge--success { color: var(--color-green); }
.sy-badge--pending { color: var(--color-warning); }
:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 3px; }
.button:disabled { opacity: .6; transform: none; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
    .sy-header { position: static; }
    .sy-actions { width: 100%; }
    .sy-table th, .sy-table td { padding: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
