/* ===== CHAT SECTION ===== */
.chat-section {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  margin-top: 12px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #333;
}

.chat-header-emoji {
  font-size: 1.1rem;
}

/* ===== MESAJ LISTESI ===== */
.chat-messages {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

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

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.chat-no-messages {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  padding: 20px 0;
}

/* ===== TEK MESAJ ===== */
.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.15s;
}

.chat-msg:hover {
  background: rgba(0, 0, 0, 0.03);
}

.chat-msg-me {
  background: rgba(102, 126, 234, 0.07);
}

.chat-msg-me:hover {
  background: rgba(102, 126, 234, 0.12);
}

.chat-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-msg-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.chat-msg-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1px;
}

.chat-msg-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.chat-msg-time {
  font-size: 0.7rem;
  color: #999;
  white-space: nowrap;
}

.chat-msg-text {
  font-size: 0.85rem;
  color: #444;
  word-break: break-word;
  line-height: 1.35;
}

.chat-msg-sticker {
  font-size: 2rem;
  line-height: 1.2;
}

/* ===== STICKER BAR ===== */
.chat-sticker-bar {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.chat-sticker-btn {
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}

.chat-sticker-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.chat-sticker-btn:active {
  transform: scale(0.92);
}

/* ===== INPUT BAR ===== */
.chat-input-bar {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.chat-input {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  font-family: inherit;
}

.chat-input:focus {
  border-color: #667eea;
}

.chat-send-btn {
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

.chat-send-btn:hover {
  opacity: 0.9;
}

.chat-send-btn:active {
  transform: scale(0.96);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== GUEST PROMPT ===== */
.chat-guest-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  border-radius: 12px;
  font-size: 0.85rem;
  color: #555;
}

.chat-guest-prompt a,
.chat-guest-prompt button {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.chat-guest-prompt a:hover,
.chat-guest-prompt button:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .chat-section {
    padding: 10px 12px;
  }

  .chat-messages {
    max-height: 200px;
  }

  .chat-msg-name {
    max-width: 70px;
  }

  .chat-sticker-btn {
    padding: 3px 6px;
    font-size: 1.1rem;
  }
}
