/* ===== PLATFORM-SPECIFIC STYLES ===== */

/* TikTok Platform Styles */
.tiktok-container {
  background: linear-gradient(135deg, #ff0050 0%, #000000 100%);
}

.tiktok-container .chat-header {
  background: rgba(255, 0, 80, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 0, 80, 0.2);
}

.tiktok-container .chat-messages {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 0, 80, 0.1) 100%);
}

.tiktok-container .message.sent .message-bubble {
  background: linear-gradient(135deg, #ff0050, #ff4081);
  color: white;
  border-radius: 20px 20px 5px 20px;
  box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
}

.tiktok-container .message.received .message-bubble {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-radius: 20px 20px 20px 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tiktok-container .input-container {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
}

.tiktok-container .message-input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 0, 80, 0.3);
  color: white;
}

.tiktok-container .message-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.tiktok-container .send-btn {
  background: linear-gradient(135deg, #ff0050, #ff4081);
  box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

/* Facebook Platform Styles */
.facebook-container {
  background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.facebook-container .chat-header {
  background: rgba(24, 119, 242, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(24, 119, 242, 0.2);
}

.facebook-container .chat-messages {
  background: linear-gradient(180deg, #f0f2f5 0%, rgba(24, 119, 242, 0.05) 100%);
}

.facebook-container .message.sent .message-bubble {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
  color: white;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.facebook-container .message.received .message-bubble {
  background: #e4e6ea;
  color: #050505;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.facebook-container .input-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.facebook-container .message-input {
  background: #f0f2f5;
  border: 2px solid #e4e6ea;
  color: #050505;
}

.facebook-container .message-input:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.facebook-container .send-btn {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

/* Instagram Platform Styles */
.instagram-container {
  background: linear-gradient(135deg, #e4405f 0%, #f093fb 50%, #ffd54f 100%);
}

.instagram-container .chat-header {
  background: rgba(228, 64, 95, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(228, 64, 95, 0.2);
}

.instagram-container .chat-messages {
  background: linear-gradient(180deg, #fafafa 0%, rgba(228, 64, 95, 0.05) 100%);
}

.instagram-container .message.sent .message-bubble {
  background: linear-gradient(135deg, #e4405f, #f093fb);
  color: white;
  border-radius: 22px 22px 4px 22px;
  box-shadow: 0 3px 12px rgba(228, 64, 95, 0.3);
}

.instagram-container .message.received .message-bubble {
  background: #efefef;
  color: #262626;
  border-radius: 22px 22px 22px 4px;
  border: 1px solid #dbdbdb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instagram-container .input-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.instagram-container .message-input {
  background: #fafafa;
  border: 2px solid #dbdbdb;
  color: #262626;
  border-radius: 22px;
}

.instagram-container .message-input:focus {
  border-color: #e4405f;
  box-shadow: 0 0 0 3px rgba(228, 64, 95, 0.1);
}

.instagram-container .send-btn {
  background: linear-gradient(135deg, #e4405f, #f093fb);
  box-shadow: 0 3px 12px rgba(228, 64, 95, 0.3);
}

/* Telegram Platform Styles */
.telegram-container {
  background: linear-gradient(135deg, #0088cc 0%, #29b6f6 100%);
}

.telegram-container .chat-header {
  background: rgba(0, 136, 204, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 136, 204, 0.2);
}

.telegram-container .chat-messages {
  background: linear-gradient(180deg, #ffffff 0%, rgba(0, 136, 204, 0.05) 100%);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 136, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.1) 0%, transparent 50%);
}

.telegram-container .message.sent .message-bubble {
  background: linear-gradient(135deg, #0088cc, #29b6f6);
  color: white;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
  position: relative;
}

.telegram-container .message.received .message-bubble {
  background: #ffffff;
  color: #000000;
  border-radius: 12px 12px 12px 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e8ed;
}

.telegram-container .input-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.telegram-container .message-input {
  background: #ffffff;
  border: 2px solid #e1e8ed;
  color: #000000;
  border-radius: 25px;
}

.telegram-container .message-input:focus {
  border-color: #0088cc;
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.telegram-container .send-btn {
  background: linear-gradient(135deg, #0088cc, #29b6f6);
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
}

/* Twitter Platform Styles */
.twitter-container {
  background: linear-gradient(135deg, #1da1f2 0%, #64b5f6 100%);
}

.twitter-container .chat-header {
  background: rgba(29, 161, 242, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29, 161, 242, 0.2);
}

.twitter-container .chat-messages {
  background: linear-gradient(180deg, #ffffff 0%, rgba(29, 161, 242, 0.05) 100%);
}

.twitter-container .message.sent .message-bubble {
  background: linear-gradient(135deg, #1da1f2, #64b5f6);
  color: white;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

.twitter-container .message.received .message-bubble {
  background: #f7f9fa;
  color: #14171a;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.twitter-container .input-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.twitter-container .message-input {
  background: #ffffff;
  border: 2px solid #e1e8ed;
  color: #14171a;
  border-radius: 20px;
}

.twitter-container .message-input:focus {
  border-color: #1da1f2;
  box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

.twitter-container .send-btn {
  background: linear-gradient(135deg, #1da1f2, #64b5f6);
  box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

/* Snapchat Platform Styles */
.snapchat-container {
  background: linear-gradient(135deg, #fffc00 0%, #fff176 100%);
}

.snapchat-container .chat-header {
  background: rgba(255, 252, 0, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 252, 0, 0.3);
}

.snapchat-container .chat-messages {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 252, 0, 0.1) 100%);
}

.snapchat-container .message.sent .message-bubble {
  background: linear-gradient(135deg, #fffc00, #fff176);
  color: #000000;
  border-radius: 25px 25px 5px 25px;
  box-shadow: 0 3px 12px rgba(255, 252, 0, 0.4);
  border: 2px solid #000000;
}

.snapchat-container .message.received .message-bubble {
  background: #ffffff;
  color: #000000;
  border-radius: 25px 25px 25px 5px;
  border: 2px solid #000000;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.snapchat-container .input-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.snapchat-container .message-input {
  background: #ffffff;
  border: 3px solid #000000;
  color: #000000;
  border-radius: 25px;
  font-weight: 500;
}

.snapchat-container .message-input:focus {
  border-color: #fffc00;
  box-shadow: 0 0 0 3px rgba(255, 252, 0, 0.3);
}

.snapchat-container .send-btn {
  background: linear-gradient(135deg, #fffc00, #fff176);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 0 3px 12px rgba(255, 252, 0, 0.4);
  font-weight: bold;
}

/* Platform-specific message reactions */
.message-reactions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.reaction {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reaction-emoji {
  font-size: 0.875rem;
}

.reaction-count {
  font-weight: 500;
  color: #666;
}

/* Platform-specific typing indicators */
.tiktok-container .typing-indicator {
  background: rgba(255, 0, 80, 0.1);
  backdrop-filter: blur(10px);
}

.facebook-container .typing-indicator {
  background: rgba(24, 119, 242, 0.1);
  backdrop-filter: blur(10px);
}

.instagram-container .typing-indicator {
  background: rgba(228, 64, 95, 0.1);
  backdrop-filter: blur(10px);
}

.telegram-container .typing-indicator {
  background: rgba(0, 136, 204, 0.1);
  backdrop-filter: blur(10px);
}

.twitter-container .typing-indicator {
  background: rgba(29, 161, 242, 0.1);
  backdrop-filter: blur(10px);
}

.snapchat-container .typing-indicator {
  background: rgba(255, 252, 0, 0.2);
  backdrop-filter: blur(10px);
}

/* Platform-specific status indicators */
.platform-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-delivered {
  background: #10b981;
}

.status-read {
  background: var(--primary-color);
}

.status-sending {
  background: #f59e0b;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Platform-specific media message styles */
.media-message {
  max-width: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 4px 0;
}

.media-message img {
  width: 100%;
  height: auto;
  display: block;
}

.media-message video {
  width: 100%;
  height: auto;
  display: block;
}

.media-caption {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Platform-specific voice message styles */
.voice-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  min-width: 150px;
}

.voice-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-play-btn:hover {
  transform: scale(1.1);
}

.voice-waveform {
  flex: 1;
  height: 20px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 30%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.3) 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.voice-duration {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Platform-specific file message styles */
.file-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 280px;
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

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

.file-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Platform-specific link preview styles */
.link-preview {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  max-width: 300px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.link-preview-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.link-preview-content {
  padding: 12px;
}

.link-preview-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.link-preview-description {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-preview-url {
  font-size: 0.75rem;
  color: var(--primary-color);
  margin-top: 4px;
  text-decoration: none;
}

.link-preview-url:hover {
  text-decoration: underline;
}

