/*************************************************************
 * AROMA LAB — AI Chat Bot Styles
 * File: gemini-chat.css
 *************************************************************/

/* ============================================================
   FLOATING BUTTON "Ask AI"
   ============================================================ */

.gc-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0A2E1F 0%, #123a28 100%);
  color: #FFFBF5;
  border: 2px solid #B8963E;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(10, 46, 31, 0.4);
  z-index: 2147483640;
  transition: all 0.3s;
  animation: gcPulse 2.5s infinite;
}

.gc-float-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 32px rgba(184, 150, 62, 0.5);
  background: linear-gradient(135deg, #B8963E 0%, #d4b356 100%);
  color: #0A2E1F;
  border-color: #0A2E1F;
}

.gc-float-btn.gc-open {
  animation: none;
  padding: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: rotate(90deg);
}

@keyframes gcPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(10, 46, 31, 0.4), 0 0 0 0 rgba(184, 150, 62, 0.4);
  }
  50% {
    box-shadow: 0 6px 24px rgba(10, 46, 31, 0.4), 0 0 0 12px rgba(184, 150, 62, 0);
  }
}

/* Badge on button */
.gc-float-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFBF5;
}

/* ============================================================
   CHAT WINDOW
   ============================================================ */

.gc-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 140px);
  background: #FFFBF5;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(10, 46, 31, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483641;
  animation: gcSlideUp 0.35s ease;
  border: 1px solid rgba(184, 150, 62, 0.2);
}

@keyframes gcSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.gc-header {
  background: linear-gradient(135deg, #0A2E1F 0%, #123a28 100%);
  color: #FFFBF5;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #B8963E;
  flex-shrink: 0;
}

.gc-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #B8963E;
  color: #0A2E1F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255, 251, 245, 0.3);
}

.gc-header-text .gc-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.gc-header-text .gc-header-subtitle {
  font-size: 11px;
  opacity: 0.75;
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gc-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: gcBlink 2s infinite;
}

@keyframes gcBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.gc-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 251, 245, 0.15);
  color: #FFFBF5;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.gc-close-btn:hover {
  background: #B8963E;
  color: #0A2E1F;
  transform: rotate(90deg);
}

/* ============================================================
   LANGUAGE SELECTOR
   ============================================================ */

.gc-lang-selector {
  padding: 14px 20px;
  background: rgba(184, 150, 62, 0.08);
  border-bottom: 1px solid rgba(184, 150, 62, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.gc-lang-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 46, 31, 0.6);
  margin-right: 4px;
}

.gc-lang-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: rgba(10, 46, 31, 0.7);
  border: 1px solid rgba(10, 46, 31, 0.15);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.gc-lang-btn:hover {
  border-color: #B8963E;
  color: #0A2E1F;
}

.gc-lang-btn.active {
  background: #0A2E1F;
  color: #FFFBF5;
  border-color: #0A2E1F;
}

/* ============================================================
   MESSAGES AREA
   ============================================================ */

.gc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFBF5;
}

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

.gc-messages::-webkit-scrollbar-thumb {
  background: #B8963E;
  border-radius: 3px;
}

.gc-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
  animation: gcMsgIn 0.3s ease;
}

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

.gc-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0A2E1F 0%, #123a28 100%);
  color: #FFFBF5;
  border-bottom-right-radius: 4px;
}

.gc-msg-bot {
  align-self: flex-start;
  background: #fff;
  color: #0A2E1F;
  border: 1px solid rgba(10, 46, 31, 0.08);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(10, 46, 31, 0.04);
}

.gc-msg-bot.gc-msg-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.gc-msg-time {
  font-size: 10px;
  opacity: 0.55;
  margin-top: 4px;
  display: block;
}

/* ---- Typing Indicator ---- */

.gc-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid rgba(10, 46, 31, 0.08);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(10, 46, 31, 0.04);
}

.gc-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B8963E;
  animation: gcTypingBounce 1.3s infinite;
}

.gc-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.gc-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes gcTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ============================================================
   INPUT AREA
   ============================================================ */

.gc-input-area {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid rgba(10, 46, 31, 0.08);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

.gc-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(10, 46, 31, 0.15);
  border-radius: 20px;
  background: #FFFBF5;
  font-size: 14px;
  color: #0A2E1F;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 100px;
  transition: all 0.3s;
  line-height: 1.4;
}

.gc-input:focus {
  outline: none;
  border-color: #B8963E;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.15);
}

.gc-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2E1F 0%, #123a28 100%);
  color: #FFFBF5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  font-size: 18px;
}

.gc-send-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #B8963E 0%, #d4b356 100%);
  color: #0A2E1F;
  transform: scale(1.05);
}

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

/* ============================================================
   WELCOME SCREEN
   ============================================================ */

.gc-welcome {
  padding: 30px 20px;
  text-align: center;
  color: rgba(10, 46, 31, 0.7);
}

.gc-welcome-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.gc-welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #0A2E1F;
  margin-bottom: 8px;
}

.gc-welcome-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.gc-quick-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.gc-quick-btn {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(184, 150, 62, 0.3);
  border-radius: 12px;
  font-size: 13px;
  color: #0A2E1F;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.gc-quick-btn:hover {
  background: rgba(184, 150, 62, 0.1);
  border-color: #B8963E;
  transform: translateX(4px);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .gc-float-btn {
    padding: 12px 18px;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
  }
  
  .gc-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  
  .gc-header {
    padding: 14px 16px;
  }
  
  .gc-header-avatar {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .gc-header-text .gc-header-title {
    font-size: 16px;
  }
  
  .gc-lang-selector {
    padding: 10px 16px;
  }
  
  .gc-msg {
    max-width: 90%;
    font-size: 13px;
  }
  
  .gc-messages {
    padding: 16px;
  }
  
  .gc-input-area {
    padding: 10px 12px;
  }
}
