/* AI Tools Studio Aesthetic Styling */

.mah-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.mah-ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.mah-ai-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.mah-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  width: fit-content;
  border: 1px solid var(--border-glass);
}

.mah-tone-grid {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.mah-tone-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.mah-tone-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.mah-tone-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.mah-ai-output {
  width: 100%;
  min-height: 320px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.mah-ai-output:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
}
