/* Muro: misma estética que comcom.dc.uba.ar/hackaton (negro cálido + dorado,
   Silkscreen para títulos, JetBrains Mono para el resto, bordes de 1px, sin
   bordes redondeados). Paleta copiada de su hackaton.css. */
:root {
    --bg: #140E02;
    --bg2: #1C1505;
    --gold: #C29F24;
    --bright: #E6C03D;
    --text: #C9B77A;
    --muted: #9C8A55;
    --line: #6B5A28;
    --err: #D9674A;
    --mono: "JetBrains Mono", "Hack", "DejaVu Sans Mono", ui-monospace, monospace;
    --display: "Silkscreen", "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

/* Sin esto, `display` de una clase (ej. .mu-btn) pisa el atributo hidden. */
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.75;
}

a { color: var(--bright); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }

.wrapper { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--line); padding: 14px 0; }
.site-header .wrapper { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-title { font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; }
.site-nav a { margin-left: 18px; font-size: 13px; }

.muro { padding-bottom: 80px; }

/* ---- hero ---- */
.mu-hero {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border: 1px solid var(--line);
    margin: 36px 0 28px;
    padding: 32px;
}
/* La foto es 400x300: se recorta a cuadrado centrado en Honey y se redondea. */
.mu-hero-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 58% 50%;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: block;
}
.mu-hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 2px;
    line-height: 1.25;
    color: var(--bright);
    margin: 0;
}
.mu-hero p { margin: 12px 0 0; color: var(--muted); }

h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.25;
    color: var(--bright);
    margin: 44px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

/* ---- estados anon / logged ---- */
.if-anon, .if-logged { display: none; }
.anon .if-anon { display: block; }
.logged .if-logged { display: block; }

/* ---- cards / form ---- */
.mu-card { border: 1px solid var(--line); background: var(--bg2); padding: 22px 24px; }
.mu-card.center { text-align: center; }

.mu-as { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mu-as b { color: var(--bright); }
.mu-as button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mu-as button:hover { color: var(--bright); }

label.mu-label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 4px;
}

input[type=text], textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 10px 12px;
    font: inherit;
    line-height: 1.5;
}
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--bright); }
textarea { resize: vertical; min-height: 96px; }

.mu-field { margin-bottom: 16px; }
.mu-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.mu-count { font-size: 12px; color: var(--muted); }
.mu-count.over { color: var(--err); }

.mu-btn {
    display: inline-block;
    background: var(--bright);
    color: var(--bg);
    border: 1px solid var(--bright);
    border-radius: 0;
    padding: 12px 28px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}
.mu-btn:hover:not(:disabled) { background: var(--bg); color: var(--bright); }
.mu-btn:disabled { opacity: .4; cursor: default; }
.mu-btn.ghost { background: none; color: var(--bright); }
.mu-btn.ghost:hover:not(:disabled) { background: var(--bright); color: var(--bg); }

.mu-msg { min-height: 1.5em; margin-top: 12px; font-size: 13px; color: var(--muted); }
.mu-msg.err { color: var(--err); }

.mu-note { font-size: 13px; color: var(--muted); }

/* ---- posts ---- */
.mu-list { border-top: 1px solid var(--line); }

.mu-post {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.mu-avatar {
    width: 56px;
    height: 56px;
    border: 1px solid var(--line);
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    font-family: var(--display);
    font-size: 24px;
    color: var(--bright);
}
.mu-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mu-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; }
.mu-handle { font-weight: 700; color: var(--bright); }
.mu-group { border: 1px dashed var(--line); color: var(--muted); padding: 0 8px; font-size: 12px; }
.mu-time { color: var(--muted); font-size: 12px; margin-left: auto; }

.mu-reply { margin-left: 72px; }
.mu-replyto { color: var(--muted); font-size: 12px; }

.mu-body { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.mu-actions { display: flex; gap: 16px; margin-top: 6px; }
.mu-act { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mu-act:hover { color: var(--bright); }
.mu-act.mu-del:hover { color: var(--err); }

/* "Contestando a @x" arriba del formulario */
.mu-replying { display: flex; justify-content: space-between; gap: 12px; border: 1px dashed var(--line); padding: 8px 12px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.mu-replying b { color: var(--bright); }
.mu-replying button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mu-replying button:hover { color: var(--bright); }

.mu-empty { border: 1px dashed var(--line); padding: 22px 24px; color: var(--muted); font-size: 14px; text-align: center; margin-top: 18px; }

.mu-more { text-align: center; margin-top: 24px; }

.mu-foot { margin-top: 56px; text-align: center; font-size: 13px; color: var(--muted); }

@media screen and (max-width: 720px) {
    .mu-hero { grid-template-columns: 1fr; padding: 24px 20px; }
    .mu-hero-img { max-width: 180px; margin: 0 auto; }
    .mu-hero h1, .mu-hero p { text-align: center; }
    .mu-hero h1 { font-size: 24px; }
    h2 { font-size: 18px; margin-top: 36px; }
    .mu-card { padding: 18px 16px; }
    .mu-post { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
    .mu-avatar { width: 44px; height: 44px; font-size: 18px; }
    .mu-reply { margin-left: 28px; }
    .mu-time { margin-left: 0; width: 100%; }
}
