/* Dark GPT-like UI for AI Logo Generator */
.ailogo-app {
  --bg: #0b0b0f;
  --panel: #121219;
  --muted: #9aa3b2;
  --text: #e4e7ee;
  --accent: #7c5cff;
  --accent-2: #12c2e9;
  --border: rgba(255,255,255,0.06);
  background: radial-gradient(1200px 500px at 20% -10%, rgba(124,92,255,0.12), transparent 60%), 
              radial-gradient(800px 400px at 110% 10%, rgba(18,194,233,0.12), transparent 60%),
              var(--bg);
  color: var(--text);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.ailogo-chat {
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.ailogo-msg {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: flex-start;
}
.ailogo-msg .avatar {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 18px;
  box-shadow: 0 4px 18px rgba(124,92,255,0.4);
}
.ailogo-msg.user .avatar { background: #1f2330; box-shadow: none; }
.ailogo-msg .bubble {
  background: #0f0f15;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  max-width: 840px;
}
.ailogo-msg .name {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .3px;
  margin-bottom: 4px;
}
.ailogo-msg .text { font-size: 15px; line-height: 1.6; }

/* Form */
.ailogo-form {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.ailogo-input {
  flex: 1;
  background: #0e0e14;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  font-size: 15px;
}
.ailogo-input::placeholder { color: #6e7381; }
.ailogo-btn {
  position: relative;
  min-width: 130px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  padding: 0 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ailogo-btn .loader { display: none; }
.ailogo-btn.loading .label { display: none; }
.ailogo-btn.loading .loader { display: inline-flex; gap: 4px; }
.ailogo-btn .dot { width: 6px; height: 6px; border-radius: 999px; background: white; opacity: .8; animation: bounce 1s infinite; }
.ailogo-btn .dot:nth-child(2){ animation-delay: .15s }
.ailogo-btn .dot:nth-child(3){ animation-delay: .3s }
@keyframes bounce { 0%,80%,100%{ transform: translateY(0)} 40%{ transform: translateY(-5px)} }

/* Skeleton gallery */
.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  background: #0c0c12;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.card .img, .card img { width: 100%; aspect-ratio: 1 / 1; display: block; background: #0e0e14; }
.card.skeleton .img {
  position: relative;
  overflow: hidden;
}
.card.skeleton .img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.card .bar {
  display: flex; justify-content: flex-end;
  padding: 10px;
  border-top: 1px solid var(--border);
}
.card .dl {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.card .dl:hover {
  background: #161623;
}

/* inline dots */
.inline-dots {
  display: inline-flex; gap: 3px; margin-left: 6px;
}
.inline-dots span {
  width: 4px; height: 4px; background: var(--muted); border-radius: 99px; display: inline-block;
  animation: bounce 1s infinite;
}
.inline-dots span:nth-child(2){ animation-delay: .15s }
.inline-dots span:nth-child(3){ animation-delay: .3s }

.subtitle {
  color: var(--muted); margin-bottom: 8px; font-size: 13px;
}

.ailogo-footnote {
  margin-top: 10px; color: #868ca0; font-size: 12px; text-align: right;
}
