/* Alice Section Styles */
.alice {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  color: white;
}

/* Main Alice Icon */
.alice-main-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

.alice-main-icon i {
  font-size: 50px;
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.alice .section-heading h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.alice .section-heading p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 50px;
}

.alice-feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.alice-feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.alice-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alice-icon i {
  font-size: 30px;
  color: white;
}

.alice-feature-card h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.alice-feature-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.alice-bg-shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

/* Clickable card styles */
.alice-feature-card[data-toggle="modal"] {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.alice-feature-card[data-toggle="modal"]:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.alice-feature-card[data-toggle="modal"]:after {
  content: 'Click to learn more →';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alice-feature-card[data-toggle="modal"]:hover:after {
  opacity: 1;
}

/* Modal styling */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  padding: 1.5rem;
}

.modal-title {
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.modal-header .close {
  color: white;
  opacity: 0.8;
  font-size: 1.5rem;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
  color: #333;
  line-height: 1.6;
}

.modal-body h2 {
  color: #667eea;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.modal-body h3 {
  color: #764ba2;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.modal-body ul {
  margin-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body strong {
  color: #555;
}

.modal-body ol {
  margin-left: 1.5rem;
}

.modal-body ol li {
  margin-bottom: 0.75rem;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

.modal-footer .btn-secondary {
  background: #667eea;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.modal-footer .btn-secondary:hover {
  background: #764ba2;
}

/* Screenshot positioning in modals */
.alice-modal-screenshot {
  padding-top: 1rem;
}

.alice-modal-screenshot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f8f9fa;
  padding: 0.5rem;
}

/* Sticky screenshot on desktop */
@media (min-width: 992px) {
  .alice-modal-screenshot.sticky-top {
    position: sticky;
    top: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .alice-modal-screenshot.sticky-top::-webkit-scrollbar {
    width: 6px;
  }

  .alice-modal-screenshot.sticky-top::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .alice-modal-screenshot.sticky-top::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }

  .alice-modal-screenshot.sticky-top::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  .modal-dialog.modal-xl {
    max-width: 1140px;
  }

  .modal-body .row {
    min-height: 400px;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .alice {
    padding: 60px 0;
  }

  .alice .section-heading h2 {
    font-size: 2rem;
  }

  .alice-feature-card {
    margin-bottom: 20px;
  }

  .alice-feature-card[data-toggle="modal"]:after {
    display: none;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-body h2 {
    font-size: 1.5rem;
  }

  .modal-body h3 {
    font-size: 1.15rem;
  }
}

/* Alice Conversation Preview Styles */
.alice-conversation-preview {
  background-color: #ffffff !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  padding: 15px !important;
  text-align: left !important;
  max-height: 400px;
  overflow-y: auto;
  cursor: default !important;
  opacity: 1 !important;
}

.alice-conversation-preview:hover {
  transform: none !important;
}

.alice-conversation-preview:after {
  display: none !important;
}

.alice-conversation-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Base message container */
.alice-message {
  display: flex;
  width: 100%;
}

/* Alice message (left-aligned) */
.alice-message--alice {
  justify-content: flex-start;
}

/* User message (right-aligned) */
.alice-message--user {
  justify-content: flex-end;
}

/* Message bubble */
.alice-message__bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
}

/* Alice bubble styling */
.alice-message--alice .alice-message__bubble {
  background-color: #f8f9fa;
  color: #333;
  border-bottom-left-radius: 0.25rem;
}

/* User bubble styling */
.alice-message--user .alice-message__bubble {
  background-color: #0f0ade;
  color: white;
  border-bottom-right-radius: 0.25rem;
}

/* Message header */
.alice-message__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Sender info (only for Alice) */
.alice-message__sender {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f0ade;
}

.alice-message__sender i {
  font-size: 1rem;
}

/* Channel indicator */
.alice-message__channel {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: auto;
}

.alice-message__channel i {
  font-size: 0.85rem;
}

/* Message content */
.alice-message__content {
  white-space: pre-wrap;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Message footer */
.alice-message__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.alice-message__time {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* User messages don't show sender */
.alice-message--user .alice-message__sender {
  display: none;
}

/* Scrollbar styling for conversation preview */
.alice-conversation-preview::-webkit-scrollbar {
  width: 6px;
}

.alice-conversation-preview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.alice-conversation-preview::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.alice-conversation-preview::-webkit-scrollbar-thumb:hover {
  background: #555;
}