/* === CHAT ONLY: wszystko ograniczone do #ogchat === */

/* Panel czatu */
#ogchat .chat {
    padding: 10px 12px;
    background-color: rgba(255, 182, 193, 0.08);
    border: 1px solid rgba(255, 182, 193, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 182, 193, 0.08);
    height: 100%;
    position: relative;
}

/* Tytuł czatu */
#ogchat .chat-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff9ad5, #c7a6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px rgba(199, 166, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}
#ogchat .chat-title::before {
    content: "💬";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-55%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

/* Lista wiadomości + scrollbar */
#ogchat #messages {
    margin: 10px 0;
    font-size: 16px;
    height: 80%;
    overflow-y: auto;
    padding-right: 4px;
    max-height: 68vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(228,185,118,.6) rgba(255,255,255,.06);
}
#ogchat #messages::-webkit-scrollbar { width: 8px; }
#ogchat #messages::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 10px; }
#ogchat #messages::-webkit-scrollbar-thumb { background: rgba(228,185,118,.65); border-radius: 10px; }
#ogchat #messages::-webkit-scrollbar-thumb:hover { background: rgba(228,185,118,.85); }

/* Wiadomość – separator */
#ogchat .message { border-bottom: 1px solid rgba(228,185,118,.5); }

/* === Golden nickname – delikatny połysk === */
#ogchat .nickname{
    font-weight: 800;
    letter-spacing: .15px;
    background: linear-gradient(90deg,#f7d08a 0%, #f1c35e 30%, #e4ad45 50%, #f1c35e 70%, #f7d08a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 180% 100%;
    text-shadow: none;
    animation: goldSheen 5s linear infinite;
}
@keyframes goldSheen{
    0%   { background-position:   0% 50%; }
    100% { background-position: 180% 50%; }
}
#ogchat .message:hover .nickname{
    filter: brightness(1.06);
}
@media (prefers-reduced-motion: reduce){
    #ogchat .nickname{ animation: none; }
}

/* === SYSTEM: specjalny styl dla MokraPaula (wiadomości automatyczne) === */
#ogchat .message-system {
    background: rgba(255, 20, 147, 0.08);
    border-left: 3px solid #ff4fa3;
    padding-left: 8px;
    border-radius: 4px;
}

/* Różowy nick z połyskiem */
#ogchat .message-system .nickname {
    font-weight: 800;
    letter-spacing: .15px;
    background: linear-gradient(90deg, #ff9ad5 0%, #ff4fa3 35%, #ff2e93 50%, #ff4fa3 65%, #ff9ad5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 180% 100%;
    animation: pinkSheen 5s linear infinite;
    text-shadow: none;
}
@keyframes pinkSheen {
    0%   { background-position:   0% 50%; }
    100% { background-position: 180% 50%; }
}
@media (prefers-reduced-motion: reduce){
    #ogchat .message-system .nickname { animation: none; }
}

/* Treść systemowych – pogrubiona */
#ogchat .message-system .message-content {
    font-weight: 600;
}

/* Przycisk „Nowe ↓” */
#ogchat .chat-jump {
    position: absolute;
    right: 8px;
    bottom: 66px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #ff79c6 0%, #ff4fa3 50%, #ff2e93 100%);
    box-shadow: 0 8px 22px rgba(255, 79, 163, 0.35);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
#ogchat .chat-jump.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#ogchat .chat-jump:not(.is-visible) {
    transform: translateY(8px);
}

/* Przycisk „Wyślij” */
#ogchat .send-message #sendBtn {
    appearance: none;
    border: none;
    outline: none;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800; font-size: 15px;
    color: #fff !important;
    background: linear-gradient(135deg, #ff79c6 0%, #ff4fa3 50%, #ff2e93 100%) !important;
    box-shadow: 0 8px 22px rgba(255, 79, 163, 0.35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
#ogchat .send-message #sendBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(255, 79, 163, 0.55);
    filter: brightness(1.05);
}

/* Mobile tweaks */
@media (max-width: 1000px) {
    #ogchat .send-message { margin-top: 60px; }
    #ogchat #message-input { width: 100%; }
    #ogchat .send-message #sendBtn { margin-top: 5px; width: 100%; }
}
