/* ==========================================
   NOWOCZESNY STYL DVZ SHOUTBOX (GigaSmak.pl)
   ========================================== */

#shoutbox {
    margin-bottom: 25px;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Nagłówek czatu */
#shoutbox .head {
    background-color: #232a35;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#shoutbox.front .head {
    cursor: pointer;
}

#shoutbox .head .right {
    font-size: 13px;
    font-weight: normal;
}

#shoutbox .head .right a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

#shoutbox .head .right a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

#shoutbox.collapsed .head {
    opacity: 0.85;
}

#shoutbox.collapsed .body {
    display: none;
}

/* Okno wiadomości */
#shoutbox .window {
    height: 380px;
    overflow-y: auto;
    padding: 10px 0;
    background: #fdfdfd;
}

#shoutbox .data {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Pojedynczy wpis na czacie */
#shoutbox .entry {
    display: flex !important;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.2s;
}

#shoutbox .entry:last-child {
    border-bottom: none;
}

#shoutbox .entry:hover {
    background-color: #f7fafc;
}

#shoutbox .entry.new {
    background-color: #fffaf0; /* Subtelny pomarańczowy błysk nowej wiadomości */
}

#shoutbox .entry:target {
    background-color: #edf2f7;
}

/* Avatary */
#shoutbox .avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

#shoutbox .avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Nazwa użytkownika */
#shoutbox .user {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

#shoutbox .user a {
    text-decoration: none;
}

/* Treść wiadomości */
#shoutbox .text {
    flex-grow: 1;
    font-size: 13.5px;
    color: #2d3748;
    line-height: 1.4;
    word-break: break-word;
}

/* Informacje (data, czas, moderacja) */
#shoutbox .info {
    font-size: 11px;
    color: #a0aec0;
    white-space: nowrap;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

#shoutbox .entry.unread .info:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #e67e22;
    border-radius: 50%;
}

#shoutbox .info a {
    color: inherit;
    text-decoration: none;
}

#shoutbox .info a:hover {
    color: #e67e22;
    text-decoration: underline;
}

#shoutbox .mod {
    font-size: 10px;
    font-weight: 600;
    color: #e53e3e;
    text-decoration: none;
    padding: 2px 6px;
    background: #fff5f5;
    border-radius: 4px;
    transition: background 0.2s;
}

#shoutbox .mod:hover {
    background: #fed7d7;
}

#shoutbox .ip {
    color: #cbd5e0;
    font-size: 10px;
}

/* Panel wpisywania wiadomości */
#shoutbox .panel {
    border-top: 1px solid #e1e4e8;
    background: #ffffff;
    padding: 12px 16px;
}

#shoutbox input.text {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    color: #2d3748;
    background-color: #f8fafc;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

#shoutbox input.text:focus {
    background-color: #ffffff;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
    outline: none;
}

/* Komunikaty błędów i ograniczeń (minposts / blocked) */
#shoutbox .minposts, 
#shoutbox .blocked {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 6px;
    margin: 4px 0;
}

#shoutbox .panel.minposts {
    background: #fffaf0;
    color: #dd6b20;
    border: 1px solid #feebc8;
}

#shoutbox .panel.blocked {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}