/* --------------------------------------------------------
   MÓDULO RECURSOS — Estilos
   -------------------------------------------------------- */
.rec-widget--active {
    background: rgba(255,255,255,.12);
    border-color: rgba(192,57,43,.7);
}
/* -- Header widgets ----------------------------------- */
.miedo-recursos-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.rec-widget {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    position: relative;
    min-width: 80px;
}
.rec-widget:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(192,57,43,.5);
}
.rec-widget__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #e8e8e8;
}
.rec-widget__icon svg {
    width: 100%;
    height: 100%;
}
.rec-widget__amount {
    font-size: .8rem;
    font-weight: 700;
    color: #e8e8e8;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.rec-widget__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 6px 6px;
    background: #c0392b;
    transition: width .5s ease;
}
.rec-widget--full .rec-widget__bar   { background: #e74c3c; }
.rec-widget--empty .rec-widget__amount { color: #888; }

/* -- Tooltip de recurso ------------------------------- */
.rec-tooltip {
    position: fixed;
    background: rgba(10,10,10,.95);
    border: 1px solid rgba(192,57,43,.5);
    border-radius: 8px;
    padding: 12px 14px;
    min-width: 180px;
    z-index: 1000;
    pointer-events: none;
    display: none;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.rec-tooltip--visible { display: block; }
.rec-tooltip__name {
    font-weight: 700;
    font-size: .88rem;
    color: #c0392b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rec-tooltip__name svg { width: 14px; height: 14px; }
.rec-tooltip__row {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: #aaa;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.rec-tooltip__row:last-child { border-bottom: none; }
.rec-tooltip__row span:last-child {
    font-weight: 700;
    color: #e8e8e8;
}
.rec-tooltip__row--prod span:last-child  { color: #2ecc71; }
.rec-tooltip__row--cons span:last-child  { color: #e74c3c; }
.rec-tooltip__bar-wrap {
    height: 4px;
    background: rgba(255,255,255,.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.rec-tooltip__bar-fill {
    height: 100%;
    background: #c0392b;
    border-radius: 2px;
    transition: width .3s;
}

/* -- Admin -------------------------------------------- */
.recursos-admin-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
}
.recursos-admin-block {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
}
.recursos-admin-block__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f8f8;
    border-bottom: 1px solid #e2e4e7;
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
}
.recursos-admin-block__title svg { width: 18px; height: 18px; color: #c0392b; }
.recursos-admin-block__title code {
    font-size: .72rem;
    background: #e2e4e7;
    padding: 1px 6px;
    border-radius: 3px;
    color: #555;
    margin-left: auto;
}
.recursos-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    padding: 14px;
}
.recursos-icon-input {
    font-family: monospace;
    font-size: .75rem;
    width: 100%;
    resize: vertical;
}