/* NetherCore Chat Widget */

#nc-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#nc-chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #e74c3c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 107, 53, 0.5);
  position: relative;
}

#nc-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
}

#nc-chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  height: 460px;
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#nc-chat.open #nc-chat-window {
  display: flex;
}

#nc-chat.open #nc-chat-btn {
  display: none;
}

#nc-chat-header {
  background: linear-gradient(135deg, #ff6b35, #e74c3c);
  color: #fff;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Minecraft', 'Courier New', monospace;
}

#nc-chat-msgs {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #1a1a2e;
}

.nc-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
  word-wrap: break-word;
  animation: ncFadeIn 0.3s ease;
}

@keyframes ncFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nc-msg-support {
  background: rgba(255, 107, 53, 0.12);
  color: #e0e0e0;
  align-self: flex-start;
  border-left: 3px solid #ff6b35;
}

.nc-msg-user {
  background: #16213e;
  color: #e0e0e0;
  align-self: flex-end;
  border-right: 3px solid #ff6b35;
}

.nc-msg-error {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  align-self: flex-start;
  border-left: 3px solid #e74c3c;
  font-size: 13px;
}

#nc-chat-input-area {
  padding: 10px 14px 14px;
  background: #16213e;
  border-top: 1px solid #333;
}

#nc-chat-name {
  width: 100%;
  padding: 8px 12px;
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#nc-chat-name::placeholder { color: #666; }

#nc-chat-row {
  display: flex;
  gap: 8px;
}

#nc-chat-input {
  flex: 1;
  padding: 10px 12px;
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  resize: none;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.4;
  max-height: 80px;
}

#nc-chat-input::placeholder { color: #666; }

#nc-chat-send {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ff6b35;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nc-chat-send:hover {
  background: #e55a2b;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

#nc-chat-msgs::-webkit-scrollbar {
  width: 5px;
}

#nc-chat-msgs::-webkit-scrollbar-track {
  background: transparent;
}

#nc-chat-msgs::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

@media (max-width: 480px) {
  #nc-chat-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 120px);
    right: -4px;
    bottom: 64px;
  }
  #nc-chat { right: 16px; }
}
