/* Niilo Päivä­botti – tyylitiedosto */

.npb-wrapper {
    margin-bottom: 20px;
}

/* ── Kortti ── */
.npb-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e8ee;
    padding: 18px 20px 14px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    font-size: 15px;
    line-height: 1.55;
}

/* ── Suljepainike ── */
.npb-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color .15s;
}
.npb-close:hover { color: #555; }

/* ── Header: säätiedot ── */
.npb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.npb-weather-icon {
    font-size: 32px;
    line-height: 1;
}
.npb-weather-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.npb-temp {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}
.npb-desc {
    font-size: 13px;
    color: #666;
    text-transform: capitalize;
}

/* ── Bottirunko: kuva + sisältö vierekkäin ── */
.npb-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 4px;
}
.npb-bot-avatar {
    flex-shrink: 0;
    width: 100px;
}
.npb-bot-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.npb-body-content {
    flex: 1;
    min-width: 0;
}

/* ── Viesti ── */
.npb-message p {
    margin: 0 0 12px;
    color: #2c2c3e;
}

/* ── Tapahtumat ── */
.npb-events {
    border-top: 1px solid #f0f2f5;
    padding-top: 12px;
    margin-top: 4px;
}
.npb-events-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    margin: 0 0 8px;
}
.npb-events ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.npb-events li {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}
.npb-events li a {
    color: #333;
    text-decoration: underline;
    text-decoration-color: #ccc;
}
.npb-events li a:hover {
    color: #5a6aff;
    text-decoration-color: #5a6aff;
}
.npb-event-meta {
    color: #999;
    font-size: 12px;
}

/* ── Badget ── */
.npb-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
    flex-shrink: 0;
}
.npb-badge-niilo {
    background: #e8eaff;
    color: #4a58e0;
}
.npb-badge-kahvila {
    background: #fff3e0;
    color: #e65100;
    font-size: 12px;
    padding: 1px 5px;
}

/* ── Footer ── */
.npb-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
    font-size: 12px;
    color: #aaa;
}
.npb-avatar { font-size: 14px; }
.npb-name   { font-weight: 600; color: #888; }
.npb-time   { color: #bbb; }
.npb-refresh-link {
    margin-left: auto;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}
.npb-refresh-link:hover { color: #5a6aff; }

/* ── Avaa-uudelleen -painike ── */
.npb-reopen {
    background: #eef0f3;
    border: 1px solid #dde0e6;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, box-shadow .15s;
    color: #555;
    line-height: 1;
    padding: 0;
    overflow: hidden;
}
.npb-reopen:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    background: #e2e5ea;
}

.npb-reopen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ── Footer-ikoni kuvana ── */
.npb-bot-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* ── Hel.fi-linkki ── */
    margin: 10px 0 0;
    font-size: 12px;
}
.npb-hel-link a {
    color: #5a6aff;
    text-decoration: none;
}
.npb-hel-link a:hover { text-decoration: underline; }

/* ── Animaatiot ── */
@keyframes npb-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.npb-card { animation: npb-fadein .25s ease; }
