/* avatar-bot.css - Styles for AI Faruk Avatar Modal */
/* Mini Video Bubble Launcher */
.avatar-bot-launcher-bubble {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border: 3px solid #10b981;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.avatar-video-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
}

.avatar-bot-launcher-bubble:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.avatar-bot-launcher-bubble video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-bubble-badge {
  position: absolute;
  bottom: -15px;
  background: #10b981;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 10;
}

/* Modal Overlay */
.avatar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.avatar-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.avatar-modal-content {
  background: #1e293b;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.avatar-modal-overlay.active .avatar-modal-content {
  transform: translateY(0) scale(1);
}

/* Header */
.avatar-modal-header {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-modal-title {
  color: #f8fafc;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-modal-title i {
  color: #10b981;
}

.avatar-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.avatar-modal-close:hover {
  color: #f8fafc;
}

/* Video Player Area */
.avatar-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.avatar-play-btn {
  background: rgba(16, 185, 129, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.avatar-play-btn:hover {
  transform: scale(1.1);
  background: #10b981;
}

/* Controls */
.avatar-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.avatar-control-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}

.avatar-control-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Transcript */
.avatar-transcript-area {
  padding: 16px 20px;
  background: #0f172a;
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-transcript-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Suggested Questions */
.avatar-suggestions-area {
  padding: 16px 20px;
  background: #1e293b;
}

.avatar-suggestions-title {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 12px;
}

.avatar-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-suggestion-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar-suggestion-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.avatar-suggestion-btn i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.avatar-version-badge {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.avatar-ai-disclosure {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #cbd5e1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
  .avatar-bot-launcher-bubble {
    left: 15px;
    bottom: 15px;
    width: 65px;
    height: 65px;
  }
  
  .avatar-modal-content {
    width: 95%;
    max-height: 90vh;
  }
}
