/* =============================================
   discord.css  —  Layout Discord completo
   ============================================= */

/* ── Frame de la app ── */

.dc-app {
  display: flex;
  height: 600px;
  border-top-left-radius: 35px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 35px;
  border-bottom-left-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #313338;
}

/* ════════════════════════════
   SIDEBAR
   ════════════════════════════ */

.dc-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.dc-sidebar::-webkit-scrollbar {
  width: 3px;
}

.dc-sidebar::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: 2px;
}

/* Nombre del servidor */

.dc-server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #f2f3f5;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  cursor: pointer;
  flex-shrink: 0;
}

.dc-server-header:hover {
  background: rgba(255,255,255,0.04);
}

/* Categoría */

.dc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #80848e;
  cursor: pointer;
  flex-shrink: 0;
}

.dc-category:hover {
  color: #dbdee1;
}

/* Canal */

.dc-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  margin: 1px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #80848e;
  cursor: pointer;
  transition: background .12s, color .12s;
  position: relative;
  flex-shrink: 0;
}

.dc-channel:hover {
  background: rgba(255,255,255,0.06);
  color: #dbdee1;
}

.dc-channel.active {
  background: rgba(255,255,255,0.1);
  color: #f2f3f5;
  font-weight: 500;
}

.dc-ch-icon {
  font-size: 15px;
  color: #80848e;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.dc-channel.active .dc-ch-icon, .dc-channel:hover .dc-ch-icon {
  color: #dbdee1;
}

/* Canal de voz */

.dc-channel.dc-voice {
  font-size: 13px;
}

/* Badge de mensajes no leídos */

.dc-unread-badge {
  margin-left: auto;
  background: #ed4245;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
}

/* Footer del usuario */

.dc-user-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #232428;
  flex-shrink: 0;
}

.dc-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dc-user-info {
  flex: 1;
  min-width: 0;
}

.dc-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #f2f3f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-user-status {
  font-size: 10px;
  color: #80848e;
}

.dc-user-icons {
  display: flex;
  gap: 6px;
  color: #80848e;
  flex-shrink: 0;
}

.dc-user-icons svg {
  cursor: pointer;
}

.dc-user-icons svg:hover {
  color: #dbdee1;
}

/* ════════════════════════════
   MAIN CHAT
   ════════════════════════════ */

.dc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #313338;
}

/* Header del canal */

.dc-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  flex-shrink: 0;
  background: #313338;
}

.dc-chat-hash {
  font-size: 22px;
  font-weight: 700;
  color: #80848e;
  line-height: 1;
}

.dc-chat-name {
  font-size: 15px;
  font-weight: 700;
  color: #f2f3f5;
}

.dc-chat-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.dc-chat-desc {
  font-size: 13px;
  color: #80848e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lista de mensajes */

.dc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  min-height: 0;
}

.dc-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.dc-chat-messages::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: 2px;
}

/* Mensaje individual */

.dc-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}

.dc-msg-body {
  flex: 1;
  min-width: 0;
}

.dc-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.dc-msg-name {
  font-size: 14px;
  font-weight: 600;
}

.dc-msg-time {
  font-size: 11px;
  color: #80848e;
}

.dc-msg-text {
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.dc-bot-tag {
  background: #5865f2;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 3px;
  vertical-align: middle;
}

/* Typing indicator */

.dc-chat-typing {
  min-height: 22px;
  padding: 0 16px 4px;
  font-size: 12px;
  color: #80848e;
  flex-shrink: 0;
}

.dc-typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #80848e;
  margin-right: 2px;
  animation: dcBlink 1.2s infinite;
}

.dc-typing-dots span:nth-child(2) {
  animation-delay: .2s;
}

.dc-typing-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes dcBlink {
  0%, 80%, 100% {
    opacity: .2;
  }
  40% {
    opacity: 1;
  }
}

/* Input bar */

.dc-chat-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  background: #383a40;
  border-radius: 8px;
  padding: 6px 10px;
  flex-shrink: 0;
}

.dc-input-plus {
  background: none;
  border: none;
  color: #80848e;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color .12s;
}

.dc-input-plus:hover {
  color: #dbdee1;
}

.dc-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #dbdee1;
  font-size: 14px;
}

.dc-chat-input::placeholder {
  color: #80848e;
}

.dc-input-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #80848e;
}

.dc-input-actions svg {
  cursor: pointer;
  transition: color .12s;
}

.dc-input-actions svg:hover {
  color: #dbdee1;
}

.dc-send-btn {
  background: #5865f2;
  border: none;
  border-radius: 5px;
  padding: 5px 9px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .15s;
}

.dc-send-btn:hover {
  background: #4752c4;
}

/* Animación entrada de mensaje */

.dc-new {
  animation: dcIn .22s ease;
}

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

/* Responsive */

@media (max-width: 768px) {
  .dc-sidebar {
    width: 0;
    min-width: 0;
    overflow: hidden;
    transition: width .3s ease;
  }
}

@media (max-width: 640px) {
  .dc-chat-desc {
    display: none;
  }
}

@media (max-width: 480px) {
  .dc-sidebar {
    display: none;
  }
}

