/* Stats Panel Shared Styles */

/* Container Styles */
.stats-panel-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Title Section -- a "cím" betűtípusa megegyezik az app többi részén
   használt cím-betűtípussal (l. pl. public/css/pages/zone.css .zone-title).
   CLASS-alapú szelektor (nem ID) -- l. #info-title/#info-steps/#info-keys/
   #info-rules a Súgó-beli interaktív tutorial saját, egyedi ID-jű
   ("help-tutorial-" prefixes) mezőin is UGYANEZT a kinézetet adja, l.
   game/js/InfoPanel.js idPrefix paramétere és views/layouts/minimal.hbs
   .help-tutorial-guide-infopanel blokkja. */
.info-title {
    font-family: 'Denk One', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    color: white;
    margin-bottom: 0.3rem;
}

/* Story Section */
.info-story {
    font-size: 0.85rem;
    color: #a0aec0;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Section Spacing */
.stats-section {
    margin-bottom: 1.5rem;
}

/* Steps Counter */
.info-steps {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ddd7d8;
    text-align: center;
}

/* Szakasz-feliratok (Steps left / Inventory / Rules a jobb oldalsávban,
   Controls a bal oldalsávban -- l. stats-panel.hbs és play.hbs) -- ugyanaz
   a cím-betűtípus, mint #info-title-nél, csak kisebb méretben, a sötét
   oldalsáv-háttérrel kontrasztos "fordított" (majdnem fehér alapon sötétszürke
   betű), lekerekített kártya. Ez a class a components/stats-panel.css-ben él,
   de a play.hbs bal oldalsávjában is felhasználjuk -- mindkettő ugyanazon az
   oldalon töltődik be (l. config/scene-styles.js), nem kell duplikálni. */
.stats-section-title {
    font-family: 'Denk One', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #2d3748;
    background-color: #f7fafc;
    text-align: center;
    padding: 0.4em 0.75em;
    margin-bottom: 0.75rem;
    border-radius: 0.6em;
}

/* Keys Container */
.info-keys {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: 50px;
    justify-content: center;
}

/* Inventory Empty Message */
.inventory-empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666688;
    font-size: 0.9rem;
    font-style: italic;
    width: 100%;
}

/* Inventory Items */
.inventory-item {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* "Tárgy a közeledben" -- az éppen ENTER-re aktiválódó tárgy/ajtó ikonja
   és neve (l. game/js/Escape10x10.js computeCurrentItemDisplay,
   public/js/play.js updateCurrentItemPanel,
   plans/19-item-kijelzes-es-ranghoz-rogzites-terv.md 5.2/5.3 pont). A
   --tile-col/--tile-row-t a JS állítja be inline stílusként, a
   components/tileset-grid.css :root változóival számolt kivágási
   képlet ugyanaz, mint a zóna-lista feature-ikonjainál (l. pages/zone.css
   .zone-level-feature-icon). */
.current-item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    background-image: var(--tileset-board);
    background-size: calc(var(--tileset-img-w) / var(--tileset-cell) * 100%) calc(var(--tileset-img-h) / var(--tileset-cell) * 100%);
    background-position:
        calc(var(--tile-col, 0) * var(--tileset-cell) / (var(--tileset-img-w) - var(--tileset-cell)) * 100%)
        calc(var(--tile-row, 0) * var(--tileset-cell) / (var(--tileset-img-h) - var(--tileset-cell)) * 100%);
    background-repeat: no-repeat;
    background-color: #f7fafc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.current-item-icon[hidden] {
    display: none;
}

.current-item-label {
    margin-top: 0.5em;
    text-align: center;
    font-size: 0.85rem;
    color: #cbd5e0;
    min-height: 1.2em;
}

/* Rules Container */
.info-rules {
    font-size: 1.2rem;
    color: #cbd5e0;
}

/* No Rules Message */
.no-rules-message {
    color: #a0aec0;
    font-style: italic;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Rule Badges */
.rule-badge {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #3a4556;
    border-radius: 6px;
    color: #cbd5e0;
}

/* Rule Icons */
.rule-icon {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
    margin-right: 0.75rem;
}

/* Rule Icon Colors */
.rule-icon.color-yellow {
    color: #ecc94b;
}

.rule-icon.color-red {
    color: #f56565;
}

.rule-icon.color-purple {
    color: #9f7aea;
}

.rule-icon.color-blue {
    color: #4299e1;
}

/* Rules Styling (Larger) */
.info-rules .infopanel-rule {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.info-rules i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    margin-right: 0.75rem;
}

.info-rules span {
    font-size: 0.95rem;
}
